Skip to content

Commit 8bf5054

Browse files
committed
Probably last fix
1 parent e631741 commit 8bf5054

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

tools/beluga-mode.el

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ in unicode using Font Lock mode."
173173
"Return non-nil if PROCESS is alive.
174174
A process is considered alive if its status is `run', `open',
175175
`listen', `connect' or `stop'."
176-
(and (not (null process))
176+
(and process
177177
(memq (process-status process)
178178
'(run open listen connect stop))))
179179

@@ -484,10 +484,10 @@ returned. Else, nil is returned."
484484
(cons
485485
"%s"
486486
(mapcar
487-
#'(lambda (x)
488-
(if (stringp x)
489-
x
490-
(cdr x)))
487+
(lambda (x)
488+
(if (stringp x)
489+
x
490+
(cdr x)))
491491
args)))
492492

493493
(defun beluga--generate-arg-list (args)
@@ -503,7 +503,7 @@ The command has elisp name NAME and string name REALNAME, and takes ARGS."
503503
(,rpc
504504
(format
505505
;; construct the format string
506-
,(mapconcat 'identity fmt " ")
506+
,(mapconcat #'identity fmt " ")
507507
;; construct the argument list
508508
,realname ,@arglist))))))
509509

@@ -1117,7 +1117,8 @@ Return the starting position of the short pragma; else, nil."
11171117
electric-indent-chars
11181118
'(?\n))))
11191119

1120-
(add-hook 'compilation-filter-hook #'ansi-color-compilation-filter)
1120+
(if (fboundp 'ansi-color-compilation-filter)
1121+
(add-hook 'compilation-filter-hook #'ansi-color-compilation-filter))
11211122

11221123
;QUAIL
11231124
(add-hook 'beluga-mode-hook

0 commit comments

Comments
 (0)