From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Markus Triska Newsgroups: gmane.emacs.devel Subject: Re: C-x C-v considered harmful Date: Fri, 03 Jul 2009 15:55:03 +0200 Message-ID: References: <19020.2798.523236.406366@rgr.rgrjr.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1246629338 17941 80.91.229.12 (3 Jul 2009 13:55:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 3 Jul 2009 13:55:38 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jul 03 15:55:31 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MMjEf-00065U-LL for ged-emacs-devel@m.gmane.org; Fri, 03 Jul 2009 15:55:29 +0200 Original-Received: from localhost ([127.0.0.1]:60746 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MMjEe-0003Qr-Qn for ged-emacs-devel@m.gmane.org; Fri, 03 Jul 2009 09:55:28 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MMjEa-0003Qc-Rw for emacs-devel@gnu.org; Fri, 03 Jul 2009 09:55:25 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MMjEW-0003PR-Rk for emacs-devel@gnu.org; Fri, 03 Jul 2009 09:55:24 -0400 Original-Received: from [199.232.76.173] (port=45295 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MMjEW-0003P9-Np for emacs-devel@gnu.org; Fri, 03 Jul 2009 09:55:20 -0400 Original-Received: from main.gmane.org ([80.91.229.2]:52076 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MMjEW-0003TY-3w for emacs-devel@gnu.org; Fri, 03 Jul 2009 09:55:20 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1MMjES-0007DS-Uw for emacs-devel@gnu.org; Fri, 03 Jul 2009 13:55:17 +0000 Original-Received: from chello062178240212.3.14.tuwien.teleweb.at ([62.178.240.212]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 03 Jul 2009 13:55:16 +0000 Original-Received: from markus.triska by chello062178240212.3.14.tuwien.teleweb.at with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 03 Jul 2009 13:55:16 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 9 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: chello062178240212.3.14.tuwien.teleweb.at Cancel-Lock: sha1:S/KXWGUDAAeXpW12SxOaVZLWO8w= X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:111961 Archived-At: Kevin Rodgers writes: > 5. Make find-alternate-file use a yes-or-no-p confirmation prompt if > the buffer has an associated process. This would cover *shell* I agree completely with Bob that C-x C-v should be made safer. I use it very frequently and have also accidentally lost data by using it. Your suggestion of making it dependent on an associated process sounds very good, but unfortunately it doesn't work for example with ERC buffers.