unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#11182: 24.0.93; In *shell* buffer, '?' can't be inserted after TAB.
@ 2012-04-05  2:04 Kenichi Handa
  2012-04-05 14:10 ` Stefan Monnier
  0 siblings, 1 reply; 8+ messages in thread
From: Kenichi Handa @ 2012-04-05  2:04 UTC (permalink / raw)
  To: 11182

This is with the latest trunk emacs.

In *shell* buffer, if I have files temp1, temp2, temp.txt,
and type as this (<TAB> means the TAB key):

    % rm temp<TAB>

*Completions* buffer pops up and lists temp1, temp2,
temp.txt.  But after that, when I type '?' key, ? is not
inserted in the buffer because C-h c ? tells that it runs
completion-help-at-point.  This is very annoying.  What I
want to do is to delete only temp1 and temp2 by typing "rm
temp?".

---
Kenichi Handa
handa@m17n.org


In GNU Emacs 24.0.93.2 (i686-pc-linux-gnu, GTK+ Version 2.22.0)
 of 2012-03-28 on etlken
Windowing system distributor `The X.Org Foundation', version 11.0.10900000
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: ja_JP.UTF-8
  value of $XMODIFIERS: @im=ibus
  locale-coding-system: utf-8-unix
  default enable-multibyte-characters: t

Major mode: RMAIL

Minor modes in effect:
  shell-dirtrack-mode: t
  display-time-mode: t
  tooltip-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t

Recent input:
C-n C-n C-n C-n C-p C-p C-p C-p M-f M-b T h e SPC c 
u r r e n t SPC M-l <backspace> i n g SPC l i s t M-d 
M-f M-f M-f M-f M-f M-d M-f M-f M-b C-k a M-b M-b i 
s SPC C-e l i v e . C-a C-n C-n C-n C-n C-p C-p C-p 
C-p C-p C-e . C-n C-n C-n C-n . <escape> < C-v M-v 
C-p C-p C-p C-p C-p C-p C-p C-p C-n M-f M-f M-b w i 
l l SPC b e SPC m 1 7 n - l i b - m l @ a i s t . g 
o . j p M-d M-d M-d M-d <escape> q C-a M-r h d d d 
SPC d SPC SPC d d d d SPC d SPC n d d d d d d d d d 
d d C-p u SPC SPC SPC SPC SPC SPC <backspace> <backspace> 
<backspace> <backspace> <backspace> <backspace> n d 
C-p C-p SPC <backspace> d d d s y q C-v <escape> < 
C-c C-c s q C-x k <return> p u s h d SPC . . / w o 
<tab> <return> b z r SPC m e r g e <return> l s SPC 
# <tab> C-a C-k b z r SPC c o m m i t SPC - m SPC ' 
m e r g e SPC t r u n k ' <return> M-x o m p i <M-backspace> 
c o m p i l e <return> C F L A G S = - g <return> <help-echo> 
C-x o M-r C-x o s r c / e m a c s <return> <help-echo> 
C-x o M-x r e p o <tab> r t <tab> <return>

Recent messages:
/usr/local/work/emacs/work /usr/local/work/emacs/trunk 
comint--common-quoted-suffix: Wrong type argument: wholenump, -1
(No files need saving)
Compilation finished
Getting mail from /var/mail/handa...
Counting new messages...done (1)
Saving file /usr/local/home/handa/RMAIL...
Wrote /usr/local/home/handa/RMAIL [2 times]
1 new message read
Making completion list...

Load-path shadows:
/usr/local/share/emacs/site-lisp/evi-mule hides /usr/local/share/emacs/site-lisp/lookup/evi-mule
/usr/local/share/emacs/site-lisp/evi hides /usr/local/share/emacs/site-lisp/lookup/evi
/usr/local/share/emacs/site-lisp/anthy/anthy hides /usr/local/share/emacs/site-lisp/egg/egg/anthy
/usr/local/share/emacs/site-lisp/egg/its/thai hides /usr/local/work/emacs/stable/lisp/language/thai
/usr/local/share/emacs/site-lisp/egg/its/greek hides /usr/local/work/emacs/stable/lisp/language/greek
/usr/local/work/emacs/stable/lisp/textmodes/table hides ~/emacslisp/table
/usr/local/work/emacs/stable/lisp/language/thai-word hides ~/emacslisp/thai-word
/usr/local/work/emacs/stable/lisp/progmodes/prolog hides ~/emacslisp/prolog
/usr/local/work/emacs/stable/lisp/emacs-lisp/syntax hides ~/emacslisp/syntax
/usr/local/work/emacs/stable/lisp/textmodes/tex-mode hides ~/emacslisp/tex-mode

Features:
(shadow emacsbug compile network-stream starttls tls
mailalias smtpmail auth-source eieio byte-opt bytecomp
byte-compile cconv macroexp assoc password-cache sendmail
sort ja-dic mule-util kkc ja-dic-utl quail help-mode view
newcomment dabbrev supercite easy-mmode regi mail-extr
multi-isearch gnus-util qp rmailkwd pcmpl-unix ansi-color
shell pcomplete comint regexp-opt ring rmailmm message
format-spec rfc822 mml easymenu mml-sec mm-decode mm-bodies
mm-encode mailabbrev gmm-utils mailheader mail-parse rfc2231
js2-mode-autoloads package tabulated-list rmail-parse-url
time rmail-sa rmailsum rmail rfc2047 rfc2045 ietf-drums
mm-util mail-prsvr mail-utils time-date japan-util 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)





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

* bug#11182: 24.0.93; In *shell* buffer, '?' can't be inserted after TAB.
  2012-04-05  2:04 bug#11182: 24.0.93; In *shell* buffer, '?' can't be inserted after TAB Kenichi Handa
@ 2012-04-05 14:10 ` Stefan Monnier
  2012-04-06  0:17   ` Kenichi Handa
  0 siblings, 1 reply; 8+ messages in thread
From: Stefan Monnier @ 2012-04-05 14:10 UTC (permalink / raw)
  To: Kenichi Handa; +Cc: 11182

> This is with the latest trunk emacs.
> In *shell* buffer, if I have files temp1, temp2, temp.txt,
> and type as this (<TAB> means the TAB key):

>     % rm temp<TAB>

> *Completions* buffer pops up and lists temp1, temp2, temp.txt.
> But after that, when I type '?' key, ? is not inserted in the buffer
> because C-h c ? tells that it runs completion-help-at-point.  This is
> very annoying.  What I want to do is to delete only temp1 and temp2 by
> typing "rm temp?".

It's not a bug it's a feature.
You can use `C-q ?' of course.


        Stefan





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

* bug#11182: 24.0.93; In *shell* buffer, '?' can't be inserted after TAB.
  2012-04-05 14:10 ` Stefan Monnier
@ 2012-04-06  0:17   ` Kenichi Handa
  2012-04-06  2:49     ` Stefan Monnier
  0 siblings, 1 reply; 8+ messages in thread
From: Kenichi Handa @ 2012-04-06  0:17 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: 11182

In article <jwvvclejmpn.fsf-monnier+emacs@gnu.org>, Stefan Monnier <monnier@iro.umontreal.ca> writes:

> > This is with the latest trunk emacs.
> > In *shell* buffer, if I have files temp1, temp2, temp.txt,
> > and type as this (<TAB> means the TAB key):

> >     % rm temp<TAB>

> > *Completions* buffer pops up and lists temp1, temp2, temp.txt.
> > But after that, when I type '?' key, ? is not inserted in the buffer
> > because C-h c ? tells that it runs completion-help-at-point.  This is
> > very annoying.  What I want to do is to delete only temp1 and temp2 by
> > typing "rm temp?".

> It's not a bug it's a feature.
> You can use `C-q ?' of course.

Ah, that's what "the standard completion UI" in NEWS means.
Ummm, I don't like it.  What annoys me most is that it's
very difficult to find when '?' is bound to
completion-help-at-point.  Are there any easy way to
customize Emacs not to bind '?' to completion-help-at-point?

---
Kenichi Handa
handa@m17n.org





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

* bug#11182: 24.0.93; In *shell* buffer, '?' can't be inserted after TAB.
  2012-04-06  0:17   ` Kenichi Handa
@ 2012-04-06  2:49     ` Stefan Monnier
  2012-04-06  3:23       ` Kenichi Handa
  0 siblings, 1 reply; 8+ messages in thread
From: Stefan Monnier @ 2012-04-06  2:49 UTC (permalink / raw)
  To: Kenichi Handa; +Cc: 11182

> Ah, that's what "the standard completion UI" in NEWS means.
> Ummm, I don't like it.  What annoys me most is that it's
> very difficult to find when '?' is bound to
> completion-help-at-point.  Are there any easy way to
> customize Emacs not to bind '?' to completion-help-at-point?

You can remove the binding from completion-in-region-mode-map.


        Stefan





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

* bug#11182: 24.0.93; In *shell* buffer, '?' can't be inserted after TAB.
  2012-04-06  2:49     ` Stefan Monnier
@ 2012-04-06  3:23       ` Kenichi Handa
  2012-04-06  9:31         ` Eli Zaretskii
  0 siblings, 1 reply; 8+ messages in thread
From: Kenichi Handa @ 2012-04-06  3:23 UTC (permalink / raw)
  To: 11182-done

In article <jwv398hk21j.fsf-monnier+emacs@gnu.org>, Stefan Monnier <monnier@iro.umontreal.ca> writes:

> > Ah, that's what "the standard completion UI" in NEWS means.
> > Ummm, I don't like it.  What annoys me most is that it's
> > very difficult to find when '?' is bound to
> > completion-help-at-point.  Are there any easy way to
> > customize Emacs not to bind '?' to completion-help-at-point?

> You can remove the binding from completion-in-region-mode-map.

Thank you.  I now have this in my .emacs.

;; To avoid '?' run completion-help-at-point in *shell* buffer.
(define-key completion-in-region-mode-map "?" nil)

---
Kenichi Handa
handa@m17n.org





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

* bug#11182: 24.0.93; In *shell* buffer, '?' can't be inserted after TAB.
  2012-04-06  3:23       ` Kenichi Handa
@ 2012-04-06  9:31         ` Eli Zaretskii
  2012-04-06 20:43           ` Drew Adams
  2012-04-07  3:58           ` Stefan Monnier
  0 siblings, 2 replies; 8+ messages in thread
From: Eli Zaretskii @ 2012-04-06  9:31 UTC (permalink / raw)
  To: Kenichi Handa; +Cc: 11182

> From: Kenichi Handa <handa@m17n.org>
> Date: Fri, 06 Apr 2012 12:23:23 +0900
> 
> In article <jwv398hk21j.fsf-monnier+emacs@gnu.org>, Stefan Monnier <monnier@iro.umontreal.ca> writes:
> 
> > > Ah, that's what "the standard completion UI" in NEWS means.
> > > Ummm, I don't like it.  What annoys me most is that it's
> > > very difficult to find when '?' is bound to
> > > completion-help-at-point.  Are there any easy way to
> > > customize Emacs not to bind '?' to completion-help-at-point?
> 
> > You can remove the binding from completion-in-region-mode-map.
> 
> Thank you.  I now have this in my .emacs.
> 
> ;; To avoid '?' run completion-help-at-point in *shell* buffer.
> (define-key completion-in-region-mode-map "?" nil)

Shouldn't Shell Mode and its derivatives remap that to M-? or some
such?  `?' is too frequent a character in command-line interfaces to
have it bound to anything other than self-insert-command, IMO.  At
least both Bash and GDB bind that function to M-?, and I think Emacs
should follow suit.





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

* bug#11182: 24.0.93; In *shell* buffer, '?' can't be inserted after TAB.
  2012-04-06  9:31         ` Eli Zaretskii
@ 2012-04-06 20:43           ` Drew Adams
  2012-04-07  3:58           ` Stefan Monnier
  1 sibling, 0 replies; 8+ messages in thread
From: Drew Adams @ 2012-04-06 20:43 UTC (permalink / raw)
  To: 'Eli Zaretskii', 'Kenichi Handa'; +Cc: 11182

> Shouldn't Shell Mode and its derivatives remap that to M-? or some
> such?  `?' is too frequent a character in command-line interfaces to
> have it bound to anything other than self-insert-command, IMO.  At
> least both Bash and GDB bind that function to M-?, and I think Emacs
> should follow suit.

FWIW - `M-?' is what Icicles uses for (minibuffer) completion help.

I think it's nuts that vanilla Emacs still uses ordinary, printing chars such as
`?' and `newline' for special minibuffer commands, instead of just inserting
them.  And even `SPC' outside of (finally!) file names.  A user is more likely
to expect `?' to self-insert than to think s?he should use `C-q ?' to insert a
`?'.

Yes, I know you've heard it before...  But glad to hear Eli in favor of `M-?'
here.






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

* bug#11182: 24.0.93; In *shell* buffer, '?' can't be inserted after TAB.
  2012-04-06  9:31         ` Eli Zaretskii
  2012-04-06 20:43           ` Drew Adams
@ 2012-04-07  3:58           ` Stefan Monnier
  1 sibling, 0 replies; 8+ messages in thread
From: Stefan Monnier @ 2012-04-07  3:58 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 11182

> Shouldn't Shell Mode and its derivatives remap that to M-? or some
> such?  `?' is too frequent a character in command-line interfaces to

Good point.  I guess completion-in-region-mode-map should use M-? rather
than ?.  Please make this change for 24.1.


        Stefan





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

end of thread, other threads:[~2012-04-07  3:58 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-05  2:04 bug#11182: 24.0.93; In *shell* buffer, '?' can't be inserted after TAB Kenichi Handa
2012-04-05 14:10 ` Stefan Monnier
2012-04-06  0:17   ` Kenichi Handa
2012-04-06  2:49     ` Stefan Monnier
2012-04-06  3:23       ` Kenichi Handa
2012-04-06  9:31         ` Eli Zaretskii
2012-04-06 20:43           ` Drew Adams
2012-04-07  3:58           ` Stefan Monnier

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).