[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- From: Katsumi Yamaoka <yamaoka@xxxxxxx>
- Date: Fri, 25 Apr 2003 10:47:00 +0900
- X-ml-name: emacs-w3m
- X-mail-count: 04810
- References: <1051206130.8708.5.camel@slider>
>>>>> In [emacs-w3m : No.04809]
>>>>> JD Smith <email@example.com> wrote:
> I'm attempting to customize emacs-w3m (1.3.3) to display named
> anchors near the top of the window, instead of in the middle when
> they are linked. Here's what I've used:
> (add-hook 'w3m-display-hook
> (lambda (url)
> (if (not (bobp)) (recenter 1))) 'append)
The reason why your hook doesn't work is the `w3m-goto-url'
function is enclosed with `save-window-excursion' in the
`w3m-view-this-url-1' function. Since using `s-w-e' is for
keeping windows arangement, not for keeping point or mark,
there should be a solution. Does anyone have any idea?
You developers can reproduce that behavior as follows:
1. Eval JD's add-hook form.
2. Visit the url http://www.xemacs.org/Lists/index.html.
3. Type RET on the ``xemacs-beta-ja'' button.
Then you may not see the entry to the xemacs-beta-ja list.
w3m-view-this-url-1 $B$G(B w3m-goto-url $B$r8F$V$H$-$K(B
save-window-excursion $B$,Ho$C$F$$$k$N$G!"(Bw3m-display-hook $B$K(B
(recenter 1) $B$r$7$+$1$F$b8z$+$J$$$H$$$&OC$7$G$9(B ($B$h$M(B?)$B!#(B