emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Emacs-diffs] emacs-26 ee512e9: Ignore buffers whose name begins wit


From: Leo Liu
Subject: Re: [Emacs-diffs] emacs-26 ee512e9: Ignore buffers whose name begins with a space in save-some-buffers
Date: Tue, 19 Sep 2017 23:37:06 +0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (macOS 10.12.6)

On 2017-09-19 08:42 -0400, Stefan Monnier wrote:
> (cl-defun ggtags-fontify-code (code &optional (mode major-mode))
>   (cl-check-type mode function)
>   (cl-typecase code        ;; FIXME: Using `stringp` is more efficient.
>     ((not string) code)
>     (string
>      (with-temp-buffer
>        (insert code)
>        ;; FIXME: `delay-mode-hooks' needs a comment
>        (delay-mode-hooks (funcall mode))
>        (font-lock-ensure)
>        (buffer-string)))))

Thanks. delay-mode-hooks was removed a few months ago because it causes
errors for eldoc. Use font-lock-ensure is a good idea but will have to
wait until emacs 25+ is required.

Leo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]