[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
improved...
(defun buffer-menu-custom-font-lock ()
(interactive)
(let ((font-lock-unfontify-region-function
(lambda (start end)
(remove-text-properties start end '(font-lock-face nil)))))
(font-lock-unfontify-buffer)
(set (make-local-variable 'font-lock-defaults)
'(buffer-menu-buffer-font-lock-keywords t))
(font-lock-ensure) ))
https://dataswamp.org/~incal/emacs-init/buffer-menu.el
(But... I don't think I wrote that. It looks like
something from the wiki, perhaps.)
--
underground experts united
http://user.it.uu.se/~embe8573
https://dataswamp.org/~incal
- Re: `declare-function' docu, (continued)
- Re: Bookmarks in EWW, Stefan Monnier, 2020/03/25
- Re: Bookmarks in EWW, Michael Heerdegen, 2020/03/25
- Re: Bookmarks in EWW, Stefan Monnier, 2020/03/26
- Re: Bookmarks in EWW, Michael Heerdegen, 2020/03/26
- Re: Bookmarks in EWW, Stefan Monnier, 2020/03/26
- Re: Bookmarks in EWW, Michael Heerdegen, 2020/03/27
- Re: Bookmarks in EWW, Stefan Monnier, 2020/03/27
- buffer-localness (was: Re: Bookmarks in EWW),
Emanuel Berg <=
- RE: Bookmarks in EWW, Drew Adams, 2020/03/25
- Re: Bookmarks in EWW, Michael Heerdegen, 2020/03/25
- RE: Bookmarks in EWW, Drew Adams, 2020/03/25
- Re: Bookmarks in EWW, Michael Heerdegen, 2020/03/25
- RE: Bookmarks in EWW, Drew Adams, 2020/03/26
- Re: Bookmarks in EWW, Michael Heerdegen, 2020/03/26
- Re: Bookmarks in EWW, Marcin Borkowski, 2020/03/26
Re: Bookmarks in EWW, Marcin Borkowski, 2020/03/25