From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Emanuel Berg via Users list for the GNU Emacs text editor Newsgroups: gmane.emacs.help Subject: buffer-localness (was: Re: Bookmarks in EWW) Date: Fri, 27 Mar 2020 05:32:01 +0100 Message-ID: <87369uwh8e.fsf_-_@ebih.ebihd> References: <878sjrfh2m.fsf@mbork.pl> <871rpipzwa.fsf@web.de> <87tv2d3zii.fsf@web.de> Reply-To: Emanuel Berg Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="49139"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) To: help-gnu-emacs@gnu.org Cancel-Lock: sha1:Q29P1/V9v0gv+8KfgwtM7YA3ap4= Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Mar 27 05:35:25 2020 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jHgiL-000Cgt-7H for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 27 Mar 2020 05:35:25 +0100 Original-Received: from localhost ([::1]:36886 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jHgiK-0000vE-9V for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 27 Mar 2020 00:35:24 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59693) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jHgi1-0000uv-AE for help-gnu-emacs@gnu.org; Fri, 27 Mar 2020 00:35:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jHgi0-00029E-5v for help-gnu-emacs@gnu.org; Fri, 27 Mar 2020 00:35:05 -0400 Original-Received: from ciao.gmane.io ([159.69.161.202]:35928) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jHghz-000283-W8 for help-gnu-emacs@gnu.org; Fri, 27 Mar 2020 00:35:04 -0400 Original-Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1jHghy-000CDx-0f for help-gnu-emacs@gnu.org; Fri, 27 Mar 2020 05:35:02 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: help-gnu-emacs@gnu.org Mail-Copies-To: never X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 159.69.161.202 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:122689 Archived-At: 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