* Archiving only with confirmation
@ 2012-03-03 15:54 Markus Grebenstein
2012-03-03 17:50 ` cberry
2012-03-03 18:14 ` Marc-Oliver Ihm
0 siblings, 2 replies; 3+ messages in thread
From: Markus Grebenstein @ 2012-03-03 15:54 UTC (permalink / raw)
To: emacs-orgmode
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. 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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Archiving only with confirmation
2012-03-03 15:54 Archiving only with confirmation Markus Grebenstein
@ 2012-03-03 17:50 ` cberry
2012-03-03 18:14 ` Marc-Oliver Ihm
1 sibling, 0 replies; 3+ messages in thread
From: cberry @ 2012-03-03 17:50 UTC (permalink / raw)
To: emacs-orgmode
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Archiving only with confirmation
2012-03-03 15:54 Archiving only with confirmation Markus Grebenstein
2012-03-03 17:50 ` cberry
@ 2012-03-03 18:14 ` Marc-Oliver Ihm
1 sibling, 0 replies; 3+ messages in thread
From: Marc-Oliver Ihm @ 2012-03-03 18:14 UTC (permalink / raw)
To: emacs-orgmode
Am 03.03.2012 16:54, schrieb Markus Grebenstein:
> 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. 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
>
>
>
Hi Markus,
Maybe
M-x disable-command
could help.
It will ask you for the command you would like to disable (in your case probably
"org-archive-subtree")
and modify your .emacs accordingly.
You could reach the same effect by putting:
(put 'org-archive-subtree 'disabled t)
in your initialization-file (if it is not .emacs).
I think I will try this too, because I remember some occasions,
that I have used it accidentially like you ...
with kind regards, Marc
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-03-03 18:15 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-03 15:54 Archiving only with confirmation Markus Grebenstein
2012-03-03 17:50 ` cberry
2012-03-03 18:14 ` Marc-Oliver Ihm
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).