From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#12708: 24.1; M-x display-time-world "q" close window Date: Sat, 27 Oct 2012 14:45:18 +0300 Organization: JURTA Message-ID: <87y5is2k78.fsf@mail.jurta.org> References: <87txtmkziu.fsf@blah.blah> <50863A2C.1010008@gmx.at> <87objs9uvn.fsf@mail.jurta.org> <508BBFD6.7080300@gmx.at> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1351339912 10012 80.91.229.3 (27 Oct 2012 12:11:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 27 Oct 2012 12:11:52 +0000 (UTC) Cc: 12708@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Oct 27 14:12:01 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TS5FA-0005Yo-Ex for geb-bug-gnu-emacs@m.gmane.org; Sat, 27 Oct 2012 14:12:00 +0200 Original-Received: from localhost ([::1]:51875 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TS5F2-0000R3-Fs for geb-bug-gnu-emacs@m.gmane.org; Sat, 27 Oct 2012 08:11:52 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:57812) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TS5Ez-0000Ql-2l for bug-gnu-emacs@gnu.org; Sat, 27 Oct 2012 08:11:49 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TS5Ey-0003zi-6M for bug-gnu-emacs@gnu.org; Sat, 27 Oct 2012 08:11:49 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:53509) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TS5Ey-0003ze-2l for bug-gnu-emacs@gnu.org; Sat, 27 Oct 2012 08:11:48 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TS5H8-0003Jp-C9 for bug-gnu-emacs@gnu.org; Sat, 27 Oct 2012 08:14:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 27 Oct 2012 12:14:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12708 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 12708-submit@debbugs.gnu.org id=B12708.135134001312713 (code B ref 12708); Sat, 27 Oct 2012 12:14:02 +0000 Original-Received: (at 12708) by debbugs.gnu.org; 27 Oct 2012 12:13:33 +0000 Original-Received: from localhost ([127.0.0.1]:35527 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TS5Ge-0003J0-OO for submit@debbugs.gnu.org; Sat, 27 Oct 2012 08:13:32 -0400 Original-Received: from ps18281.dreamhost.com ([69.163.218.105]:33161 helo=ps18281.dreamhostps.com) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TS5Ga-0003Ir-RC for 12708@debbugs.gnu.org; Sat, 27 Oct 2012 08:13:30 -0400 Original-Received: from localhost (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id A6353451CD34; Sat, 27 Oct 2012 05:11:12 -0700 (PDT) In-Reply-To: <508BBFD6.7080300@gmx.at> (martin rudalics's message of "Sat, 27 Oct 2012 13:04:54 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (x86_64-pc-linux-gnu) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:66105 Archived-At: >> (defun occur-mode-goto-occurrence-kill-buffer () >> "Go to the occurrence the current line describes, and kill the Occur buffer." >> (interactive) >> (let ((buf (current-buffer)) >> (pos (occur-mode-find-occurrence))) >> (switch-to-buffer-other-window (marker-buffer pos)) >> (goto-char pos) >> (kill-buffer buf) >> (run-hooks 'occur-mode-find-occurrence-hook))) > > Why don't you quit the *Occur* buffer window first and do a simple > `pop-to-buffer' afterwards? I tried it to be closer to the workflow of `occur-mode-goto-occurrence-other-window'. But your recipe would work as well. > BTW, I find bindings like > > (define-key map "\C-c\C-c" 'occur-mode-goto-occurrence) > (define-key map "\C-m" 'occur-mode-goto-occurrence) > (define-key map "o" 'occur-mode-goto-occurrence-other-window) > > very confusing. You might find it more confusing when I tell you that in ~/.emacs I bound `occur-mode-goto-occurrence-kill-buffer' to C-RET ;-) >> In addition to this, it could also use the action >> `display-buffer-below-selected' (like in dired), > > I think `display-buffer-at-bottom' would suit better. But this needs > some way to say bottom-left, bottom-center, bottom-right. I'm not yet > sure how to do that best. Shouldn't `display-buffer-at-bottom' create a window with the width of the frame's full width? In this case, left/center/right are not needed.