From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Magne Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#23151: 25.1.50; Emacs should have a convenient command for saving unchanged buffers Date: Tue, 29 Mar 2016 17:36:23 +0200 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1459265901 19567 80.91.229.3 (29 Mar 2016 15:38:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 29 Mar 2016 15:38:21 +0000 (UTC) To: 23151@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Mar 29 17:38:08 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1akvhk-00057n-8Y for geb-bug-gnu-emacs@m.gmane.org; Tue, 29 Mar 2016 17:37:16 +0200 Original-Received: from localhost ([::1]:48022 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1akvhj-0007GF-3T for geb-bug-gnu-emacs@m.gmane.org; Tue, 29 Mar 2016 11:37:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48771) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1akvhc-0007BY-IA for bug-gnu-emacs@gnu.org; Tue, 29 Mar 2016 11:37:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1akvhW-0005yS-C4 for bug-gnu-emacs@gnu.org; Tue, 29 Mar 2016 11:37:08 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:46817) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1akvhW-0005yN-9C for bug-gnu-emacs@gnu.org; Tue, 29 Mar 2016 11:37:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1akvhW-0008WB-2U for bug-gnu-emacs@gnu.org; Tue, 29 Mar 2016 11:37:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Magne Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 29 Mar 2016 15:37:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 23151 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.145926580532718 (code B ref -1); Tue, 29 Mar 2016 15:37:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 29 Mar 2016 15:36:45 +0000 Original-Received: from localhost ([127.0.0.1]:43944 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1akvhF-0008Ve-8A for submit@debbugs.gnu.org; Tue, 29 Mar 2016 11:36:45 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:57690) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1akvhC-0008VR-Uf for submit@debbugs.gnu.org; Tue, 29 Mar 2016 11:36:43 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1akvh6-0005sL-9d for submit@debbugs.gnu.org; Tue, 29 Mar 2016 11:36:37 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:46681) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1akvh6-0005sH-6h for submit@debbugs.gnu.org; Tue, 29 Mar 2016 11:36:36 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48644) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1akvh1-0006Hx-Kk for bug-gnu-emacs@gnu.org; Tue, 29 Mar 2016 11:36:36 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1akvgy-0005qm-4l for bug-gnu-emacs@gnu.org; Tue, 29 Mar 2016 11:36:31 -0400 Original-Received: from hermes.netfonds.no ([80.91.224.195]:44793) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1akvgx-0005qb-RE for bug-gnu-emacs@gnu.org; Tue, 29 Mar 2016 11:36:28 -0400 Original-Received: from cm-84.215.1.64.getinternet.no ([84.215.1.64] helo=stories) by hermes.netfonds.no with esmtpsa (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.84_2) (envelope-from ) id 1akvgt-0003f9-UU for bug-gnu-emacs@gnu.org; Tue, 29 Mar 2016 17:36:26 +0200 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:115706 Archived-At: During an unrelated discussion on emacs-devel, it turns out that virtually everybody is in the habit of making a change, then deleting the change, just to make `C-x C-s' work. This means that there is a need for Emacs to offer a command to save buffers, even if they aren't changed. (All the electricity in the Emacs modes means that even if you find typing `SPC DEL C-x C-s' convenient, sometimes it makes Stuff Happens, and that DEL doesn't really undo what you've done.) Several options exist: 1) Have the interactive `C-x C-s' command always save the buffer, no matter whether it's unchanged or not. I think many people would object to this, as they're used to just `C-x C-s'-ing idly while thinking of other things. 2) Have the prefix to that command save the unchanged buffer. This would be the obvious choice, but: -------------- (save-buffer &optional ARG) Save current buffer in visited file if modified. Variations are described below. By default, makes the previous version into a backup file if previously requested or if this is the first save. Prefixed with one C-u, marks this version to become a backup when the next save is done. Prefixed with two C-u=92s, unconditionally makes the previous version into a backup file. Prefixed with three C-u=92s, marks this version to become a backup when the next save is done, and unconditionally makes the previous version into a backup file. -------------- Eh. Four `C-u's? I don't think so. We could bind `C-x C-s' to a new `save-buffer-command' that has different prefix rules. Does anybody use the backup stuff? 3) Add a new keystroke. 4) Something else. In GNU Emacs 25.1.50.20 (x86_64-unknown-linux-gnu, GTK+ Version 3.4.2) of 2016-03-28 built on stories Repository revision: a30e7e12ed8465e2565dd318d921bc87f52ce18e Windowing system distributor 'The X.Org Foundation', version 11.0.11604000 System Description: Debian GNU/Linux 7.9 (wheezy) Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GSETTINGS NOTIFY GNUTLS LIBXML2 FREETYPE LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 Important settings: value of $LANG: en_US locale-coding-system: iso-latin-1-unix Major mode: Group Minor modes in effect: gnus-topic-mode: t gnus-undo-mode: t tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t buffer-read-only: t line-number-mode: t Recent messages: Auto-saving...done Mark set Sending... Mark set [2 times] Sending news via news.gmane.org using nntp... Mark set Saving file /home/larsi/Mail/archive/sent/2016w13... Wrote /home/larsi/Mail/archive/sent/2016w13 Sending...done Making completion list... Load-path shadows: /home/larsi/src/clock.el/clock hides /home/larsi/lisp/clock /home/larsi/src/cddb.el/expect hides /home/larsi/lisp/expect /home/larsi/src/pvr.el/pvr hides /home/larsi/lisp/pvr ~/pgnus/contrib/vcard hides /home/larsi/lisp/vcard /home/larsi/src/cddb.el/captitle hides /home/larsi/lisp/captitle ~/lisp/zenirc-2.112/src/zenirc-example hides /home/larsi/lisp/zenirc-example /home/larsi/lisp/dom hides /home/larsi/src/emacs/trunk/lisp/dom ~/pgnus/contrib/compface hides /home/larsi/src/emacs/trunk/lisp/image/compf= ace Features: (shadow emacsbug canlock ecomplete mailalias smtpmail sendmail pp eww flow-fill shr-color color mm-archive vc vc-dispatcher copyright vc-cvs gnus-html url-queue help-fns url-cache gnus-picon sort smiley ansi-color gnus-cite gnus-async gnus-dup qp gnus-ml gmane spam-gmane dns mm-url disp-table gnus-fun gnus-mdrtn pop3 nndoc nnmbox nndraft utf-7 gnus-topic nnmh nnml nnfolder network-stream nsm starttls nnir spam-report spam spam-stat gnus-uu yenc gnus-agent gnus-srvr gnus-score score-mode nnvirtual gnus-msg gnus-art mm-uu mml2015 mm-view mml-smime smime dig nntp gnus-cache gnus-sum gnus-group gnus-undo gnus-start gnus-cloud nnimap nnmail mail-source utf7 netrc nnoo parse-time gnus-spec gnus-int gnus-range message format-spec rfc822 mml mml-sec epa epg mailabbrev gmm-utils mailheader gnus-win gnus nnheader gnus-util rmail rmail-loaddefs mail-utils movie mkv shr svg imdb dom pvr debug debbugs-gnu easy-mmode derived debbugs soap-client mm-decode mm-bodies mm-encode url-http tls gnutls url-auth mail-parse rfc2231 rfc2047 rfc2045 ietf-drums url-gw puny url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util mailcap warnings rng-xsd rng-dt rng-util xsd-regexp xml ido seq flyspell ispell benchmark w3m browse-url doc-view subr-x dired dired-loaddefs image-mode timezone w3m-hist w3m-fb w3m-ems wid-edit w3m-ccl ccl w3m-favicon w3m-image w3m-proc w3m-util add-log mail-extr mm-util mail-prsvr jka-compr cl finder-inf package epg-config url-handlers url-parse auth-source cl-seq eieio byte-opt bytecomp byte-compile cl-extra help-mode easymenu cconv eieio-core cl-macs gv eieio-loaddefs cl-loaddefs pcase cl-lib password-cache url-vars time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese charscript case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote inotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 1005682 78299) (symbols 48 170020 42) (miscs 40 459 1268) (strings 32 242952 10814) (string-bytes 1 17792152) (vectors 16 42307) (vector-slots 8 1751093 224622) (floats 8 6934 679) (intervals 56 58542 6650) (buffers 976 52) (heap 1024 124930 33067)) --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no