From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#12708: 24.1; M-x display-time-world "q" close window Date: Sat, 27 Oct 2012 15:45:25 +0200 Message-ID: <508BE575.4020501@gmx.at> References: <87txtmkziu.fsf@blah.blah> <50863A2C.1010008@gmx.at> <87objs9uvn.fsf@mail.jurta.org> <508BBFD6.7080300@gmx.at> <87y5is2k78.fsf@mail.jurta.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1351345552 20134 80.91.229.3 (27 Oct 2012 13:45:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 27 Oct 2012 13:45:52 +0000 (UTC) Cc: 12708@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Oct 27 15:46:00 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 1TS6i8-0002f8-Cd for geb-bug-gnu-emacs@m.gmane.org; Sat, 27 Oct 2012 15:46:00 +0200 Original-Received: from localhost ([::1]:39084 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TS6hz-0002ks-Uj for geb-bug-gnu-emacs@m.gmane.org; Sat, 27 Oct 2012 09:45:51 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:46199) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TS6hw-0002gD-VA for bug-gnu-emacs@gnu.org; Sat, 27 Oct 2012 09:45:49 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TS6hv-0005v9-Sd for bug-gnu-emacs@gnu.org; Sat, 27 Oct 2012 09:45:48 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:53553) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TS6hv-0005v5-HA for bug-gnu-emacs@gnu.org; Sat, 27 Oct 2012 09:45:47 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TS6k5-0005P5-OR for bug-gnu-emacs@gnu.org; Sat, 27 Oct 2012 09:48:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 27 Oct 2012 13:48:01 +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.135134567220755 (code B ref 12708); Sat, 27 Oct 2012 13:48:01 +0000 Original-Received: (at 12708) by debbugs.gnu.org; 27 Oct 2012 13:47:52 +0000 Original-Received: from localhost ([127.0.0.1]:35571 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TS6jv-0005Oi-OL for submit@debbugs.gnu.org; Sat, 27 Oct 2012 09:47:52 -0400 Original-Received: from mailout-de.gmx.net ([213.165.64.22]:39692) by debbugs.gnu.org with smtp (Exim 4.72) (envelope-from ) id 1TS6js-0005OY-RT for 12708@debbugs.gnu.org; Sat, 27 Oct 2012 09:47:50 -0400 Original-Received: (qmail invoked by alias); 27 Oct 2012 13:45:32 -0000 Original-Received: from 62-47-63-98.adsl.highway.telekom.at (EHLO [62.47.63.98]) [62.47.63.98] by mail.gmx.net (mp028) with SMTP; 27 Oct 2012 15:45:32 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX18ABEdWi3gAZIZiguY+59YhCJM/UDG92OaMfYHzKF 0xUtDTbpvdTD62 In-Reply-To: <87y5is2k78.fsf@mail.jurta.org> X-Y-GMX-Trusted: 0 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:66107 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. For <= two windows per frame users there's a difference: If the *Occur* buffer appeared in a new window, the other window would be reused with your approach. If we delete the *Occur* window first, the other window would be split. >> 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 ;-) Not really. I use M-RET for going to the tag around `point'. It has some kind of "come on, get there ..." connotation for me. > 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. I'm not sure. People with two side-by-side windows would probably like to split-below their window on the right for calendar-like things that take fairly few columns only. We need some framework for specifying such behavior in a user-friendly way. Well, they could use side-windows already ... martin