From: Reiner Steib <reinersteib+gmane@imap.cc>
Subject: Not prompting user in gnus-mime-delete-part and gnus-mime-save-part-and-strip
Date: Fri, 26 Aug 2005 14:23:18 +0200 [thread overview]
Message-ID: <v9br3kx4y1.fsf@marauder.physik.uni-ulm.de> (raw)
Hi,
I'd like to have an option in Gnus to get rid of the prompt "Deleting
parts may malfunction or destroy the article; continue?" when deleting
or stripping attachments.
My first idea [1] was to skip the prompt when `gnus-expert-user' is
non-nil, but it's doc string says:
,----[ C-h v gnus-expert-user RET ]
| gnus-expert-user's value is t
|
| *Non-nil means that you will never be asked for confirmation about anything.
| That doesn't mean *anything* anything; particularly destructive
| commands will still require prompting.
`----
Deleting parts is destructive of course, but not more destructive than
`gnus-summary-delete-article'. Should I add a separately variable,
say `gnus-interactive-delete' instead or use `gnus-expert-user'?
,----[ C-h v gnus-interactive-delete RET ]
| gnus-interactive-delete's value is t
|
| If non-nil, require your confirmation deleting or stripping mime parts
|
| You can customize this variable.
`----
Bye, Reiner.
[1]
--8<---------------cut here---------------start------------->8---
--- gnus-art.el 26 Aug 2005 00:05:03 -0000 7.111
+++ gnus-art.el 26 Aug 2005 12:14:16 -0000
@@ -4147,8 +4147,9 @@
(when (mm-complicated-handles gnus-article-mime-handles)
(error "\
The current article has a complicated MIME structure, giving up..."))
- (when (gnus-yes-or-no-p "\
-Deleting parts may malfunction or destroy the article; continue? ")
+ (when (or gnus-expert-user
+ (gnus-yes-or-no-p "\
+Deleting parts may malfunction or destroy the article; continue? "))
(let* ((data (get-text-property (point) 'gnus-data))
file param
(handles gnus-article-mime-handles))
@@ -4181,8 +4182,9 @@
(when (mm-complicated-handles gnus-article-mime-handles)
(error "\
The current article has a complicated MIME structure, giving up..."))
- (when (gnus-yes-or-no-p "\
-Deleting parts may malfunction or destroy the article; continue? ")
+ (when (or gnus-expert-user
+ (gnus-yes-or-no-p "\
+Deleting parts may malfunction or destroy the article; continue? "))
(let* ((data (get-text-property (point) 'gnus-data))
(handles gnus-article-mime-handles)
(none "(none)")
--8<---------------cut here---------------end--------------->8---
--
,,,
(o o)
---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/
next reply other threads:[~2005-08-26 12:23 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-08-26 12:23 Reiner Steib [this message]
2005-08-27 20:57 ` Not prompting user in gnus-mime-delete-part and Dan Christensen
2005-08-28 0:32 ` Katsumi Yamaoka
2005-08-28 12:49 ` Reiner Steib
2005-08-29 0:19 ` Katsumi Yamaoka
2005-08-29 14:53 ` Reiner Steib
2005-08-30 1:36 ` Katsumi Yamaoka
2005-08-30 2:25 ` Dan Christensen
2005-08-30 6:07 ` Katsumi Yamaoka
2005-08-28 12:40 ` Imroving deleting/stripping MIME parts (was: Not prompting user in gnus-mime-delete-part and) Reiner Steib
2005-08-29 14:57 ` Imroving deleting/stripping MIME parts Reiner Steib
2005-08-30 2:22 ` Dan Christensen
2005-08-30 13:04 ` Reiner Steib
2005-08-30 15:25 ` Dan Christensen
2005-08-30 16:44 ` Reiner Steib
2005-08-31 4:18 ` Katsumi Yamaoka
2005-08-31 10:26 ` Reiner Steib
2005-08-31 11:11 ` Katsumi Yamaoka
2005-09-01 5:29 ` Katsumi Yamaoka
2005-09-01 18:41 ` Reiner Steib
2005-09-02 7:07 ` Katsumi Yamaoka
2005-09-02 16:17 ` Reiner Steib
2005-09-05 5:39 ` Katsumi Yamaoka
2005-09-05 13:15 ` Reiner Steib
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=v9br3kx4y1.fsf@marauder.physik.uni-ulm.de \
--to=reinersteib+gmane@imap.cc \
--cc=Reiner.Steib@gmx.de \
/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.
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 NNTP newsgroup(s).