From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Luc Teirlinck Newsgroups: gmane.emacs.devel Subject: Re: Small enhancement for add-log.el Date: Thu, 7 Oct 2004 18:07:54 -0500 (CDT) Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Message-ID: <200410072307.i97N7s307908@raven.dms.auburn.edu> References: NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1097190644 14818 80.91.229.6 (7 Oct 2004 23:10:44 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 7 Oct 2004 23:10:44 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Oct 08 01:10:31 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CFhP4-0001km-00 for ; Fri, 08 Oct 2004 01:10:30 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CFhVp-0001z7-PA for ged-emacs-devel@m.gmane.org; Thu, 07 Oct 2004 19:17:29 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CFhVI-0001xR-5G for emacs-devel@gnu.org; Thu, 07 Oct 2004 19:16:56 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CFhVH-0001wf-5c for emacs-devel@gnu.org; Thu, 07 Oct 2004 19:16:55 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CFhVG-0001wU-Sz for emacs-devel@gnu.org; Thu, 07 Oct 2004 19:16:55 -0400 Original-Received: from [131.204.53.104] (helo=manatee.dms.auburn.edu) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CFhNa-0001Af-7f for emacs-devel@gnu.org; Thu, 07 Oct 2004 19:08:58 -0400 Original-Received: from raven.dms.auburn.edu (raven.dms.auburn.edu [131.204.53.29]) by manatee.dms.auburn.edu (8.12.10/8.12.10) with ESMTP id i97N8iiU028360; Thu, 7 Oct 2004 18:08:44 -0500 (CDT) Original-Received: (from teirllm@localhost) by raven.dms.auburn.edu (8.11.7p1+Sun/8.11.7) id i97N7s307908; Thu, 7 Oct 2004 18:07:54 -0500 (CDT) X-Authentication-Warning: raven.dms.auburn.edu: teirllm set sender to teirllm@dms.auburn.edu using -f Original-To: storm@cua.dk In-reply-to: (storm@cua.dk) 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: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:28070 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:28070 Kim Storm wrote: When I look through ChangeLog files, I often type `q' to quit -- but instead a q is inserted into the buffer. What about the following change [I know it's a hack] which kills the buffer if you type `q' in an unmodified ChangeLog buffer. I do not have this tendency myself and I believe that this is just a personal idiosyncrasy. I believe the probability of doing that would be a lot bigger when editing etc/NEWS, because there everything looks exactly like if you had done `C-h n'. Even for etc/NEWS, I would not recommend your solution. I have other idiosyncrasies myself. In a buffer visiting a file, I often type `^', expecting to visit the file's directory in Dired (because I think of `^' as going up in the directory tree). I just erase the `^' and do `C-x d'. I am not going to suggest to rebind `^' in file visiting buffers, to fit that habit of mine. It should be pretty safe, as the buffer is modified after C-x 4 a and similar commands. But it is no longer modified after you save your changes without being completely through editing. (I often do that.) Having to erase the `q' and having to type `C-x k' is by no means as inconvenient as having to revisit the file and losing all your undo history. Sincerely, Luc.