Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
* Moving the cursor down the lines of an HTML-email
@ 2012-08-07 15:59 Adam Sjøgren
  2012-08-07 17:06 ` Charles Philip Chan
  0 siblings, 1 reply; 14+ messages in thread
From: Adam Sjøgren @ 2012-08-07 15:59 UTC (permalink / raw)
  To: info-gnus-english

Once in a while I receive an HTML-email - usually at work. They usually
display nicely, so I don't really notice.

Except when I want to copy a bit of it. I go h to jump from the summary
to the *Article* buffer, and then I press arrow down to move the cursor
down to the lines I want to copy.

Only when the cursor reaches the first line in the body of the email it
- frustratingly I might add - wraps around and jumps up the the top of
the headers!

I _think_ this is because it tries to jump from link to link in the
HTML, and the email contains no links.

The effect is that I yell unintelligble cursewords and my coworkers
become very silent.

I have mm-text-html-renderer set to 'w3m. (I think because some cron
emails with tables in them look better with w3m than with shr.)

So, are there any w3m wizards that know how to turn this off, so I can
freely use the arrow keys to move the cursor anywhere I want, just as
with non-HTML email, or shr?


  Best regards,

    Adam


P.S. sorry about the level of rantiness.

-- 
 "You know, if the sun was an oboe, what would you do?"       Adam Sjøgren
                                                         asjo@koldfront.dk

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

* Re: Moving the cursor down the lines of an HTML-email
  2012-08-07 15:59 Moving the cursor down the lines of an HTML-email Adam Sjøgren
@ 2012-08-07 17:06 ` Charles Philip Chan
  2012-08-07 17:57   ` Adam Sjøgren
  0 siblings, 1 reply; 14+ messages in thread
From: Charles Philip Chan @ 2012-08-07 17:06 UTC (permalink / raw)
  To: info-gnus-english


[-- Attachment #1.1: Type: text/plain, Size: 680 bytes --]

asjo@koldfront.dk (Adam Sjøgren) writes:

> I have mm-text-html-renderer set to 'w3m. (I think because some cron
> emails with tables in them look better with w3m than with shr.)
>
> So, are there any w3m wizards that know how to turn this off, so I can
> freely use the arrow keys to move the cursor anywhere I want, just as
> with non-HTML email, or shr?

It must be something in your setup. My html renderer is set to w3m and I
have no problems using the arrow keys in the article buffer for html
mails.

Charles

-- 
"Computers may be stupid, but they're always obedient. Well, almost always."

  -- Larry Wall (Open Sources, 1999 O'Reilly and Associates)

[-- Attachment #1.2: Type: application/pgp-signature, Size: 197 bytes --]

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

_______________________________________________
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english

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

* Re: Moving the cursor down the lines of an HTML-email
  2012-08-07 17:06 ` Charles Philip Chan
@ 2012-08-07 17:57   ` Adam Sjøgren
  2012-08-07 18:46     ` Charles Philip Chan
  0 siblings, 1 reply; 14+ messages in thread
From: Adam Sjøgren @ 2012-08-07 17:57 UTC (permalink / raw)
  To: info-gnus-english

On Tue, 07 Aug 2012 13:06:43 -0400, Charles wrote:

> asjo@koldfront.dk (Adam Sjøgren) writes:

>> So, are there any w3m wizards that know how to turn this off, so I can
>> freely use the arrow keys to move the cursor anywhere I want, just as
>> with non-HTML email, or shr?

> It must be something in your setup.

Quite possibly. The question is what... The only thing I have related to
w3m is:

  (setq mm-text-html-renderer 'w3m)

looking through ~/.gnus and ~/.emacs.d/*

> My html renderer is set to w3m and I have no problems using the arrow
> keys in the article buffer for html mails.

What version of w3m do you use? Do you have any setup related to
w3m/html?

My versions:

    GNU Emacs 24.1.50.1 (x86_64-pc-linux-gnu, GTK+ Version 2.20.1) of 2012-05-29
    Ma Gnus v0.6 (1bd6e87f)
    emacs-w3m-version 1.4.364


  Best regards,

     Adam

-- 
 "You know, if the sun was an oboe, what would you do?"       Adam Sjøgren
                                                         asjo@koldfront.dk

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

* Re: Moving the cursor down the lines of an HTML-email
  2012-08-07 17:57   ` Adam Sjøgren
@ 2012-08-07 18:46     ` Charles Philip Chan
  2012-08-07 18:49       ` Adam Sjøgren
  0 siblings, 1 reply; 14+ messages in thread
From: Charles Philip Chan @ 2012-08-07 18:46 UTC (permalink / raw)
  To: info-gnus-english


[-- Attachment #1.1: Type: text/plain, Size: 1415 bytes --]

asjo@koldfront.dk (Adam Sjøgren) writes:

Hello Adam:

> What version of w3m do you use? Do you have any setup related to
> w3m/html?

Emacs version: 24.1.50.1 (x86_64-suse-linux-gnu, GTK+ Version 2.22.1) of
2012-06-13

W3M version: w3m/0.5.2, options lang=en,m17n,image,color,ansi-color,mouse,menu,cookie,ssl,ssl-verify,external-uri-loader,nntp,gopher,ipv6,alarm,mark

Gnus version: Ma Gnus v06

Here is my W3M setup for Gnus:

,----
| (setq
|  mm-inline-text-html-renderer 'mm-inline-text-html-render-with-w3m
|  w3m-display-inline-image t
|  gnus-article-wash-function 'gnus-article-wash-html-with-w3m)
| 
| (setq mm-text-html-renderer 'w3m)
| (setq mm-inline-text-html-with-images t)
| 
| (defun gnus-summary-w3m-safe-toggle-inline-images (&optional arg)
|   "Toggle displaying of all images in the article buffer.
|   If the prefix arg is given, all images are considered to be safe."
|     (interactive "P")
|       (save-excursion
|           (set-buffer gnus-article-buffer)
|               (w3m-safe-toggle-inline-images arg)))
|               
|               (eval-after-load "gnus-sum"
|                 '(define-key gnus-summary-mode-map
|                      "\C-i" 'gnus-summary-w3m-safe-toggle-inline-images))
`----

I also have Emacs-w3m installed and configured.

Regards,
Charles

-- 
Dijkstra probably hates me
(Linus Torvalds, in kernel/sched.c)

[-- Attachment #1.2: Type: application/pgp-signature, Size: 197 bytes --]

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

_______________________________________________
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english

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

* Re: Moving the cursor down the lines of an HTML-email
  2012-08-07 18:46     ` Charles Philip Chan
@ 2012-08-07 18:49       ` Adam Sjøgren
  2012-08-07 20:39         ` Charles Philip Chan
  0 siblings, 1 reply; 14+ messages in thread
From: Adam Sjøgren @ 2012-08-07 18:49 UTC (permalink / raw)
  To: info-gnus-english

On Tue, 07 Aug 2012 14:46:34 -0400, Charles wrote:

> W3M version: w3m/0.5.2, options

The difference between that version number and the one I found (in
emacs-w3m-version) is quite big. How did you find your number?

Thanks for the dump of your setup - I tried eval'ing it, but the
behaviour was the same, so it seems like something else in my setup is
awry. Hm.

> I also have Emacs-w3m installed and configured.

What is that?


  Best regards,

    Adam

-- 
 "You know, if the sun was an oboe, what would you do?"       Adam Sjøgren
                                                         asjo@koldfront.dk

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

* Re: Moving the cursor down the lines of an HTML-email
  2012-08-07 18:49       ` Adam Sjøgren
@ 2012-08-07 20:39         ` Charles Philip Chan
  2012-08-08  8:45           ` Adam Sjøgren
  0 siblings, 1 reply; 14+ messages in thread
From: Charles Philip Chan @ 2012-08-07 20:39 UTC (permalink / raw)
  To: info-gnus-english


[-- Attachment #1.1: Type: text/plain, Size: 560 bytes --]

asjo@koldfront.dk (Adam Sjøgren) writes:

Hello Adam:

> The difference between that version number and the one I found (in
> emacs-w3m-version) is quite big. How did you find your number?

From the commandline:

,----
| w3m --version
`----

>> I also have Emacs-w3m installed and configured.
>
> What is that?

The Emacs frontend to w3m. My version is 1.1589 from cvs.

Regards,
Charles

-- 
"Calling EMACS an editor is like calling the Earth a hunk of dirt."

  -- Chris DiBona on Dirt (Open Sources, 1999 O'Reilly and Associates)

[-- Attachment #1.2: Type: application/pgp-signature, Size: 197 bytes --]

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

_______________________________________________
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english

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

* Re: Moving the cursor down the lines of an HTML-email
  2012-08-07 20:39         ` Charles Philip Chan
@ 2012-08-08  8:45           ` Adam Sjøgren
  2012-08-08  9:12             ` Charles Philip Chan
  0 siblings, 1 reply; 14+ messages in thread
From: Adam Sjøgren @ 2012-08-08  8:45 UTC (permalink / raw)
  To: info-gnus-english

On Tue, 07 Aug 2012 16:39:11 -0400, Charles wrote:

> From the commandline:

> ,----
> | w3m --version
> `----

Ah, okay, I was so focused on Emacs I didn't even think about the
version of w3m, the executable. I have 0.5.2 installed.

>>> I also have Emacs-w3m installed and configured.

>> What is that?

> The Emacs frontend to w3m. My version is 1.1589 from cvs.

Ah, ok, sorry, that was what I meant when I wrote "w3m".

What does the variable emacs-w3m-version contain in your Emacs? (Mine
says 1.4.364, which sounds a lot newer than 1.1589 - but also the
format is different...)


  Thanks!

    Adam

-- 
 "You know, if the sun was an oboe, what would you do?"       Adam Sjøgren
                                                         asjo@koldfront.dk

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

* Re: Moving the cursor down the lines of an HTML-email
  2012-08-08  8:45           ` Adam Sjøgren
@ 2012-08-08  9:12             ` Charles Philip Chan
  2012-08-08 12:22               ` Adam Sjøgren
  0 siblings, 1 reply; 14+ messages in thread
From: Charles Philip Chan @ 2012-08-08  9:12 UTC (permalink / raw)
  To: info-gnus-english


[-- Attachment #1.1: Type: text/plain, Size: 523 bytes --]

asjo@koldfront.dk (Adam Sjøgren) writes:

Hello Adam:

> What does the variable emacs-w3m-version contain in your Emacs? (Mine
> says 1.4.364, which sounds a lot newer than 1.1589 - but also the
> format is different...)

Oops, I gave you the wrong Emacs-w3m version number. Mine is actually
1.4.503 which is the latest cvs version.

Regards,
Charles

-- 
"We all know Linux is great...it does infinite loops in 5 seconds."
(Linus Torvalds about the superiority of Linux on the Amterdam
Linux Symposium)

[-- Attachment #1.2: Type: application/pgp-signature, Size: 197 bytes --]

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

_______________________________________________
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english

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

* Re: Moving the cursor down the lines of an HTML-email
  2012-08-08  9:12             ` Charles Philip Chan
@ 2012-08-08 12:22               ` Adam Sjøgren
  2012-08-08 12:30                 ` Adam Sjøgren
  0 siblings, 1 reply; 14+ messages in thread
From: Adam Sjøgren @ 2012-08-08 12:22 UTC (permalink / raw)
  To: info-gnus-english

On Wed, 08 Aug 2012 05:12:58 -0400, Charles wrote:

> Oops, I gave you the wrong Emacs-w3m version number. Mine is actually
> 1.4.503 which is the latest cvs version.

Ah, ok. Maybe I should try that version.

Ok, just did - the cursor still jumps between links and skips all non
links.

Argh. It must be something really simple...

I grep'ed a little deeper. If a remove the binding of [left], [right],
[up] and [down] (to w3m-{view-previous-page,view-this-url,
previous-anchor,next-anchor}) from keymap in the variable
w3m-lynx-like-map in w3m.el, I can move the cursor around freely.

Why you don't have this problem puzzles me - but thanks for the
feedback, at least I now can comment my way out of the problem :-)


  Best regards,

    Adam

-- 
 "You know, if the sun was an oboe, what would you do?"       Adam Sjøgren
                                                         asjo@koldfront.dk

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

* Re: Moving the cursor down the lines of an HTML-email
  2012-08-08 12:22               ` Adam Sjøgren
@ 2012-08-08 12:30                 ` Adam Sjøgren
  2012-08-08 13:29                   ` Charles Philip Chan
  0 siblings, 1 reply; 14+ messages in thread
From: Adam Sjøgren @ 2012-08-08 12:30 UTC (permalink / raw)
  To: info-gnus-english

On Wed, 08 Aug 2012 14:22:40 +0200, Adam wrote:

> Argh. It must be something really simple...

Just for completeness, this is what I did to make w3m stop "stealing" my
arrow keys:

    (setq w3m-minor-mode-map nil)


  Best regards,

    Adam

-- 
 "You know, if the sun was an oboe, what would you do?"       Adam Sjøgren
                                                         asjo@koldfront.dk

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

* Re: Moving the cursor down the lines of an HTML-email
  2012-08-08 12:30                 ` Adam Sjøgren
@ 2012-08-08 13:29                   ` Charles Philip Chan
  2012-08-08 13:31                     ` Adam Sjøgren
  0 siblings, 1 reply; 14+ messages in thread
From: Charles Philip Chan @ 2012-08-08 13:29 UTC (permalink / raw)
  To: info-gnus-english


[-- Attachment #1.1: Type: text/plain, Size: 388 bytes --]

asjo@koldfront.dk (Adam Sjøgren) writes:

Hello Adam:

> Just for completeness, this is what I did to make w3m stop "stealing"
> my arrow keys:

This is why it works for me. The value for "w3m-minor-mode-map" is "nil"
here.

Regards,
Charles

-- 
"Even more amazing was the realization that God has Internet access.  I
wonder if He has a full newsfeed?"
(By Matt Welsh)

[-- Attachment #1.2: Type: application/pgp-signature, Size: 197 bytes --]

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

_______________________________________________
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english

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

* Re: Moving the cursor down the lines of an HTML-email
  2012-08-08 13:29                   ` Charles Philip Chan
@ 2012-08-08 13:31                     ` Adam Sjøgren
  2012-08-08 13:53                       ` Charles Philip Chan
  0 siblings, 1 reply; 14+ messages in thread
From: Adam Sjøgren @ 2012-08-08 13:31 UTC (permalink / raw)
  To: info-gnus-english

On Wed, 08 Aug 2012 09:29:03 -0400, Charles wrote:

> This is why it works for me. The value for "w3m-minor-mode-map" is "nil"
> here.

Are you setting it somewhere, or did it get that value spontaneously?


  Best regards,

    Adam

-- 
 "You know, if the sun was an oboe, what would you do?"       Adam Sjøgren
                                                         asjo@koldfront.dk

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

* Re: Moving the cursor down the lines of an HTML-email
  2012-08-08 13:31                     ` Adam Sjøgren
@ 2012-08-08 13:53                       ` Charles Philip Chan
  2012-08-08 14:17                         ` Adam Sjøgren
  0 siblings, 1 reply; 14+ messages in thread
From: Charles Philip Chan @ 2012-08-08 13:53 UTC (permalink / raw)
  To: info-gnus-english


[-- Attachment #1.1: Type: text/plain, Size: 510 bytes --]

asjo@koldfront.dk (Adam Sjøgren) writes:

Hi Adam:

> Are you setting it somewhere, or did it get that value spontaneously?

I looked through my config files and I can't find where I set it. I
think it is nil by default:

,----[ From w3m.el ]
| (defvar w3m-minor-mode nil "Non-nil if w3m minor mode is enabled.")
`----

Regards,
Charles

-- 
"A word to the wise: a credentials dicksize war is usually a bad idea on the
net."
(David Parsons in c.o.l.development.system, about coding in C.)

[-- Attachment #1.2: Type: application/pgp-signature, Size: 197 bytes --]

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

_______________________________________________
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english

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

* Re: Moving the cursor down the lines of an HTML-email
  2012-08-08 13:53                       ` Charles Philip Chan
@ 2012-08-08 14:17                         ` Adam Sjøgren
  0 siblings, 0 replies; 14+ messages in thread
From: Adam Sjøgren @ 2012-08-08 14:17 UTC (permalink / raw)
  To: info-gnus-english

On Wed, 08 Aug 2012 09:53:34 -0400, Charles wrote:

>> Are you setting it somewhere, or did it get that value spontaneously?

> I looked through my config files and I can't find where I set it. I
> think it is nil by default:

> ,----[ From w3m.el ]
> | (defvar w3m-minor-mode nil "Non-nil if w3m minor mode is enabled.")
> `----

Well, I sure didn't set it in my setup (as I showed earlier), so...
we're beyond my elisp guessing skills.

Anyway, problem solved.


  Best regards,

    Adam

-- 
 "You know, if the sun was an oboe, what would you do?"       Adam Sjøgren
                                                         asjo@koldfront.dk

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

end of thread, other threads:[~2012-08-08 14:17 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-07 15:59 Moving the cursor down the lines of an HTML-email Adam Sjøgren
2012-08-07 17:06 ` Charles Philip Chan
2012-08-07 17:57   ` Adam Sjøgren
2012-08-07 18:46     ` Charles Philip Chan
2012-08-07 18:49       ` Adam Sjøgren
2012-08-07 20:39         ` Charles Philip Chan
2012-08-08  8:45           ` Adam Sjøgren
2012-08-08  9:12             ` Charles Philip Chan
2012-08-08 12:22               ` Adam Sjøgren
2012-08-08 12:30                 ` Adam Sjøgren
2012-08-08 13:29                   ` Charles Philip Chan
2012-08-08 13:31                     ` Adam Sjøgren
2012-08-08 13:53                       ` Charles Philip Chan
2012-08-08 14:17                         ` Adam Sjøgren

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