From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.help Subject: Re: longlines and global-auto-revert-mode Date: Tue, 15 Jan 2008 18:35:25 +0100 Message-ID: <478CEEDD.10001@gmx.at> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------020907000504030302090806" X-Trace: ger.gmane.org 1200418651 13961 80.91.229.12 (15 Jan 2008 17:37:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 15 Jan 2008 17:37:31 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: dmitry.bolshakov@bridge-quest.com Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jan 15 18:37:52 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JEpjP-0000SP-An for geh-help-gnu-emacs@m.gmane.org; Tue, 15 Jan 2008 18:37:47 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JEpj0-0005Um-SN for geh-help-gnu-emacs@m.gmane.org; Tue, 15 Jan 2008 12:37:22 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JEphn-0004tA-HH for help-gnu-emacs@gnu.org; Tue, 15 Jan 2008 12:36:07 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JEphi-0004oh-03 for help-gnu-emacs@gnu.org; Tue, 15 Jan 2008 12:36:05 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JEphh-0004oT-Mq for help-gnu-emacs@gnu.org; Tue, 15 Jan 2008 12:36:01 -0500 Original-Received: from mail.gmx.net ([213.165.64.20]) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1JEphh-000214-6B for help-gnu-emacs@gnu.org; Tue, 15 Jan 2008 12:36:01 -0500 Original-Received: (qmail invoked by alias); 15 Jan 2008 17:35:59 -0000 Original-Received: from N903P017.adsl.highway.telekom.at (EHLO [62.47.56.209]) [62.47.56.209] by mail.gmx.net (mp011) with SMTP; 15 Jan 2008 18:35:59 +0100 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX1+vN98AKmav79gF4R13XkXsCGNJrch9C2z24I208J LvT0Ejr7Bgcg0F User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: de-DE, de, en-us, en X-Y-GMX-Trusted: 0 X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:50738 Archived-At: This is a multi-part message in MIME format. --------------020907000504030302090806 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit > It works fine, but if longlines-mode is active, then when file is been > modified by external program, I get not only my message, but before it I > get question in minibuffer "filename.txt changed on disk; really edit > the buffer? (y, n, r or C-h)". Why? I want only my message. How to > disable this question? Can you try the attached patch? It's against CVS Emacs hence if you have any problems applying it please tell me. --------------020907000504030302090806 Content-Type: text/plain; name="longlines.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="longlines.patch" *** longlines.el.~1.41.~ Fri Nov 30 10:00:46 2007 --- longlines.el Tue Jan 15 18:29:16 2008 *************** *** 136,142 **** (let ((buffer-undo-list t) (inhibit-read-only t) (after-change-functions nil) ! (mod (buffer-modified-p))) ;; Turning off undo is OK since (spaces + newlines) is ;; conserved, except for a corner case in ;; longlines-wrap-lines that we'll never encounter from here --- 136,143 ---- (let ((buffer-undo-list t) (inhibit-read-only t) (after-change-functions nil) ! (mod (buffer-modified-p)) ! buffer-file-name buffer-file-truename) ;; Turning off undo is OK since (spaces + newlines) is ;; conserved, except for a corner case in ;; longlines-wrap-lines that we'll never encounter from here *************** *** 176,182 **** (longlines-unshow-hard-newlines)) (let ((buffer-undo-list t) (after-change-functions nil) ! (inhibit-read-only t)) (if longlines-decoded (save-restriction (widen) --- 177,184 ---- (longlines-unshow-hard-newlines)) (let ((buffer-undo-list t) (after-change-functions nil) ! (inhibit-read-only t) ! buffer-file-name buffer-file-truename) (if longlines-decoded (save-restriction (widen) *************** *** 220,226 **** (mod (buffer-modified-p)) (buffer-undo-list t) (inhibit-read-only t) ! (inhibit-modification-hooks t)) (while pos (put-text-property pos (1+ pos) 'display (copy-sequence longlines-show-effect)) --- 222,229 ---- (mod (buffer-modified-p)) (buffer-undo-list t) (inhibit-read-only t) ! (inhibit-modification-hooks t) ! buffer-file-name buffer-file-truename) (while pos (put-text-property pos (1+ pos) 'display (copy-sequence longlines-show-effect)) *************** *** 235,241 **** (mod (buffer-modified-p)) (buffer-undo-list t) (inhibit-read-only t) ! (inhibit-modification-hooks t)) (while pos (remove-text-properties pos (1+ pos) '(display)) (setq pos (text-property-not-all (1+ pos) (point-max) 'hard nil))) --- 238,245 ---- (mod (buffer-modified-p)) (buffer-undo-list t) (inhibit-read-only t) ! (inhibit-modification-hooks t) ! buffer-file-name buffer-file-truename) (while pos (remove-text-properties pos (1+ pos) '(display)) (setq pos (text-property-not-all (1+ pos) (point-max) 'hard nil))) --------------020907000504030302090806 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ help-gnu-emacs mailing list help-gnu-emacs@gnu.org http://lists.gnu.org/mailman/listinfo/help-gnu-emacs --------------020907000504030302090806--