unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: "Óscar Fuentes" <ofv@wanadoo.es>
To: Andreas Schwab <schwab@suse.de>
Cc: Lars Magne Ingebrigtsen <larsi@gnus.org>,
	23151@debbugs.gnu.org, Richard Stallman <rms@gnu.org>
Subject: bug#23151: 25.1.50; Emacs should have a convenient command for saving unchanged buffers
Date: Wed, 30 Mar 2016 17:40:22 +0200	[thread overview]
Message-ID: <87bn5w6kk9.fsf@wanadoo.es> (raw)
In-Reply-To: <mvmh9fo6m71.fsf@hawking.suse.de> (Andreas Schwab's message of "Wed, 30 Mar 2016 17:05:06 +0200")

Andreas Schwab <schwab@suse.de> writes:

> Óscar Fuentes <ofv@wanadoo.es> writes:
>
>> a safe method of forcing Emacs to save the file without altering the
>> buffer's content.
>
> Two methods were already presented in this thread.

Someone mentioned C-u C-x C-w, which shows a prompt where you are
supposed to write the file name of the buffer you are visiting. If you
type the wrong file name, hopefully you will notice the mistake before
creating too much damage.

This is not a safe method.

Other mentioned C-u M-~ (which actually should be C-u M-~ C-x C-s).
Apart from being a long finger-twisting sequence, M-~ is impossible to
type on some keyboards where ~ is written as AltGr-~, or difficult in
some input methods, where ~ is a dead key.

This is not convenient.

The char&del C-x C-s method is popular because Emacs does not offer
something better out of the box. It is about time that Emacs provides an
intuitive (as per Emacs standards), convenient and safe method for doing
that task.





  reply	other threads:[~2016-03-30 15:40 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-29 15:36 bug#23151: 25.1.50; Emacs should have a convenient command for saving unchanged buffers Lars Magne Ingebrigtsen
2016-03-29 16:30 ` Drew Adams
     [not found] ` <mailman.8597.1459265831.843.bug-gnu-emacs@gnu.org>
2016-03-29 19:14   ` Alan Mackenzie
2016-03-29 23:07 ` Johan Bockgård
2016-03-29 23:41   ` Drew Adams
2016-03-30 12:09 ` Richard Stallman
2016-03-30 14:19   ` Óscar Fuentes
2016-03-30 15:05     ` Andreas Schwab
2016-03-30 15:40       ` Óscar Fuentes [this message]
2016-03-30 16:04         ` Andreas Schwab
2016-03-30 16:28           ` Óscar Fuentes
2016-03-30 17:02             ` Drew Adams
2016-03-30 16:12         ` Drew Adams
2016-03-31  7:54         ` Richard Stallman
2016-03-31 16:11           ` John Wiegley

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=87bn5w6kk9.fsf@wanadoo.es \
    --to=ofv@wanadoo.es \
    --cc=23151@debbugs.gnu.org \
    --cc=larsi@gnus.org \
    --cc=rms@gnu.org \
    --cc=schwab@suse.de \
    /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.
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).