Mercurial > emacs
comparison lisp/subr.el @ 384:9dab5ca1890f
*** empty log message ***
author | Jim Blandy <jimb@redhat.com> |
---|---|
date | Mon, 12 Aug 1991 13:15:12 +0000 |
parents | 38d331b3a0b8 |
children | 498bcec1cf3a |
comparison
equal
deleted
inserted
replaced
383:4f7094a6b826 | 384:9dab5ca1890f |
---|---|
229 ;; Clever way to tell whether a given lambda-expression | 229 ;; Clever way to tell whether a given lambda-expression |
230 ;; is equal to anything in the hook. | 230 ;; is equal to anything in the hook. |
231 (let ((tail (assoc (cdr function) (symbol-value hook)))) | 231 (let ((tail (assoc (cdr function) (symbol-value hook)))) |
232 (equal function tail)) | 232 (equal function tail)) |
233 (memq function (symbol-value hook))) | 233 (memq function (symbol-value hook))) |
234 (set hook (cons function hook)))) | 234 (set hook (cons function (symbol-value hook))))) |
235 | 235 |
236 (defun momentary-string-display (string pos &optional exit-char message) | 236 (defun momentary-string-display (string pos &optional exit-char message) |
237 "Momentarily display STRING in the buffer at POS. | 237 "Momentarily display STRING in the buffer at POS. |
238 Display remains until next character is typed. | 238 Display remains until next character is typed. |
239 If the char is EXIT-CHAR (optional third arg, default is SPC) it is swallowed; | 239 If the char is EXIT-CHAR (optional third arg, default is SPC) it is swallowed; |