From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: trunk r116426: * lisp/jit-lock.el (jit-lock-mode): Keep it disabled in indirect buffers. Date: Fri, 30 May 2014 15:54:33 -0400 Message-ID: References: <87k39ee7qm.fsf@gmail.com> <87ioowcr7l.fsf@gmail.com> <8738g0ccig.fsf@gmail.com> <87d2f3y0f8.fsf@gmail.com> <874n07rrsu.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1401479700 31381 80.91.229.3 (30 May 2014 19:55:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 30 May 2014 19:55:00 +0000 (UTC) Cc: emacs-devel@gnu.org To: Vitalie Spinu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri May 30 21:54:53 2014 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WqStA-0007o6-U0 for ged-emacs-devel@m.gmane.org; Fri, 30 May 2014 21:54:53 +0200 Original-Received: from localhost ([::1]:56262 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WqStA-0000cD-JO for ged-emacs-devel@m.gmane.org; Fri, 30 May 2014 15:54:52 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46738) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WqSt0-0000WJ-CD for emacs-devel@gnu.org; Fri, 30 May 2014 15:54:49 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WqSss-00072y-Sr for emacs-devel@gnu.org; Fri, 30 May 2014 15:54:42 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:57404) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WqSss-000728-OG for emacs-devel@gnu.org; Fri, 30 May 2014 15:54:34 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArUGAIDvNVPO+IOj/2dsb2JhbABZgwaDSsA9gRcXdIIlAQEBAQIBViMFCws0EhQYDSSIBAjSGReOegeEOASpGYFqgXGBWyE X-IPAS-Result: ArUGAIDvNVPO+IOj/2dsb2JhbABZgwaDSsA9gRcXdIIlAQEBAQIBViMFCws0EhQYDSSIBAjSGReOegeEOASpGYFqgXGBWyE X-IronPort-AV: E=Sophos;i="4.97,753,1389762000"; d="scan'208";a="65106001" Original-Received: from 206-248-131-163.dsl.teksavvy.com (HELO pastel.home) ([206.248.131.163]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 30 May 2014 15:54:33 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 6CFE0602C3; Fri, 30 May 2014 15:54:33 -0400 (EDT) In-Reply-To: <874n07rrsu.fsf@gmail.com> (Vitalie Spinu's message of "Fri, 30 May 2014 12:26:57 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.181 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:172200 Archived-At: >> No, my intention is to only run the hooks in the base buffer. > How about running the hooks in all buffers but defining a local > version of the hook as a list with explicit indicator of where to run > the hook? For example (xxx :current), (xxx :base), > (xxx :indirect-when-current). > Then jit-lock-after-change could be declared as > (jit-lock-after-change :base). I don't think it's worth the trouble when the Elisp code can do it all itself. > This would work if your idea is implemented, e.g. change-functions are > executed in the base buffer. Yes, obviously, that's an indispensable step. > It works, but I am noticing occasional emacs crashes on > backward-delete-char-untabify and kill-word which don't occur in emacs > 24.3. Emacs crashes are bugs that should be reported. Stefan