GNU bug report logs -
#24423
Proposal to set buffer not-modified when downloading a sieve script
Previous Next
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Your message dated Tue, 13 Sep 2016 08:08:45 +0900
with message-id <b4m60q07m2q.fsf <at> jpl.org>
and subject line Re: bug#24423: Proposal to set buffer not-modified when downloading a sieve script
has caused the debbugs.gnu.org bug report #24423,
regarding Proposal to set buffer not-modified when downloading a sieve script
to be marked as done.
(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)
--
24423: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=24423
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
[Message part 3 (text/plain, inline)]
Hi,
Because sieve-edit-script() does not set buffer not-modified when
downloading a sieve script, so, a user including muself cannot
distinguish whether the viewing script is modified or not modified from
the downloaded script on the managesieve server.
If sieve-edit-script() set buffer not-modified when downloading a sieve
script, a user can distinguish its modified status easily.
Therefore, I propose the following patch.
--
TSUCHIYA Masatoshi
[Message part 4 (text/x-diff, inline)]
--- a/lisp/sieve.el
+++ b/lisp/sieve.el
@@ -207,7 +207,8 @@ require \"fileinto\";
err)
(setq err (sieve-manage-getscript name newbuf sieve-manage-buffer))
(switch-to-buffer newbuf)
- (unless (sieve-manage-ok-p err)
+ (if (sieve-manage-ok-p err)
+ (set-buffer-modified-p nil)
(error "Sieve download failed: %s" err)))
(switch-to-buffer (get-buffer-create "template.siv"))
(insert sieve-template))
[signature.asc (application/pgp-signature, inline)]
[Message part 6 (message/rfc822, inline)]
On Mon, 12 Sep 2016 16:03:18 -0400, TSUCHIYA Masatoshi wrote:
> Because sieve-edit-script() does not set buffer not-modified when
> downloading a sieve script, so, a user including muself cannot
> distinguish whether the viewing script is modified or not modified from
> the downloaded script on the managesieve server.
> If sieve-edit-script() set buffer not-modified when downloading a sieve
> script, a user can distinguish its modified status easily.
> Therefore, I propose the following patch.
The patch looks fine and useful. I've committed it in the Emacs
master with this log entry:
sieve.el: Make the buffer to edit unmodified initially (bug#24423)
* lisp/net/sieve.el (sieve-edit-script):
Make the buffer to edit be not modified-p initially (bug#24423).
Thanks.
This bug report was last modified 8 years and 254 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.