emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: cberry@tajo.ucsd.edu
To: emacs-orgmode@gnu.org
Subject: Re: Archiving only with confirmation
Date: Sat, 03 Mar 2012 09:50:18 -0800	[thread overview]
Message-ID: <87linhk205.fsf@tajo.ucsd.edu> (raw)
In-Reply-To: 4F523ED2.2080307@mgrebenstein.de

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

  reply	other threads:[~2012-03-03 17:50 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-03 15:54 Archiving only with confirmation Markus Grebenstein
2012-03-03 17:50 ` cberry [this message]
2012-03-03 18:14 ` Marc-Oliver Ihm

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87linhk205.fsf@tajo.ucsd.edu \
    --to=cberry@tajo.ucsd.edu \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).