all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: martin rudalics <rudalics@gmx.at>
To: Juri Linkov <juri@jurta.org>
Cc: 12708@debbugs.gnu.org
Subject: bug#12708: 24.1; M-x display-time-world "q" close window
Date: Sat, 27 Oct 2012 15:45:25 +0200	[thread overview]
Message-ID: <508BE575.4020501@gmx.at> (raw)
In-Reply-To: <87y5is2k78.fsf@mail.jurta.org>

 >>> (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





  reply	other threads:[~2012-10-27 13:45 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-22 20:44 bug#12708: 24.1; M-x display-time-world "q" close window Kevin Ryde
2012-10-23  6:33 ` martin rudalics
2012-10-24  7:44   ` Juri Linkov
2012-10-27 11:04     ` martin rudalics
2012-10-27 11:45       ` Juri Linkov
2012-10-27 13:45         ` martin rudalics [this message]
2012-10-27 15:02           ` Juri Linkov
2012-10-28 15:23             ` martin rudalics
2012-10-28 17:41               ` Juri Linkov
2012-10-24 14:53   ` Chong Yidong
2012-10-24 16:25     ` Glenn Morris
2012-10-24 18:27       ` Chong Yidong

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=508BE575.4020501@gmx.at \
    --to=rudalics@gmx.at \
    --cc=12708@debbugs.gnu.org \
    --cc=juri@jurta.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.