From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Niels Giesen Newsgroups: gmane.emacs.help Subject: Re: Emacs/w3m textarea editing in same window Date: Mon, 17 Nov 2008 21:08:36 +0100 Organization: A noiseless patient Spider Message-ID: <87r65aw1x7.fsf@gmail.com> References: <87myfyedew.fsf@ma-patru.mathematik.uni-karlsruhe.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1226954489 29669 80.91.229.12 (17 Nov 2008 20:41:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 17 Nov 2008 20:41:29 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Nov 17 21:42:31 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1L2AvR-00084V-GB for geh-help-gnu-emacs@m.gmane.org; Mon, 17 Nov 2008 21:42:25 +0100 Original-Received: from localhost ([127.0.0.1]:45096 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L2AuI-0003lu-Qk for geh-help-gnu-emacs@m.gmane.org; Mon, 17 Nov 2008 15:41:14 -0500 Original-Path: news.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!news-2.dfn.de!news.uni-stuttgart.de!news.k-dsl.de!news.eternal-september.org!news.motzarella.org!motzarella.org!news.motzarella.org!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 31 Original-X-Trace: news.motzarella.org U2FsdGVkX19Eu/llEIbmDCbCR73sFHxQMqis/6tNX4u9vtEeiY4SrdlxHOx/C2NZbstXpWNkgQVU4cN2mttDD86H7QS94REaiU9PJYhfK1AMP8z9pL/QSzkeyWGkNJ/hITOWG3LY5Bk= Original-X-Complaints-To: Please send complaints to abuse@motzarella.org with full headers Original-NNTP-Posting-Date: Mon, 17 Nov 2008 20:08:38 +0000 (UTC) X-Auth-Sender: U2FsdGVkX19mK8cVvjYkQupKQ4Y2MIxU Cancel-Lock: sha1:6n4hVCMfO8nYpEBQv7GxPF2eZCw= sha1:ie+xiM3nRJfcqCZyU9C4ecP/JNk= User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) Original-Xref: news.stanford.edu gnu.emacs.help:164541 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:59875 Archived-At: Nicolas Neuss 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.