Gnus development mailing list
 help / color / mirror / Atom feed
* F command in article activates region in message
@ 2004-03-26 11:30 Katsumi Yamaoka
  2004-03-27  0:40 ` Jesper Harder
  0 siblings, 1 reply; 3+ messages in thread
From: Katsumi Yamaoka @ 2004-03-26 11:30 UTC (permalink / raw)


Hi,

I've modified the message-exchange-point-and-mark function (for
Emacs) so that it doesn't activate region if it was inactive.
The message-xmas-exchange-point-and-mark function works
similarly by default, which has been made by SL Baur as follows:

Fri Jun 14 04:30:30 1996  Steven L. Baur  <steve@miranova.com>

	* messagexmas.el (message-xmas-exchange-point-and-mark): New
	function.
	(message-xmas-dont-activate-region): New variable.

I got a report from Hiroshi Fujishima.  When transient-mark-mode
is t and the `F' command is performed in the article buffer,
region is activated in the message buffer.  It is useless, but
natural because the exchange-point-and-mark function reactivates
the mark (see the docstring).  However, I have a doubt that
region isn't activated when the same command is performed in the
summary buffer.  Does anyone know what is the difference between
gnus-article-followup-with-original and
gnus-summary-followup-with-original?  Even if you've updated Gnus,
you can reproduce it with the following:

(defalias 'message-exchange-point-and-mark 'exchange-point-and-mark)

Regards,
-- 
Katsumi Yamaoka <yamaoka@jpl.org>



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: F command in article activates region in message
  2004-03-26 11:30 F command in article activates region in message Katsumi Yamaoka
@ 2004-03-27  0:40 ` Jesper Harder
  2004-03-27 14:42   ` Katsumi Yamaoka
  0 siblings, 1 reply; 3+ messages in thread
From: Jesper Harder @ 2004-03-27  0:40 UTC (permalink / raw)


Katsumi Yamaoka <yamaoka@jpl.org> writes:

> I got a report from Hiroshi Fujishima.  When transient-mark-mode
> is t and the `F' command is performed in the article buffer,
> region is activated in the message buffer.

Yeah, that has annoyed me a few times as well.  Thanks for fixing it.

BTW, perhaps 

 (message-mark-active-p) 

is slightly nicer than

 (symbol-value 'mark-active)

> However, I have a doubt that region isn't activated when the same
> command is performed in the summary buffer.  Does anyone know what
> is the difference between gnus-article-followup-with-original and
> gnus-summary-followup-with-original?

I'm not quite sure if this is what you're asking about, but the main
difference is that g-article-f-w-o yanks the region (if it's active)
to the reply, which is very cool.

g-summary-f-w-o yanks the entire message.



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: F command in article activates region in message
  2004-03-27  0:40 ` Jesper Harder
@ 2004-03-27 14:42   ` Katsumi Yamaoka
  0 siblings, 0 replies; 3+ messages in thread
From: Katsumi Yamaoka @ 2004-03-27 14:42 UTC (permalink / raw)


>>>>> In <m3isgrqg0a.fsf@defun.localdomain>
>>>>>	Jesper Harder <harder@ifa.au.dk> wrote:

> Katsumi Yamaoka <yamaoka@jpl.org> writes:

>> I got a report from Hiroshi Fujishima.  When transient-mark-mode
>> is t and the `F' command is performed in the article buffer,
>> region is activated in the message buffer.

> Yeah, that has annoyed me a few times as well.  Thanks for fixing it.

> BTW, perhaps

>  (message-mark-active-p)

> is slightly nicer than

>  (symbol-value 'mark-active)

Thanks.  I've fixed it.

>> However, I have a doubt that region isn't activated when the same
>> command is performed in the summary buffer.  Does anyone know what
>> is the difference between gnus-article-followup-with-original and
>> gnus-summary-followup-with-original?

> I'm not quite sure if this is what you're asking about,

Please don't mind.  It is good that g-summary-f-w-o doesn't
activate region in the message buffer.  I was not simply able to
find out what deactivates the region after exchange-point-and-mark
activates it.

> but the main difference is that g-article-f-w-o yanks the region
> (if it's active) to the reply, which is very cool.

Yes, indeed.

> g-summary-f-w-o yanks the entire message.
-- 
Katsumi Yamaoka <yamaoka@jpl.org>



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-03-27 14:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-03-26 11:30 F command in article activates region in message Katsumi Yamaoka
2004-03-27  0:40 ` Jesper Harder
2004-03-27 14:42   ` Katsumi Yamaoka

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).