Killing unwanted post
Occasionally when I am writing an email or news article I realize that I don't want to send it after all, for some reason. I don't want to save it even as a draft, so I use C-c C-k, "message-kill-buffer". I then get "Message modified; kill anyway? (yes or no)" in the minibuffer. Is there a way to suppress this message? I'd like the kill to happen without confirmation. David -- David Sumbler Please reply with a followup to the newsgroup. However, if you _really_ want to send me an e-mail, replace "nospam" in my address with "aeolia". ___ Info-gnus-english mailing list Info-gnus-english@gnu.org http://lists.gnu.org/mailman/listinfo/info-gnus-english
Re: Killing unwanted post
On Thu, 14 Apr 2005, [EMAIL PROTECTED] wrote: > Occasionally when I am writing an email or news article I realize that > I don't want to send it after all, for some reason. I don't want to > save it even as a draft, so I use C-c C-k, "message-kill-buffer". > > I then get "Message modified; kill anyway? (yes or no)" in the > minibuffer. Is there a way to suppress this message? I'd like the > kill to happen without confirmation. I just added the message-kill-buffer-query-if-modified variable to message.el in CVS. It's t by default, so you should set it to nil to achieve the desired effect. Ted ___ Info-gnus-english mailing list Info-gnus-english@gnu.org http://lists.gnu.org/mailman/listinfo/info-gnus-english
Re: Killing unwanted post
On Thu, Apr 14 2005, Ted Zlatanov wrote: > I just added the message-kill-buffer-query-if-modified variable to > message.el in CVS. It's t by default, so you should set it to nil to > achieve the desired effect. How about renaming it to `message-kill-buffer-query'? Bye, Reiner. -- ,,, (o o) ---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/ ___ Info-gnus-english mailing list Info-gnus-english@gnu.org http://lists.gnu.org/mailman/listinfo/info-gnus-english
Re: Killing unwanted post
On Thu, 14 Apr 2005, [EMAIL PROTECTED] wrote: On Thu, Apr 14 2005, Ted Zlatanov wrote: > >> I just added the message-kill-buffer-query-if-modified variable to >> message.el in CVS. It's t by default, so you should set it to nil to >> achieve the desired effect. > > How about renaming it to `message-kill-buffer-query'? I think the -if-modified is important, don't you? There was also message-kill-buffer-on-exit which could be confusing to the user with that name change (does message-kill-buffer-query apply to it?). If you feel it's a much better name, feel free to make the change :) I am not strongly attached to it. Ted == Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News== http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups = East and West-Coast Server Farms - Total Privacy via Encryption = ___ Info-gnus-english mailing list Info-gnus-english@gnu.org http://lists.gnu.org/mailman/listinfo/info-gnus-english
Re: Killing unwanted post
Ted Zlatanov <[EMAIL PROTECTED]> writes: > On Thu, 14 Apr 2005, [EMAIL PROTECTED] wrote: > >> Occasionally when I am writing an email or news article I realize that >> I don't want to send it after all, for some reason. I don't want to >> save it even as a draft, so I use C-c C-k, "message-kill-buffer". >> >> I then get "Message modified; kill anyway? (yes or no)" in the >> minibuffer. Is there a way to suppress this message? I'd like the >> kill to happen without confirmation. > > I just added the message-kill-buffer-query-if-modified variable to > message.el in CVS. It's t by default, so you should set it to nil to > achieve the desired effect. I don't use CVS, but I tried adding the line (setq message-kill-buffer-query-if-modified nil) to message.el, then ran byte-compile-file on it. But it didn't seem to make any difference. I'm using Gnus v10.5.6. What am I doing wrong? David -- David Sumbler Please reply with a followup to the newsgroup. However, if you _really_ want to send me an e-mail, replace "nospam" in my address with "aeolia". ___ Info-gnus-english mailing list Info-gnus-english@gnu.org http://lists.gnu.org/mailman/listinfo/info-gnus-english
Re: Killing unwanted post
On Thu, 14 Apr 2005, [EMAIL PROTECTED] wrote: > I don't use CVS, but I tried adding the line > > (setq message-kill-buffer-query-if-modified nil) > > to message.el, then ran byte-compile-file on it. > > But it didn't seem to make any difference. I'm using Gnus v10.5.6. You need to get message.el (or all of Gnus) from CVS, or wait for the next release. It's a new feature so I don't think it should go into the maintenance trunk, where only bug fixes are supposed to go. Do you need help with that? Ted == Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News== http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups = East and West-Coast Server Farms - Total Privacy via Encryption = ___ Info-gnus-english mailing list Info-gnus-english@gnu.org http://lists.gnu.org/mailman/listinfo/info-gnus-english
Re: Killing unwanted post
Ted Zlatanov <[EMAIL PROTECTED]> writes: > On Thu, 14 Apr 2005, [EMAIL PROTECTED] wrote: > >> I don't use CVS, but I tried adding the line >> >> (setq message-kill-buffer-query-if-modified nil) >> >> to message.el, then ran byte-compile-file on it. >> >> But it didn't seem to make any difference. I'm using Gnus v10.5.6. > > You need to get message.el (or all of Gnus) from CVS, or wait for the > next release. It's a new feature so I don't think it should go into > the maintenance trunk, where only bug fixes are supposed to go. > > Do you need help with that? I'd probably need quite a bit of help. I might try for just the message.el bit, just to give me the idea. I've never used CVS in anger! If it's not too much trouble, perhaps you could give me a brief step-by-step guide. I'd be very grateful, but don't worry if you don't think it's practical. David -- David Sumbler Please reply with a followup to the newsgroup. However, if you _really_ want to send me an e-mail, replace "nospam" in my address with "aeolia". ___ Info-gnus-english mailing list Info-gnus-english@gnu.org http://lists.gnu.org/mailman/listinfo/info-gnus-english
Re: Killing unwanted post
On Fri, Apr 15 2005, Ted Zlatanov wrote: > You need to get message.el (or all of Gnus) from CVS, or wait for the > next release. IMO, replacing random parts like `message.el' from newer Gnus versions is a recipe for trouble. David could either apply your patch to Gnus 5.10.x or do something like the following in his `~/.gnus.el'. (require 'message) (unless (boundp 'message-kill-buffer-query-if-modified) (defcustom message-kill-buffer-query-if-modified t ... [from No Gnus] ...) (defun message-kill-buffer-from () "Kill the current buffer. From No Gnus." ... [from No Gnus] ...) (message "Replaced `message-kill-buffer-from'")) Bye, Reiner. -- ,,, (o o) ---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/ ___ Info-gnus-english mailing list Info-gnus-english@gnu.org http://lists.gnu.org/mailman/listinfo/info-gnus-english
Re: Killing unwanted post
On Fri, 15 Apr 2005, [EMAIL PROTECTED] wrote: > Ted Zlatanov <[EMAIL PROTECTED]> writes: > >> You need to get message.el (or all of Gnus) from CVS, or wait for the >> next release. It's a new feature so I don't think it should go into >> the maintenance trunk, where only bug fixes are supposed to go. >> >> Do you need help with that? > > I'd probably need quite a bit of help. I might try for just the > message.el bit, just to give me the idea. I've never used CVS in > anger! > > If it's not too much trouble, perhaps you could give me a brief > step-by-step guide. I'd be very grateful, but don't worry if you > don't think it's practical. As Reiner pointed out, message.el by itself may be trouble. I would get Gnus from CVS - it works great, and there have been no major changes since the release you are using. You can get the CVS Gnus instructions here: http://gnus.org/distribution.html Ted == Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News== http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups = East and West-Coast Server Farms - Total Privacy via Encryption = ___ Info-gnus-english mailing list Info-gnus-english@gnu.org http://lists.gnu.org/mailman/listinfo/info-gnus-english
Re: Killing unwanted post
On Thu, Apr 14 2005, Ted Zlatanov wrote: > On Thu, 14 Apr 2005, [EMAIL PROTECTED] wrote: >> On Thu, Apr 14 2005, Ted Zlatanov wrote: >>> I just added the message-kill-buffer-query-if-modified variable to >>> message.el in CVS. [...] >> How about renaming it to `message-kill-buffer-query'? > > I think the -if-modified is important, don't you? I think it is sufficient to have it in the doc string. I don't see any benefit in putting everything in the name. (You ain't gonna win the International Longest Variable Name Competition with it anyhow because of `spam.el'. ;-)) > If you feel it's a much better name, feel free to make the change :) > I am not strongly attached to it. I've changed it and added :version. Bye, Reiner. -- ,,, (o o) ---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/ ___ Info-gnus-english mailing list Info-gnus-english@gnu.org http://lists.gnu.org/mailman/listinfo/info-gnus-english
Re: Killing unwanted post
On Thu, 21 Apr 2005, [EMAIL PROTECTED] wrote: > I think it is sufficient to have it in the doc string. I don't see > any benefit in putting everything in the name. (You ain't gonna win > the International Longest Variable Name Competition with it anyhow > because of `spam.el'. ;-)) It's fine with me, thanks for handling it. I'm just looking for opportunities to win the ILVNC, just biding my time... This is the real reason why I work in Emacs Lisp, all variable names are global so you get to make them as long as you want :) Ted ___ Info-gnus-english mailing list Info-gnus-english@gnu.org http://lists.gnu.org/mailman/listinfo/info-gnus-english