unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#21235: emacs 24.4.1 pollutes terminal when it cannot save #file#
@ 2015-08-11  8:57 Askar Safin
  2019-08-01 20:06 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 2+ messages in thread
From: Askar Safin @ 2015-08-11  8:57 UTC (permalink / raw)
  To: 21235

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#21235: emacs 24.4.1 pollutes terminal when it cannot save #file#
  2015-08-11  8:57 bug#21235: emacs 24.4.1 pollutes terminal when it cannot save #file# Askar Safin
@ 2019-08-01 20:06 ` Lars Ingebrigtsen
  0 siblings, 0 replies; 2+ messages in thread
From: Lars Ingebrigtsen @ 2019-08-01 20:06 UTC (permalink / raw)
  To: Askar Safin; +Cc: 21235

Askar Safin <safinaskar@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





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-08-01 20:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-08-11  8:57 bug#21235: emacs 24.4.1 pollutes terminal when it cannot save #file# Askar Safin
2019-08-01 20:06 ` Lars Ingebrigtsen

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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).