From: martin rudalics <rudalics@gmx.at>
To: dmitry.bolshakov@bridge-quest.com
Cc: help-gnu-emacs@gnu.org
Subject: Re: longlines and global-auto-revert-mode
Date: Tue, 15 Jan 2008 18:35:25 +0100 [thread overview]
Message-ID: <478CEEDD.10001@gmx.at> (raw)
[-- Attachment #1: Type: text/plain, Size: 436 bytes --]
> 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.
[-- Attachment #2: longlines.patch --]
[-- Type: text/plain, Size: 2573 bytes --]
*** 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)))
[-- Attachment #3: Type: text/plain, Size: 152 bytes --]
_______________________________________________
help-gnu-emacs mailing list
help-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs
next reply other threads:[~2008-01-15 17:35 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-15 17:35 martin rudalics [this message]
2008-01-16 10:07 ` longlines and global-auto-revert-mode Dmitry Bolshakov
2008-01-16 10:55 ` martin rudalics
2008-01-16 12:29 ` Dmitry Bolshakov
-- strict thread matches above, loose matches on Subject: below --
2008-01-15 10:01 Dmitry Bolshakov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=478CEEDD.10001@gmx.at \
--to=rudalics@gmx.at \
--cc=dmitry.bolshakov@bridge-quest.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).