From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: storm@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.devel Subject: Re: Small enhancement for add-log.el Date: Fri, 08 Oct 2004 15:54:40 +0200 Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Message-ID: References: <200410072307.i97N7s307908@raven.dms.auburn.edu> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1097243863 6351 80.91.229.6 (8 Oct 2004 13:57:43 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 8 Oct 2004 13:57:43 +0000 (UTC) Cc: Luc Teirlinck , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Oct 08 15:57:33 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CFvFV-0000YT-00 for ; Fri, 08 Oct 2004 15:57:33 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CFvMI-0002em-FA for ged-emacs-devel@m.gmane.org; Fri, 08 Oct 2004 10:04:34 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CFvLC-0002DU-Hn for emacs-devel@gnu.org; Fri, 08 Oct 2004 10:03:26 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CFvLB-0002D5-Hf for emacs-devel@gnu.org; Fri, 08 Oct 2004 10:03:25 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CFvLB-0002Cy-BP for emacs-devel@gnu.org; Fri, 08 Oct 2004 10:03:25 -0400 Original-Received: from [212.88.64.25] (helo=mail-relay.sonofon.dk) by monty-python.gnu.org with smtp (Exim 4.34) id 1CFvCd-0002yG-RD for emacs-devel@gnu.org; Fri, 08 Oct 2004 09:54:36 -0400 Original-Received: (qmail 91877 invoked from network); 8 Oct 2004 13:54:34 -0000 Original-Received: from unknown (HELO kfs-l.imdomain.dk.cua.dk) (213.83.150.2) by 0 with SMTP; 8 Oct 2004 13:54:34 -0000 Original-To: Stefan In-Reply-To: (Stefan's message of "Fri, 08 Oct 2004 09:19:30 -0400") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 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 Xref: main.gmane.org gmane.emacs.devel:28085 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:28085 Stefan writes: >> Is there some way to implement a first-user-change-hook ? > > I used (null buffer-undo-list) the only time I needed something like that. > But that was in the minibuffer, so I don't how well it'll work in your case, Nice trick! Thanks. But does first-change-hook really what we expect if font-lock is on? Would it make sense to have something like (let ((inhibit-buffer-modif-change t)) (add-text-properties ...)) that font-lock could use instead of using restore-buffer-modified-p. -- Kim F. Storm http://www.cua.dk