unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#12916: 24.2; Completion for "C-x b" does not include current buffer
@ 2012-11-17 15:44 Richard Copley
  2012-11-19 14:22 ` Stefan Monnier
  0 siblings, 1 reply; 6+ messages in thread
From: Richard Copley @ 2012-11-17 15:44 UTC (permalink / raw)
  To: 12916

In older Emacs versions (*), to switch buffer, I could type "C-x b",
followed by a unique prefix of the desired buffer's name, then "TAB
RET". This routine no longer works. Specifically, the completion fails
when the desired buffer is already the current buffer. So before I can
switch, I first have to work out which window is selected and whether
its buffer is the one I want.

In my opinion this was a bad decision, and I think we should go back
to using "B" as the interactive spec for switch-to-buffer. Others
might disagree, so would it be possible to add a custom variable to
control whether the current buffer is included in the list of completions?

(*) (I think the behaviour changed on the trunk in
revisions 86915 and 86916, in April 2008.)

In GNU Emacs 24.2.1 (i386-mingw-nt6.1.7601)
 of 2012-08-29 on MARVIN

Major mode: Lisp Interaction

Recent input:
C-x b * s c r a t c h <tab> <tab> <tab> <tab> C-g
M-x r e p o r t - e m a c s - b u g <return>





^ permalink raw reply	[flat|nested] 6+ messages in thread
* bug#9598: 24.0.50; completion goes too far
@ 2011-09-25 17:34 Richard Stallman
  2011-09-25 18:47 ` Drew Adams
  0 siblings, 1 reply; 6+ messages in thread
From: Richard Stallman @ 2011-09-25 17:34 UTC (permalink / raw)
  To: 9598

This bug report will be sent to the Bug-GNU-Emacs mailing list
and the GNU bug tracker at debbugs.gnu.org.  Please check that
the From: line contains a valid email address.  After a delay of up
to one day, you should receive an acknowledgement at that address.

Please write in English if possible, as the Emacs maintainers
usually do not have translators for other languages.

Please describe exactly what actions triggered the bug, and
the precise symptoms of the bug.  If you can, give a recipe
starting from `emacs -Q':

I typed C-b R TAB, not noticing I was already in RMAIL,
and it completed to ` *message-viewer RMAIL*'.

This is totally surprising and unhelpful.

I created a buffer called faUlt and found that U TAB completes
to faUlt.  This sort of thing will only confuse people

When in the *mail* buffer, I found that C-x b *ma TAB offered me
    *Shell Command Output* 	les-luthiers.xmail
    maintainers.bypkg 	rmail.el
    summary

and did not mention *mail* at all.  That is confusing and unhelpful
too, for it to offer buffers that did not have the *'s.

I surmise it is treating the input as a wildcard pattern.
I think that is a misguided feature.  The *'s should be
treated literally.  And the current buffer should not be
excluded from a completion list, when a completion list is displayed.


If Emacs crashed, and you have the Emacs process in the gdb debugger,
please include the output from the following gdb commands:
    `bt full' and `xbacktrace'.
For information about debugging Emacs, please read the file
/home/rms/emacs-bzr/trunk/etc/DEBUG.


In GNU Emacs 24.0.50.4 (mips64el-unknown-linux-gnu, GTK+ Version 2.12.12)
 of 2011-09-22 on theobromine2
configured using `configure  'CFLAGS=-g -O1''

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_US.UTF-8
  value of $XMODIFIERS: nil
  locale-coding-system: utf-8-unix
  default enable-multibyte-characters: t

Major mode: Fundamental

Minor modes in effect:
  shell-dirtrack-mode: t
  diff-auto-refine-mode: t
  gpm-mouse-mode: t
  tooltip-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t
  abbrev-mode: t

Recent input:
C-b C-b - C-f C-f - C-e , t DEL DEL . h t m l . C-x 
C-s C-x b o t g TAB DEL DEL u t g TAB RET g ~ x y e 
s RET C-x b g n u p TAB RET C-s s h n e C-s C-s C-s 
y C-s C-a C-s c h n e C-s ESC < C-s C-s C-n C-n C-n 
C-n C-n C-n C-a C-p C-@ C-e ESC w C-x 4 m C-y C-n C 
o n v e r g e n c e SPC i n s t e a SPC DEL d SPC o 
f SPC C A s C-n C-n C-n W h a t SPC d o SPC y o u SPC 
t h i n k SPC o f SPC C o n v e r g n c e DEL DEL DEL 
e n c e ? C-c C-c C-x b o u t g TAB RET C-g C-x b C-g 
g ~ C-x b R TAB RET g C-l C-x 1 n n n d d x n n p n 
n p n d u n n n n n n n d d d x d d x n x n d x d x 
n d x o u e f TAB RET d x o e u r o p e . x TAB RET 
d x ESC x l y n x RET C-v C-v C-v C-v C-v C-v C-v C-v 
C-v C-v C-v C-v C-v C-v C-v C-v C-v C-v C-v C-v C-v 
C-v C-x b R TAB RET C-x b R TAB C-g C-h l ESC x r e 
p o r t SPC e m a c s SPC b u g RET

Recent messages:
Expunging deleted messages...done
Expunging deleted messages...done
Expunging deleted messages...done
Expunging deleted messages...done
Expunging deleted messages...done
Added to /home/rms/xmail/uefi.xmail
Expunging deleted messages...done
Added to /home/rms/xmail/europe.xmail
Expunging deleted messages...done
Wrote /home/rms/foo.html
Quit

Load-path shadows:
None found.

Features:
(shadow emacsbug compare-w log-view parse-time mule-util quail ispell
speedbar sb-image ezimage dframe assoc ind-util edmacro kmacro
dired-aux rmailout sgml-mode ansi-color shell pcomplete grep qp
dabbrev newcomment warnings cl byte-opt compile comint bytecomp
byte-compile cconv macroexp find-func help-mode view help-fns cc-mode
cc-fonts cc-guess cc-bytecomp cc-menus cc-cmds cc-styles cc-align
cc-engine cc-vars cc-defs whitespace diff-mode log-edit easy-mmode
ring pcvs-util vc-sccs vc-svn vc-cvs vc-rcs vc-dir ewoc vc ediff-merg
ediff-diff ediff-wind ediff-help ediff-util ediff-mult ediff-init
ediff vc-dispatcher add-log multi-isearch vc-bzr mailalias rmailmm
message sendmail format-spec rfc822 mml easymenu mml-sec mm-decode
mm-bodies mm-encode mailabbrev gmm-utils mailheader mail-parse rfc2231
rmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils dired
regexp-opt t-mouse time-date battery paren cus-start cus-load tooltip
ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd
fontset image fringe lisp-mode register page menu-bar rfn-eshadow
timer select scroll-bar mouse jit-lock font-lock syntax facemenu
font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan
thai tai-viet lao korean japanese hebrew greek romanian slovak czech
european ethiopic indian cyrillic chinese case-table epa-hook
jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces
cus-face files text-properties overlay sha1 md5 base64 format env
code-pages mule custom widget hashtable-print-readable backquote
make-network-process dbusbind dynamic-setting system-font-setting
font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs)


-- 
Dr Richard Stallman
President, Free Software Foundation
51 Franklin St
Boston MA 02110
USA
www.fsf.org  www.gnu.org
Skype: No way! That's nonfree (freedom-denying) software.
  Use free telephony http://directory.fsf.org/category/tel/





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

end of thread, other threads:[~2022-02-06  0:05 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-17 15:44 bug#12916: 24.2; Completion for "C-x b" does not include current buffer Richard Copley
2012-11-19 14:22 ` Stefan Monnier
     [not found]   ` <CAPM58ogCn5hi6qskV9XTqJoqm23fanS661ajPkRdfES6_Hg=-A@mail.gmail.com>
2012-11-19 20:10     ` bug#12916: Fwd: " Richard Copley
2012-11-19 21:32   ` Richard Stallman
2012-11-21  8:14   ` Richard Stallman
  -- strict thread matches above, loose matches on Subject: below --
2011-09-25 17:34 bug#9598: 24.0.50; completion goes too far Richard Stallman
2011-09-25 18:47 ` Drew Adams
2011-09-26  1:00   ` Richard Stallman
2011-09-26  6:09     ` Eli Zaretskii
2011-09-26 10:42       ` Richard Stallman
2011-09-26 11:34         ` Eli Zaretskii
2011-09-26 21:12           ` Richard Stallman
2022-02-06  0:05             ` bug#12916: 24.2; Completion for "C-x b" does not include current buffer Lars Ingebrigtsen

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).