From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.bugs Subject: bug#11017: 24.0.94; emacs-lock--kill-emacs-query-functions should ding Date: Fri, 16 Mar 2012 02:11:22 +0100 Message-ID: <86obrxuz7p.fsf@web.de> References: <86mx7i79lb.fsf@web.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1331859963 6997 80.91.229.3 (16 Mar 2012 01:06:03 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 16 Mar 2012 01:06:03 +0000 (UTC) Cc: 11017@debbugs.gnu.org To: Juanma Barranquero Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Mar 16 02:06:02 2012 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 1S8LcF-0000HI-QL for geb-bug-gnu-emacs@m.gmane.org; Fri, 16 Mar 2012 02:05:59 +0100 Original-Received: from localhost ([::1]:35242 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S8LcF-0000qT-3p for geb-bug-gnu-emacs@m.gmane.org; Thu, 15 Mar 2012 21:05:59 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:58978) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S8LcB-0000oi-IJ for bug-gnu-emacs@gnu.org; Thu, 15 Mar 2012 21:05:57 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S8Lc9-0004Sa-Ct for bug-gnu-emacs@gnu.org; Thu, 15 Mar 2012 21:05:55 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:45752) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S8Lc9-0004SH-9n for bug-gnu-emacs@gnu.org; Thu, 15 Mar 2012 21:05:53 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1S8M5K-00008C-MB for bug-gnu-emacs@gnu.org; Thu, 15 Mar 2012 21:36:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Heerdegen Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 16 Mar 2012 01:36:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11017 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 11017-submit@debbugs.gnu.org id=B11017.1331861735466 (code B ref 11017); Fri, 16 Mar 2012 01:36:02 +0000 Original-Received: (at 11017) by debbugs.gnu.org; 16 Mar 2012 01:35:35 +0000 Original-Received: from localhost ([127.0.0.1]:52584 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1S8M4t-00007S-B8 for submit@debbugs.gnu.org; Thu, 15 Mar 2012 21:35:35 -0400 Original-Received: from fmmailgate05.web.de ([217.72.192.243]:41878) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1S8M4g-00007A-9Q for 11017@debbugs.gnu.org; Thu, 15 Mar 2012 21:35:33 -0400 Original-Received: from moweb002.kundenserver.de (moweb002.kundenserver.de [172.19.20.108]) by fmmailgate05.web.de (Postfix) with ESMTP id 5223D6B726B5 for <11017@debbugs.gnu.org>; Fri, 16 Mar 2012 02:05:10 +0100 (CET) Original-Received: from dragon.dragon ([94.218.218.48]) by smtp.web.de (mrweb001) with ESMTPA (Nemesis) id 0Lk8Ow-1Sj4Gd0XKk-00bxMx; Fri, 16 Mar 2012 02:05:09 +0100 In-Reply-To: (Juanma Barranquero's message of "Thu, 15 Mar 2012 13:54:12 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.94 (gnu/linux) X-Provags-ID: V02:K0:ZHiWz8ik1lVjBrnbftez+DV6gaVKZeMjjo/LySQ5RsC H9WRgQxanWQ0RN6Aao5Wr6LRiYi9D2zb04GIurr6khCpMxPNUM ZPOo46DG+V5Yz30/QGC7oTms23hjFVrq2hQ43lVo2zrsO2m59Y ica+2a0E5ZVbuiJSgrqx9aGCjSXhOoNSjZO+lWHCoh73bDiyQV pogv6fWYMginvBvJuwEyihQOZDUAIVXT5fDcE4KGLg= X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.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:57809 Archived-At: Juanma Barranquero writes: > > "Buffer %S is locked and cannot be killed" > > Really? I get "Emacs cannot exit because buffer %S is locked". Sorry - I copied the wrong string. >> [...] So, there should be a (ding) to attract the user's attention. > > A ding is obnoxious to many people. That's why I think it's appropriate here ;-) > It could be added as an option, but it is not really necessary IMHO. I would appreciate such an option (what do others think?). > Getting into the habit of typing without reading what Emac is saying > is dangerous because you can end typing Y to a question you would've > rather said N... Right, no doubt. Nevertheless, it may happen if you lack in concentration at the end of your work... I don't want to argue, we obviously disagree. I wrote this report because I thought others could have the same wish. Dunno if that's the case. BTW: I wrote this some time ago: http://www.emacswiki.org/emacs/emacs-lock+.el (Didn't adopt it for Emacs 24 yet.) I wrote it mainly because of these two features: - when exiting Emacs, and there is a locked buffer, pop it up (because it's very likely that the user will want to see it next) - Optionally, let the user enter a short note of why he has locked the buffer. Print this when the user tries to kill the buffer/ Emacs. Helpful as reminder for people who run Emacs for several days. Maybe you find these useful, dunno - I don't mind if not. Regards, Michael.