Gnus development mailing list
 help / color / mirror / Atom feed
* MIME button mystery
@ 2011-08-19  6:35 Katsumi Yamaoka
  2011-08-19  8:52 ` Katsumi Yamaoka
  0 siblings, 1 reply; 2+ messages in thread
From: Katsumi Yamaoka @ 2011-08-19  6:35 UTC (permalink / raw)
  To: ding

[-- Attachment #1: Type: text/plain, Size: 245 bytes --]

If you use Gnus to read this article, please try:

Type `M-t' in the summary buffer to make MIME buttons visible.
In the article buffer, put the cursor under a MIME button.
Type the `E' key.

And you will get: Wrong type argument; stringp, nil


[-- Attachment #2: Type: text/plain, Size: 481 bytes --]

Why this happens is that the keymap there is the one for the MIME
buttons, not the article commands, in spite of outside the button
(`C-h c E' there tells that the `E' key is bound to the command
`gnus-mime-view-part-internally'), but there is no handle data
associated with the button above.

What provides the MIME buttons keymap there?  There is neither a
text property nor an overlay that provides a local map, so the
keymap used there should be that for the article commands.

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

* Re: MIME button mystery
  2011-08-19  6:35 MIME button mystery Katsumi Yamaoka
@ 2011-08-19  8:52 ` Katsumi Yamaoka
  0 siblings, 0 replies; 2+ messages in thread
From: Katsumi Yamaoka @ 2011-08-19  8:52 UTC (permalink / raw)
  To: ding

[-- Attachment #1: Type: text/plain, Size: 278 bytes --]

Katsumi Yamaoka wrote:
> If you use Gnus to read this article, please try:

> Type `M-t' in the summary buffer to make MIME buttons visible.
> In the article buffer, put the cursor under a MIME button.
> Type the `E' key.

> And you will get: Wrong type argument; stringp, nil


[-- Attachment #2: Type: text/plain, Size: 498 bytes --]

> Why this happens is that the keymap there is the one for the MIME
> buttons, not the article commands, in spite of outside the button
> (`C-h c E' there tells that the `E' key is bound to the command
> `gnus-mime-view-part-internally'), but there is no handle data
> associated with the button above.

> What provides the MIME buttons keymap there?  There is neither a
> text property nor an overlay that provides a local map, so the
> keymap used there should be that for the article commands.


[-- Attachment #3: Type: text/plain, Size: 394 bytes --]

I found the cause of this behavior in the `keymap' section of
(info "(Elisp)Special Properties"):
     The property's value for the character before point applies if it
     is non-`nil' and rear-sticky, and the property's value for the
     character after point applies if it is non-`nil' and front-sticky.

So, I've made changes so as to add the (rear-nonsticky t) property
to MIME buttons.

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

end of thread, other threads:[~2011-08-19  8:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-19  6:35 MIME button mystery Katsumi Yamaoka
2011-08-19  8:52 ` 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).