From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 22 16:46:58 2012 Received: (at submit) by debbugs.gnu.org; 22 Oct 2012 20:46:58 +0000 Received: from localhost ([127.0.0.1]:56313 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TQOtm-0005i2-2I for submit@debbugs.gnu.org; Mon, 22 Oct 2012 16:46:58 -0400 Received: from eggs.gnu.org ([208.118.235.92]:37909) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TQOtj-0005ho-KF for submit@debbugs.gnu.org; Mon, 22 Oct 2012 16:46:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TQOrs-00035R-QR for submit@debbugs.gnu.org; Mon, 22 Oct 2012 16:45:01 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:51234) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TQOrs-00035N-N2 for submit@debbugs.gnu.org; Mon, 22 Oct 2012 16:45:00 -0400 Received: from eggs.gnu.org ([208.118.235.92]:34923) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TQOrr-0004Wa-Ji for bug-gnu-emacs@gnu.org; Mon, 22 Oct 2012 16:45:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TQOrq-00034s-Eb for bug-gnu-emacs@gnu.org; Mon, 22 Oct 2012 16:44:59 -0400 Received: from mailout1-13.pacific.net.au ([125.255.80.132]:47963 helo=mailout3-syd3.pacific.net.au) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TQOrq-000347-3t for bug-gnu-emacs@gnu.org; Mon, 22 Oct 2012 16:44:58 -0400 Received: from mailproxy3-syd3.pacific.net.au (mailproxy3-syd3.pacific.net.au [61.8.2.164]) by mailout3-syd3.pacific.net.au (Postfix) with ESMTP id F3C0F6B90F5 for ; Tue, 23 Oct 2012 07:44:48 +1100 (EST) Received: from blah.blah (unknown [203.26.175.33]) by mailproxy3-syd3.pacific.net.au (Postfix) with ESMTP id E45BD578073 for ; Tue, 23 Oct 2012 07:44:43 +1100 (EST) Received: from gg by blah.blah with local (Exim 4.72) (envelope-from ) id 1TQOrJ-0004MZ-EI for bug-gnu-emacs@gnu.org; Tue, 23 Oct 2012 07:44:25 +1100 From: Kevin Ryde To: bug-gnu-emacs@gnu.org Subject: 24.1; M-x display-time-world "q" close window Date: Tue, 23 Oct 2012 07:44:25 +1100 Message-ID: <87txtmkziu.fsf@blah.blah> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.118.235.17 X-Spam-Score: -4.2 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) Severity: wishlist In an M-x display-time-world, it'd be good if the "q" key closed the window (as well as killing the buffer). The window is a small extra opened at the bottom of the screen by the command. If it's still that size then it's not much use for anything else. M-x calendar has its "q" close the small window it opens. I'm suspect it's not possible to share code, as the calendar bit looks like it does other things too. In GNU Emacs 24.1.1 (i486-pc-linux-gnu, GTK+ Version 2.24.8) of 2012-08-07 on blah.blah, modified by Debian Configured using: `configure '--build' 'i486-linux-gnu' '--build' 'i486-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var/lib' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs24:/etc/emacs:/usr/local/share/emacs/24.1/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.1/site-lisp:/usr/share/emacs/site-lisp' '--with-crt-dir=/usr/lib/i386-linux-gnu' '--with-x=yes' '--with-x-toolkit=gtk' '--with-toolkit-scroll-bars' 'build_alias=i486-linux-gnu' 'CFLAGS=-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall' 'CPPFLAGS=-D_FORTIFY_SOURCE=2'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_AU value of $XMODIFIERS: nil locale-coding-system: iso-latin-1-unix default enable-multibyte-characters: t From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 23 02:35:28 2012 Received: (at 12708) by debbugs.gnu.org; 23 Oct 2012 06:35:29 +0000 Received: from localhost ([127.0.0.1]:56809 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TQY5I-0006ql-Ho for submit@debbugs.gnu.org; Tue, 23 Oct 2012 02:35:28 -0400 Received: from mailout-de.gmx.net ([213.165.64.23]:49625) by debbugs.gnu.org with smtp (Exim 4.72) (envelope-from ) id 1TQY5F-0006qX-Bv for 12708@debbugs.gnu.org; Tue, 23 Oct 2012 02:35:26 -0400 Received: (qmail invoked by alias); 23 Oct 2012 06:33:28 -0000 Received: from 62-47-43-249.adsl.highway.telekom.at (EHLO [62.47.43.249]) [62.47.43.249] by mail.gmx.net (mp071) with SMTP; 23 Oct 2012 08:33:28 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX18EfkVjd3EElqAePZJDOx8tZeSJEqZCb9BV1499WU fi80lk7msgM7jI Message-ID: <50863A2C.1010008@gmx.at> Date: Tue, 23 Oct 2012 08:33:16 +0200 From: martin rudalics MIME-Version: 1.0 To: Kevin Ryde Subject: Re: bug#12708: 24.1; M-x display-time-world "q" close window References: <87txtmkziu.fsf@blah.blah> In-Reply-To: <87txtmkziu.fsf@blah.blah> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-Spam-Score: 0.8 (/) X-Debbugs-Envelope-To: 12708 Cc: 12708@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: 0.8 (/) > In an M-x display-time-world, it'd be good if the "q" key closed the > window (as well as killing the buffer). > > The window is a small extra opened at the bottom of the screen by the > command. If it's still that size then it's not much use for anything > else. > > M-x calendar has its "q" close the small window it opens. I'm suspect > it's not possible to share code, as the calendar bit looks like it does > other things too. We could do (defun quit-window-kill-buffer (&optional window) "Quit WINDOW and kill its buffer. WINDOW must be a live window and defaults to the selected one." (interactive) (quit-restore-window window 'kill)) (defvar display-time-world-mode-map (let ((map (make-sparse-keymap))) (define-key map "q" 'quit-window-kill-buffer) map) "Keymap of Display Time World mode.") But `display-time-world' should probably also use `display-buffer' instead of `pop-to-buffer' and put the buffer in `view-mode'. After all, who wants to edit or navigate the *wclock* buffer? martin From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 24 03:53:22 2012 Received: (at 12708) by debbugs.gnu.org; 24 Oct 2012 07:53:22 +0000 Received: from localhost ([127.0.0.1]:58665 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TQvmE-0003qN-A7 for submit@debbugs.gnu.org; Wed, 24 Oct 2012 03:53:22 -0400 Received: from ps18281.dreamhost.com ([69.163.218.105]:44610 helo=ps18281.dreamhostps.com) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TQvmB-0003qE-Bc for 12708@debbugs.gnu.org; Wed, 24 Oct 2012 03:53:20 -0400 Received: from localhost (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id BEAEBAAB4B9C; Wed, 24 Oct 2012 00:51:20 -0700 (PDT) From: Juri Linkov To: martin rudalics Subject: Re: bug#12708: 24.1; M-x display-time-world "q" close window Organization: JURTA References: <87txtmkziu.fsf@blah.blah> <50863A2C.1010008@gmx.at> Date: Wed, 24 Oct 2012 10:44:44 +0300 In-Reply-To: <50863A2C.1010008@gmx.at> (martin rudalics's message of "Tue, 23 Oct 2012 08:33:16 +0200") Message-ID: <87objs9uvn.fsf@mail.jurta.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.8 (/) X-Debbugs-Envelope-To: 12708 Cc: 12708@debbugs.gnu.org, Kevin Ryde X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: 0.8 (/) > We could do > > (defun quit-window-kill-buffer (&optional window) > "Quit WINDOW and kill its buffer. > WINDOW must be a live window and defaults to the selected one." > (interactive) > (quit-restore-window window 'kill)) > > (defvar display-time-world-mode-map > (let ((map (make-sparse-keymap))) > (define-key map "q" 'quit-window-kill-buffer) > map) > "Keymap of Display Time World mode.") BTW, when I needed to do the same for the *Occur* buffer (to kill it after going to the occurrence) I created a new command `occur-mode-goto-occurrence-kill-buffer' based on `occur-mode-goto-occurrence-other-window': (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))) I still have no idea how to generalize this common behavior. > But `display-time-world' should probably also use `display-buffer' > instead of `pop-to-buffer' and put the buffer in `view-mode'. After > all, who wants to edit or navigate the *wclock* buffer? In addition to this, it could also use the action `display-buffer-below-selected' (like in dired), and instead of `fit-window-to-buffer' it could use '((window-height . fit-window-to-buffer)). From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 24 10:58:06 2012 Received: (at 12708) by debbugs.gnu.org; 24 Oct 2012 14:58:06 +0000 Received: from localhost ([127.0.0.1]:59714 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TR2PG-0007Fq-1x for submit@debbugs.gnu.org; Wed, 24 Oct 2012 10:58:06 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:44724 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TR2PE-0007Fj-1b for 12708@debbugs.gnu.org; Wed, 24 Oct 2012 10:58:04 -0400 Received: from cyd by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1TR2NH-00073Z-FH; Wed, 24 Oct 2012 10:56:03 -0400 From: Chong Yidong To: martin rudalics Subject: Re: bug#12708: 24.1; M-x display-time-world "q" close window In-Reply-To: <50863A2C.1010008@gmx.at> (martin rudalics's message of "Tue, 23 Oct 2012 08:33:16 +0200") Date: Wed, 24 Oct 2012 22:53:11 +0800 Message-ID: <874nljzzu0.fsf@gnu.org> References: <87txtmkziu.fsf@blah.blah> <50863A2C.1010008@gmx.at> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -4.9 (----) X-Debbugs-Envelope-To: 12708 Cc: 12708@debbugs.gnu.org, Kevin Ryde X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.9 (----) martin rudalics writes: > But `display-time-world' should probably also use `display-buffer' > instead of `pop-to-buffer' and put the buffer in `view-mode'. After > all, who wants to edit or navigate the *wclock* buffer? Yes, display-time-world is clearly behind the times, and the use of pop-to-buffer is a mistake. I changed display-time-world-mode to derive from special mode, and display-time-world to use display-buffer. From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 24 10:58:17 2012 Received: (at control) by debbugs.gnu.org; 24 Oct 2012 14:58:17 +0000 Received: from localhost ([127.0.0.1]:59717 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TR2PR-0007GB-9i for submit@debbugs.gnu.org; Wed, 24 Oct 2012 10:58:17 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:44733 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TR2PP-0007G4-2k for control@debbugs.gnu.org; Wed, 24 Oct 2012 10:58:15 -0400 Received: from cyd by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1TR2NU-000756-2h for control@debbugs.gnu.org; Wed, 24 Oct 2012 10:56:16 -0400 From: Chong Yidong To: control@debbugs.gnu.org Subject: close 12708 Date: Wed, 24 Oct 2012 10:56:15 -0400 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -4.9 (----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.9 (----) close 12708 thanks From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 24 12:27:47 2012 Received: (at 12708) by debbugs.gnu.org; 24 Oct 2012 16:27:47 +0000 Received: from localhost ([127.0.0.1]:59813 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TR3o2-0003Rl-ON for submit@debbugs.gnu.org; Wed, 24 Oct 2012 12:27:47 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:47342 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TR3o0-0003Re-Ke for 12708@debbugs.gnu.org; Wed, 24 Oct 2012 12:27:45 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1TR3m3-0007ig-KR; Wed, 24 Oct 2012 12:25:43 -0400 From: Glenn Morris To: Chong Yidong Subject: Re: bug#12708: 24.1; M-x display-time-world "q" close window References: <87txtmkziu.fsf@blah.blah> <50863A2C.1010008@gmx.at> <874nljzzu0.fsf@gnu.org> X-Spook: arrangements Sundevil sweep Leuken-Baden afsatcom e-cash X-Ran: IZ[|E)*t?({=llc^cTH='a|M`U2p)BPw;T~Q76iR9)yHWmk=4ia9N/3bhudd*D:|Q_#.Hh X-Hue: black X-Attribution: GM Date: Wed, 24 Oct 2012 12:25:43 -0400 In-Reply-To: <874nljzzu0.fsf@gnu.org> (Chong Yidong's message of "Wed, 24 Oct 2012 22:53:11 +0800") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -4.9 (----) X-Debbugs-Envelope-To: 12708 Cc: martin rudalics , 12708@debbugs.gnu.org, Kevin Ryde X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.7 (-----) Chong Yidong wrote: > Yes, display-time-world is clearly behind the times, and the use of > pop-to-buffer is a mistake. I changed display-time-world-mode to derive > from special mode, and display-time-world to use display-buffer. emacs -Q -f display-time-world q ; in world time buffer M-x display-time-world -> Buffer is read-only: # From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 24 14:29:40 2012 Received: (at 12708) by debbugs.gnu.org; 24 Oct 2012 18:29:40 +0000 Received: from localhost ([127.0.0.1]:59971 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TR5hz-00079Y-VE for submit@debbugs.gnu.org; Wed, 24 Oct 2012 14:29:40 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:50489 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TR5hx-00079R-Rx for 12708@debbugs.gnu.org; Wed, 24 Oct 2012 14:29:38 -0400 Received: from cyd by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1TR5g0-0005HK-LW; Wed, 24 Oct 2012 14:27:36 -0400 From: Chong Yidong To: Glenn Morris Subject: Re: bug#12708: 24.1; M-x display-time-world "q" close window References: <87txtmkziu.fsf@blah.blah> <50863A2C.1010008@gmx.at> <874nljzzu0.fsf@gnu.org> Date: Wed, 24 Oct 2012 14:27:36 -0400 In-Reply-To: (Glenn Morris's message of "Wed, 24 Oct 2012 12:25:43 -0400") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -4.9 (----) X-Debbugs-Envelope-To: 12708 Cc: martin rudalics , 12708@debbugs.gnu.org, Kevin Ryde X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.9 (----) Glenn Morris writes: > emacs -Q -f display-time-world > q ; in world time buffer > M-x display-time-world > -> Buffer is read-only: # Thanks, should be fixed now. From debbugs-submit-bounces@debbugs.gnu.org Sat Oct 27 07:07:24 2012 Received: (at 12708) by debbugs.gnu.org; 27 Oct 2012 11:07:24 +0000 Received: from localhost ([127.0.0.1]:35487 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TS4Ee-0000zH-2B for submit@debbugs.gnu.org; Sat, 27 Oct 2012 07:07:24 -0400 Received: from mailout-de.gmx.net ([213.165.64.22]:44863) by debbugs.gnu.org with smtp (Exim 4.72) (envelope-from ) id 1TS4EZ-0000z7-Ng for 12708@debbugs.gnu.org; Sat, 27 Oct 2012 07:07:21 -0400 Received: (qmail invoked by alias); 27 Oct 2012 11:05:04 -0000 Received: from 62-47-58-51.adsl.highway.telekom.at (EHLO [62.47.58.51]) [62.47.58.51] by mail.gmx.net (mp032) with SMTP; 27 Oct 2012 13:05:04 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX18ba3lzP1Eb69LZQBO7C7vS+kjW7qTkpgAVNfPMcZ BVweRJPBw/4xrD Message-ID: <508BBFD6.7080300@gmx.at> Date: Sat, 27 Oct 2012 13:04:54 +0200 From: martin rudalics MIME-Version: 1.0 To: Juri Linkov Subject: Re: bug#12708: 24.1; M-x display-time-world "q" close window References: <87txtmkziu.fsf@blah.blah> <50863A2C.1010008@gmx.at> <87objs9uvn.fsf@mail.jurta.org> In-Reply-To: <87objs9uvn.fsf@mail.jurta.org> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-Spam-Score: 0.8 (/) X-Debbugs-Envelope-To: 12708 Cc: 12708@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: 0.8 (/) > BTW, when I needed to do the same for the *Occur* buffer > (to kill it after going to the occurrence) I created a new command > `occur-mode-goto-occurrence-kill-buffer' based on > `occur-mode-goto-occurrence-other-window': > > (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))) > > I still have no idea how to generalize this common behavior. Why don't you quit the *Occur* buffer window first and do a simple `pop-to-buffer' afterwards? In any case I think that the "kill the *Occur* buffer" effect should be achieved with some sort of prefix. 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. > 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. > and instead of `fit-window-to-buffer' it could use > '((window-height . fit-window-to-buffer)). I installed that now. martin From debbugs-submit-bounces@debbugs.gnu.org Sat Oct 27 08:13:32 2012 Received: (at 12708) by debbugs.gnu.org; 27 Oct 2012 12:13:33 +0000 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 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 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) From: Juri Linkov To: martin rudalics Subject: Re: bug#12708: 24.1; M-x display-time-world "q" close window Organization: JURTA References: <87txtmkziu.fsf@blah.blah> <50863A2C.1010008@gmx.at> <87objs9uvn.fsf@mail.jurta.org> <508BBFD6.7080300@gmx.at> Date: Sat, 27 Oct 2012 14:45:18 +0300 In-Reply-To: <508BBFD6.7080300@gmx.at> (martin rudalics's message of "Sat, 27 Oct 2012 13:04:54 +0200") Message-ID: <87y5is2k78.fsf@mail.jurta.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.8 (/) X-Debbugs-Envelope-To: 12708 Cc: 12708@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: 0.8 (/) >> (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. From debbugs-submit-bounces@debbugs.gnu.org Sat Oct 27 09:47:52 2012 Received: (at 12708) by debbugs.gnu.org; 27 Oct 2012 13:47:52 +0000 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 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 Received: (qmail invoked by alias); 27 Oct 2012 13:45:32 -0000 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 Message-ID: <508BE575.4020501@gmx.at> Date: Sat, 27 Oct 2012 15:45:25 +0200 From: martin rudalics MIME-Version: 1.0 To: Juri Linkov Subject: Re: bug#12708: 24.1; M-x display-time-world "q" close window References: <87txtmkziu.fsf@blah.blah> <50863A2C.1010008@gmx.at> <87objs9uvn.fsf@mail.jurta.org> <508BBFD6.7080300@gmx.at> <87y5is2k78.fsf@mail.jurta.org> In-Reply-To: <87y5is2k78.fsf@mail.jurta.org> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-Spam-Score: 0.8 (/) X-Debbugs-Envelope-To: 12708 Cc: 12708@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: 0.8 (/) >>> (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 From debbugs-submit-bounces@debbugs.gnu.org Sat Oct 27 11:21:29 2012 Received: (at 12708) by debbugs.gnu.org; 27 Oct 2012 15:21:29 +0000 Received: from localhost ([127.0.0.1]:35948 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TS8CX-0007Zk-EZ for submit@debbugs.gnu.org; Sat, 27 Oct 2012 11:21:29 -0400 Received: from ps18281.dreamhost.com ([69.163.218.105]:39614 helo=ps18281.dreamhostps.com) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TS8CV-0007Zd-7z for 12708@debbugs.gnu.org; Sat, 27 Oct 2012 11:21:28 -0400 Received: from localhost (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id 67A22451CCE5; Sat, 27 Oct 2012 08:19:10 -0700 (PDT) From: Juri Linkov To: martin rudalics Subject: Re: bug#12708: 24.1; M-x display-time-world "q" close window Organization: JURTA References: <87txtmkziu.fsf@blah.blah> <50863A2C.1010008@gmx.at> <87objs9uvn.fsf@mail.jurta.org> <508BBFD6.7080300@gmx.at> <87y5is2k78.fsf@mail.jurta.org> <508BE575.4020501@gmx.at> Date: Sat, 27 Oct 2012 18:02:41 +0300 In-Reply-To: <508BE575.4020501@gmx.at> (martin rudalics's message of "Sat, 27 Oct 2012 15:45:25 +0200") Message-ID: <878vasc5d2.fsf@mail.jurta.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.8 (/) X-Debbugs-Envelope-To: 12708 Cc: 12708@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: 0.8 (/) >> 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. "Split-below on the right" is quite weird behavior as default. Better would be "Split-below in the same column" (where column means a vertical list of windows). With a column of two windows this is the same as `display-buffer-below-selected' already does. > We need some framework for specifying such behavior in a user-friendly > way. Well, they could use side-windows already ... In a user-friendly framework the user could just type a "print-screen" key and it will convert the current window configuration info a structure that can be used as a basis for further configuration. From debbugs-submit-bounces@debbugs.gnu.org Sun Oct 28 11:25:38 2012 Received: (at 12708) by debbugs.gnu.org; 28 Oct 2012 15:25:38 +0000 Received: from localhost ([127.0.0.1]:36732 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TSUk6-0007p7-6c for submit@debbugs.gnu.org; Sun, 28 Oct 2012 11:25:38 -0400 Received: from mailout-de.gmx.net ([213.165.64.22]:55954) by debbugs.gnu.org with smtp (Exim 4.72) (envelope-from ) id 1TSUk4-0007oy-1U for 12708@debbugs.gnu.org; Sun, 28 Oct 2012 11:25:37 -0400 Received: (qmail invoked by alias); 28 Oct 2012 15:23:14 -0000 Received: from 62-47-44-147.adsl.highway.telekom.at (EHLO [62.47.44.147]) [62.47.44.147] by mail.gmx.net (mp034) with SMTP; 28 Oct 2012 16:23:14 +0100 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX194ux4LqTB4Z8mxyr2XDC7Iqasf1s6+koZmqFmWk7 pqvivnht0L3ahr Message-ID: <508D4DD8.1000106@gmx.at> Date: Sun, 28 Oct 2012 16:23:04 +0100 From: martin rudalics MIME-Version: 1.0 To: Juri Linkov Subject: Re: bug#12708: 24.1; M-x display-time-world "q" close window References: <87txtmkziu.fsf@blah.blah> <50863A2C.1010008@gmx.at> <87objs9uvn.fsf@mail.jurta.org> <508BBFD6.7080300@gmx.at> <87y5is2k78.fsf@mail.jurta.org> <508BE575.4020501@gmx.at> <878vasc5d2.fsf@mail.jurta.org> In-Reply-To: <878vasc5d2.fsf@mail.jurta.org> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-Spam-Score: 0.8 (/) X-Debbugs-Envelope-To: 12708 Cc: 12708@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: 0.8 (/) >> 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. > > "Split-below on the right" is quite weird behavior as default. > Better would be "Split-below in the same column" (where column means > a vertical list of windows). With a column of two windows > this is the same as `display-buffer-below-selected' already does. Where would you put a calendar in a configuration like this: ----------------- | | | | | | | | | | | | ----------------- Regardless of which window is selected, IMO the location would be ----------------- | | | | | | | |--------| | | here. | ----------------- martin From debbugs-submit-bounces@debbugs.gnu.org Sun Oct 28 13:55:36 2012 Received: (at 12708) by debbugs.gnu.org; 28 Oct 2012 17:55:36 +0000 Received: from localhost ([127.0.0.1]:36855 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TSX5E-0003bE-1b for submit@debbugs.gnu.org; Sun, 28 Oct 2012 13:55:36 -0400 Received: from ps18281.dreamhost.com ([69.163.218.105]:50741 helo=ps18281.dreamhostps.com) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TSX5B-0003b7-MD for 12708@debbugs.gnu.org; Sun, 28 Oct 2012 13:55:34 -0400 Received: from localhost (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id 9F670451CA50; Sun, 28 Oct 2012 10:53:10 -0700 (PDT) From: Juri Linkov To: martin rudalics Subject: Re: bug#12708: 24.1; M-x display-time-world "q" close window Organization: JURTA References: <87txtmkziu.fsf@blah.blah> <50863A2C.1010008@gmx.at> <87objs9uvn.fsf@mail.jurta.org> <508BBFD6.7080300@gmx.at> <87y5is2k78.fsf@mail.jurta.org> <508BE575.4020501@gmx.at> <878vasc5d2.fsf@mail.jurta.org> <508D4DD8.1000106@gmx.at> Date: Sun, 28 Oct 2012 19:41:45 +0200 In-Reply-To: <508D4DD8.1000106@gmx.at> (martin rudalics's message of "Sun, 28 Oct 2012 16:23:04 +0100") Message-ID: <877gqaebop.fsf@mail.jurta.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.8 (/) X-Debbugs-Envelope-To: 12708 Cc: 12708@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: 0.8 (/) > Where would you put a calendar in a configuration like this: > > ----------------- > | | | > | | | > | | | > | | | > ----------------- I think it should depend on which window is selected like `display-buffer-below-selected' does: ----------------- | |selected| | | | | |--------| | | here. | ----------------- ----------------- |selected| | | | | |--------| | | here. | | ----------------- The reasoning being that the result should look the same as in a narrow 1-window frame: ---------- |selected| | | |--------| | here. | ---------- From unknown Wed Jun 25 02:09:30 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 26 Nov 2012 12:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator