all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Emacs/w3m textarea editing in same window
@ 2008-11-17 12:37 Nicolas Neuss
  2008-11-17 20:08 ` Niels Giesen
  0 siblings, 1 reply; 2+ messages in thread
From: Nicolas Neuss @ 2008-11-17 12:37 UTC (permalink / raw
  To: help-gnu-emacs

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?

Thank you,
Nicolas 


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

* Re: Emacs/w3m textarea editing in same window
  2008-11-17 12:37 Emacs/w3m textarea editing in same window Nicolas Neuss
@ 2008-11-17 20:08 ` Niels Giesen
  0 siblings, 0 replies; 2+ messages in thread
From: Niels Giesen @ 2008-11-17 20:08 UTC (permalink / raw
  To: help-gnu-emacs

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.



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

end of thread, other threads:[~2008-11-17 20:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-17 12:37 Emacs/w3m textarea editing in same window Nicolas Neuss
2008-11-17 20:08 ` Niels Giesen

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.