GNU bug report logs - #21235
emacs 24.4.1 pollutes terminal when it cannot save #file#

Previous Next

Package: emacs;

Reported by: Askar Safin <safinaskar <at> mail.ru>

Date: Tue, 11 Aug 2015 15:35:02 UTC

Severity: minor

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 21235 in the body.
You can then email your comments to 21235 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#21235; Package emacs. (Tue, 11 Aug 2015 15:35:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Askar Safin <safinaskar <at> mail.ru>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Tue, 11 Aug 2015 15:35:03 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Askar Safin <safinaskar <at> mail.ru>
To: bug-gnu-emacs <at> gnu.org
Subject: emacs 24.4.1 pollutes terminal when it cannot save #file#
Date: Tue, 11 Aug 2015 11:57:19 +0300
Steps to reproduce:
1. You should have some directory where you cannot write (for example, you are user "user" and you cannot write to "/").
And you should have some file in this directory you able to write. For example:
$ sudo touch /file
$ sudo chown user:user /file
$ emacs -nw /file
2. Type some text to file, then press C-x C-c, then press "n" (i. e. "don't save"), then type "yes" (i. e. "exit anyway")

You will see this message:
"Auto-saving file: Opening output file: permission denied, /#file#"

And then your terminal will be somehow destroyed/polluted. For example, Emacs image will continue to exists in your
terminal, even if it normally doesn't do this. Or alternatively, new prompt will appear on top of error message and you
will see, for example, this:

15  2015-08-11 11:54:04  ~$ emacs /file
Auto-sav15  2015-08-11 11:54:13  ~$ e: permission denied, /#file#

Emacs 24.4.1, all this happened in Konsole (sic!) 2.14.2, KDE 4.14.2, Debian GNU/Linux Jessie 8.

==
Askar Safin
http://vk.com/safinaskar

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#21235; Package emacs. (Thu, 01 Aug 2019 20:07:01 GMT) Full text and rfc822 format available.

Message #8 received at 21235 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Askar Safin <safinaskar <at> mail.ru>
Cc: 21235 <at> debbugs.gnu.org
Subject: Re: bug#21235: emacs 24.4.1 pollutes terminal when it cannot save
 #file#
Date: Thu, 01 Aug 2019 22:06:04 +0200
Askar Safin <safinaskar <at> mail.ru> writes:

> Steps to reproduce:
> 1. You should have some directory where you cannot write (for example,
> you are user "user" and you cannot write to "/").
> And you should have some file in this directory you able to write. For example:
> $ sudo touch /file
> $ sudo chown user:user /file
> $ emacs -nw /file
> 2. Type some text to file, then press C-x C-c, then press "n"
> (i. e. "don't save"), then type "yes" (i. e. "exit anyway")
>
> You will see this message:
> "Auto-saving file: Opening output file: permission denied, /#file#"
>
> And then your terminal will be somehow destroyed/polluted. For
> example, Emacs image will continue to exists in your
> terminal, even if it normally doesn't do this. Or alternatively, new
> prompt will appear on top of error message and you
> will see, for example, this:
>
> 15  2015-08-11 11:54:04  ~$ emacs /file
> Auto-sav15  2015-08-11 11:54:13  ~$ e: permission denied, /#file#

(I'm going through old bug reports that have unfortunately not gotten
any responses.)

I'm unable to reproduce this problem in Emacs 27, so I'm guessing that
this has been fixed in the years that have passed since this bug was
filed, and I'm closing the report.  If you're still seeing this, please
reopen.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




bug closed, send any further explanations to 21235 <at> debbugs.gnu.org and Askar Safin <safinaskar <at> mail.ru> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Thu, 01 Aug 2019 20:07:03 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 30 Aug 2019 11:24:06 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 240 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.