help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Emacs/w3m textarea editing in same window


From: Niels Giesen
Subject: Re: Emacs/w3m textarea editing in same window
Date: Mon, 17 Nov 2008 21:08:36 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

Nicolas Neuss <lastname@math.uni-karlsruhe.de> writes:

> Hello,
>
> when editing textareas in Emacs/w3m I end up editing in a separate (and
> smaller) window.  Since my blocks of text are rather large, I would prefer
> very much if the current window would be used for editing (and restored
> afterwards).  I tried to get this behaviour by using
>
> (pushnew "*w3m form textarea*" same-window-buffer-names)
>
> Unfortunately, this did not help.  Does anyone here know a solution?

This is because `w3m-form-input-textarea' does not call one of
`display-buffer' and `pop-to-buffer', but rather `switch-to-buffer', and
handles window creation and ~ switching itself.

I see no way short of either commenting out 

(condition-case nil
  (split-window cur-win (if (> size 0) size window-min-height))
(error
 (delete-other-windows)
 (split-window cur-win (- (window-height cur-win)
                          w3m-form-input-textarea-buffer-lines))))
(select-window (next-window))

at the end of the definition of w3m-form-input-textarea, or filing a
feature request (preferably with a patch) to the devs of emacs-w3m that
would achieve what you want.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]