all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#27997: pick a better buffer to fill the gap, not one I already see
@ 2017-08-07  0:37 積丹尼 Dan Jacobson
  2017-08-07  3:49 ` Tino Calancha
  0 siblings, 1 reply; 3+ messages in thread
From: 積丹尼 Dan Jacobson @ 2017-08-07  0:37 UTC (permalink / raw)
  To: 27997

OK I killed a buffer, so a new one pops in to replace it.

Except sometimes the choice of the new one is quite embarrassing: it
picks a buffer I'm already looking at while at the same time ignoring a
better candidate.

$ emacs -Q /tmp/a /tmp/b /tmp/c
 C-x 1 [delete-other-windows]
 C-x 4 b [switch-to-buffer-other-window] # Smart enough not to prompt with the name of a buffer I already see. Good.
 <return> [minibuffer-complete-and-exit] # was prompted with "b", OK
 C-x k [kill-buffer]                     # was prompted with "b", OK
 <return> [minibuffer-complete-and-exit] # killed "b", OK, but...

Now I'm staring at two "c" buffers!
I would be better served by staring at "a" and "c" buffers.

So please when selecting a buffer to fill the gap,
again be smart enough not to show a buffer I already see.





^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#27997: pick a better buffer to fill the gap, not one I already see
  2017-08-07  0:37 bug#27997: pick a better buffer to fill the gap, not one I already see 積丹尼 Dan Jacobson
@ 2017-08-07  3:49 ` Tino Calancha
  2019-10-14 20:03   ` Lars Ingebrigtsen
  0 siblings, 1 reply; 3+ messages in thread
From: Tino Calancha @ 2017-08-07  3:49 UTC (permalink / raw)
  To: 積丹尼 Dan Jacobson; +Cc: 27997

積丹尼 Dan Jacobson <jidanni@jidanni.org> writes:

> OK I killed a buffer, so a new one pops in to replace it.
>
> Except sometimes the choice of the new one is quite embarrassing: it
> picks a buffer I'm already looking at while at the same time ignoring a
> better candidate.
>
> $ emacs -Q /tmp/a /tmp/b /tmp/c
>  C-x 1 [delete-other-windows]
>  C-x 4 b [switch-to-buffer-other-window] # Smart enough not to prompt with the name of a buffer I already see. Good.
>  <return> [minibuffer-complete-and-exit] # was prompted with "b", OK
>  C-x k [kill-buffer]                     # was prompted with "b", OK
>  <return> [minibuffer-complete-and-exit] # killed "b", OK, but...
>
> Now I'm staring at two "c" buffers!
> I would be better served by staring at "a" and "c" buffers.
>
> So please when selecting a buffer to fill the gap,
> again be smart enough not to show a buffer I already see.
The original code pick up the previous buffer shown in that same
window.  That's a feature; sometimes might be desirable.
For instance,
;; Imagine we want to split the window to show two
;; differents parts of a large buffer.
emacs -Q src/data.c
C-x 3 ; split-window-right
M-> ; end-of-buffer
M-v ; scroll-down-command
;; Wanna see who commited the line at point.
C-x v g ; I see, Daniel was.
;; Some people don't use `quit-window', just `C-x b' and `C-x k'
C-x k RET ; This return me where i was
;; Still have src/data.c split in the upper/lower parts.
;; With your suggestion we will have src/data.c in one
;; window and a diferent buffer (*scratch*) in another.

IMO, if we follow your suggestion it must be configurable
with an option (nil by default).





^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#27997: pick a better buffer to fill the gap, not one I already see
  2017-08-07  3:49 ` Tino Calancha
@ 2019-10-14 20:03   ` Lars Ingebrigtsen
  0 siblings, 0 replies; 3+ messages in thread
From: Lars Ingebrigtsen @ 2019-10-14 20:03 UTC (permalink / raw)
  To: Tino Calancha; +Cc: 27997, 積丹尼 Dan Jacobson

Tino Calancha <tino.calancha@gmail.com> writes:

>> So please when selecting a buffer to fill the gap,
>> again be smart enough not to show a buffer I already see.
> The original code pick up the previous buffer shown in that same
> window.  That's a feature; sometimes might be desirable.

So this works as designed, and I'm closing this as a "wontfix".

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-10-14 20:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-07  0:37 bug#27997: pick a better buffer to fill the gap, not one I already see 積丹尼 Dan Jacobson
2017-08-07  3:49 ` Tino Calancha
2019-10-14 20:03   ` Lars Ingebrigtsen

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.