From mboxrd@z Thu Jan  1 00:00:00 1970
From: cberry@tajo.ucsd.edu
Subject: Re: Archiving only with confirmation
Date: Sat, 03 Mar 2012 09:50:18 -0800
Message-ID: <87linhk205.fsf@tajo.ucsd.edu>
References: <4F523ED2.2080307@mgrebenstein.de>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Return-path: <emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org>
Received: from eggs.gnu.org ([208.118.235.92]:43318)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <geo-emacs-orgmode@m.gmane.org>) id 1S3t6I-0002ot-Tn
	for emacs-orgmode@gnu.org; Sat, 03 Mar 2012 12:50:36 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <geo-emacs-orgmode@m.gmane.org>) id 1S3t6G-0004Di-JT
	for emacs-orgmode@gnu.org; Sat, 03 Mar 2012 12:50:34 -0500
Received: from plane.gmane.org ([80.91.229.3]:46721)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <geo-emacs-orgmode@m.gmane.org>) id 1S3t6G-0004DY-CS
	for emacs-orgmode@gnu.org; Sat, 03 Mar 2012 12:50:32 -0500
Received: from list by plane.gmane.org with local (Exim 4.69)
	(envelope-from <geo-emacs-orgmode@m.gmane.org>) id 1S3t6E-0000UK-PT
	for emacs-orgmode@gnu.org; Sat, 03 Mar 2012 18:50:30 +0100
Received: from tajo.ucsd.edu ([137.110.122.165])
	by main.gmane.org with esmtp (Gmexim 0.1 (Debian))
	id 1AlnuQ-0007hv-00
	for <emacs-orgmode@gnu.org>; Sat, 03 Mar 2012 18:50:30 +0100
Received: from cberry by tajo.ucsd.edu with local (Gmexim 0.1 (Debian))
	id 1AlnuQ-0007hv-00
	for <emacs-orgmode@gnu.org>; Sat, 03 Mar 2012 18:50:30 +0100
List-Id: "General discussions about Org-mode." <emacs-orgmode.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/emacs-orgmode>,
	<mailto:emacs-orgmode-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/emacs-orgmode>
List-Post: <mailto:emacs-orgmode@gnu.org>
List-Help: <mailto:emacs-orgmode-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/emacs-orgmode>,
	<mailto:emacs-orgmode-request@gnu.org?subject=subscribe>
Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org
Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org
To: emacs-orgmode@gnu.org

Markus Grebenstein <post@mgrebenstein.de> writes:

> Dear List,
>
> from time to time I involuntarily archive parts of my thesis when I
> want to save (it happens when I mess up the saving keys). Since I
> recognized this a couple of days or even weeks later this makes
> recovering complicated.
>
> Therefore I would love to have the possibility to be asked whether I
> really want to do that.

Is this what you want:

,----
| (emacs)Top > Customization > Key Bindings > Disabling                                                           
| 
| 57.4.11 Disabling Commands
| --------------------------
| 
| Disabling a command means that invoking it interactively asks for
| confirmation from the user.  The purpose of disabling a command is to
| prevent users from executing it by accident; [...]
`----

For example, I have this in my macbook ~/.emacs


,----
| ;; get rid of pesky aquamacs-save-buffers-kill-emacs binding
| 
| (put 'aquamacs-save-buffers-kill-emacs  'disabled 
|      "Use C-x C-c to quit\n")
| 
| (put 'aquamacs-print 'disabled "Why print?\n")
`----

To protect against the commands bound to clover-p and clover-q being
inadvertently run when what I really wanted was M-p or M-q. (The clover
key sits next to the 'M-' on my keyboard.)



HTH,

Chuck

 I used
> org-archive-subtree-default-with-confirmation but I did not get what
> the meaning of that one is. When I use that command I am sure that I
> want to archive and as far as I see it does not change the default
> behavior.
>
> Does anybody have an idea how to achieve what I want?
> Thanks in advance,
>
> Markus
>
>
>

-- 
Charles C. Berry                            Dept of Family/Preventive Medicine
cberry at ucsd edu			    UC San Diego
http://famprevmed.ucsd.edu/faculty/cberry/  La Jolla, San Diego 92093-0901