* Killing unwanted post
@ 2005-04-14 10:51 David Sumbler
2005-04-14 15:28 ` Ted Zlatanov
0 siblings, 1 reply; 11+ messages in thread
From: David Sumbler @ 2005-04-14 10:51 UTC (permalink / raw)
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".
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Killing unwanted post
2005-04-14 10:51 Killing unwanted post David Sumbler
@ 2005-04-14 15:28 ` Ted Zlatanov
2005-04-14 16:29 ` Reiner Steib
2005-04-14 17:29 ` David Sumbler
0 siblings, 2 replies; 11+ messages in thread
From: Ted Zlatanov @ 2005-04-14 15:28 UTC (permalink / raw)
On Thu, 14 Apr 2005, david@nospam.co.uk 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
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Killing unwanted post
2005-04-14 15:28 ` Ted Zlatanov
@ 2005-04-14 16:29 ` Reiner Steib
2005-04-14 17:22 ` Ted Zlatanov
2005-04-14 17:29 ` David Sumbler
1 sibling, 1 reply; 11+ messages in thread
From: Reiner Steib @ 2005-04-14 16:29 UTC (permalink / raw)
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/
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Killing unwanted post
2005-04-14 16:29 ` Reiner Steib
@ 2005-04-14 17:22 ` Ted Zlatanov
2005-04-21 18:22 ` Reiner Steib
0 siblings, 1 reply; 11+ messages in thread
From: Ted Zlatanov @ 2005-04-14 17:22 UTC (permalink / raw)
On Thu, 14 Apr 2005, reinersteib+from-uce@imap.cc 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 =----
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Killing unwanted post
2005-04-14 15:28 ` Ted Zlatanov
2005-04-14 16:29 ` Reiner Steib
@ 2005-04-14 17:29 ` David Sumbler
2005-04-15 20:28 ` Ted Zlatanov
1 sibling, 1 reply; 11+ messages in thread
From: David Sumbler @ 2005-04-14 17:29 UTC (permalink / raw)
Ted Zlatanov <tzz@lifelogs.com> writes:
> On Thu, 14 Apr 2005, david@nospam.co.uk 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".
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Killing unwanted post
2005-04-14 17:29 ` David Sumbler
@ 2005-04-15 20:28 ` Ted Zlatanov
2005-04-15 21:16 ` David Sumbler
2005-04-16 13:20 ` Reiner Steib
0 siblings, 2 replies; 11+ messages in thread
From: Ted Zlatanov @ 2005-04-15 20:28 UTC (permalink / raw)
On Thu, 14 Apr 2005, david@nospam.co.uk 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 =----
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Killing unwanted post
2005-04-15 20:28 ` Ted Zlatanov
@ 2005-04-15 21:16 ` David Sumbler
2005-04-19 18:20 ` Ted Zlatanov
2005-04-16 13:20 ` Reiner Steib
1 sibling, 1 reply; 11+ messages in thread
From: David Sumbler @ 2005-04-15 21:16 UTC (permalink / raw)
Ted Zlatanov <tzz@lifelogs.com> writes:
> On Thu, 14 Apr 2005, david@nospam.co.uk 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".
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Killing unwanted post
2005-04-15 20:28 ` Ted Zlatanov
2005-04-15 21:16 ` David Sumbler
@ 2005-04-16 13:20 ` Reiner Steib
1 sibling, 0 replies; 11+ messages in thread
From: Reiner Steib @ 2005-04-16 13:20 UTC (permalink / raw)
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/
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Killing unwanted post
2005-04-15 21:16 ` David Sumbler
@ 2005-04-19 18:20 ` Ted Zlatanov
0 siblings, 0 replies; 11+ messages in thread
From: Ted Zlatanov @ 2005-04-19 18:20 UTC (permalink / raw)
On Fri, 15 Apr 2005, david@nospam.co.uk wrote:
> Ted Zlatanov <tzz@lifelogs.com> 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 =----
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Killing unwanted post
2005-04-14 17:22 ` Ted Zlatanov
@ 2005-04-21 18:22 ` Reiner Steib
2005-04-22 15:05 ` Ted Zlatanov
0 siblings, 1 reply; 11+ messages in thread
From: Reiner Steib @ 2005-04-21 18:22 UTC (permalink / raw)
On Thu, Apr 14 2005, Ted Zlatanov wrote:
> On Thu, 14 Apr 2005, reinersteib+from-uce@imap.cc 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/
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Killing unwanted post
2005-04-21 18:22 ` Reiner Steib
@ 2005-04-22 15:05 ` Ted Zlatanov
0 siblings, 0 replies; 11+ messages in thread
From: Ted Zlatanov @ 2005-04-22 15:05 UTC (permalink / raw)
On Thu, 21 Apr 2005, reinersteib+from-uce@imap.cc 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
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2005-04-22 15:05 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-04-14 10:51 Killing unwanted post David Sumbler
2005-04-14 15:28 ` Ted Zlatanov
2005-04-14 16:29 ` Reiner Steib
2005-04-14 17:22 ` Ted Zlatanov
2005-04-21 18:22 ` Reiner Steib
2005-04-22 15:05 ` Ted Zlatanov
2005-04-14 17:29 ` David Sumbler
2005-04-15 20:28 ` Ted Zlatanov
2005-04-15 21:16 ` David Sumbler
2005-04-19 18:20 ` Ted Zlatanov
2005-04-16 13:20 ` Reiner Steib
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).