[Top][All Lists]

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

buffer-localness (was: Re: Bookmarks in EWW)

From: Emanuel Berg
Subject: buffer-localness (was: Re: Bookmarks in EWW)
Date: Fri, 27 Mar 2020 05:32:01 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)

Stefan Monnier wrote:

>> Do I need to declare `bookmark-make-record-function'
>> as special when setting with `setq-local' (that's what
>> doc-view does)?
> No. buffer-localness is a concept that only applies to
> dynamically scoped variables anyway, so if you need it
> it's a sign that we should improve something somewhere.

Here is some Elisp that indicates something should be

(defun buffer-menu-custom-font-lock ()
  (let ((font-lock-unfontify-region-function
         (lambda (start end)
           (remove-text-properties start end '(font-lock-face nil)))))
    (set (make-local-variable 'font-lock-defaults)
         '(buffer-menu-buffer-font-lock-keywords t))
    (font-lock-ensure) ))

(But... I don't think I wrote that. It looks like
something from the wiki, perhaps.)

underground experts united

reply via email to

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