* Insufficient documentation on *how* to change SPC behaviour in minibuffer
@ 2007-07-05 18:23 Sivaram Neelakantan
2007-07-06 16:16 ` Eli Zaretskii
0 siblings, 1 reply; 8+ messages in thread
From: Sivaram Neelakantan @ 2007-07-05 18:23 UTC (permalink / raw)
To: bug-gnu-emacs
Hello,
In Emacs 22.1, the behaviour of SPC has changed to handle filenames
with spaces as is evident from the NEWS file. The information about
keymaps is not sufficient to determine what needs to be done in order
to get the old behaviour of file name completion(if it's provided for
at all).
What customization should a user do to get the old behaviour?
,----[ NEWS ]
| ** When Emacs prompts for file names, SPC no longer completes the file name.
| This is so filenames with embedded spaces could be input without the
| need to quote the space with a C-q. The underlying changes in the
| keymaps that are active in the minibuffer are described below under
| "New keymaps for typing file names".
`----
,----[ NEWS ]
| *** New keymaps for typing file names
|
| Two new keymaps, `minibuffer-local-filename-completion-map' and
| `minibuffer-local-must-match-filename-map', apply whenever
| Emacs reads a file name in the minibuffer. These key maps override
| the usual binding of SPC to `minibuffer-complete-word' (so that file
| names with embedded spaces could be typed without the need to quote
| the spaces).
`----
In GNU Emacs 22.1.1 (i386-mingw-nt5.1.2600)
of 2007-06-02 on RELEASE
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (3.4) --cflags -Ic:/gnuwin32/include'
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: ENG
locale-coding-system: cp1252
default-enable-multibyte-characters: t
Major mode: Article
Minor modes in effect:
show-paren-mode: t
icomplete-mode: t
erc-autojoin-mode: t
erc-button-mode: t
erc-ring-mode: t
erc-pcomplete-mode: t
erc-track-mode: t
erc-fill-mode: t
erc-netsplit-mode: t
erc-irccontrols-mode: t
erc-noncommands-mode: t
display-time-mode: t
delete-selection-mode: t
encoded-kbd-mode: t
tooltip-mode: t
tool-bar-mode: t
mouse-wheel-mode: t
menu-bar-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
font-lock-mode: t
blink-cursor-mode: t
unify-8859-on-encoding-mode: t
utf-translate-cjk-mode: t
auto-compression-mode: t
column-number-mode: t
line-number-mode: t
transient-mark-mode: t
Recent input:
Recent messages:
Mark saved where search started
call-interactively: Buffer is read-only: #<buffer *info*>
Quit
Type C-x 1 to remove help window.
Loading outline...done
Loading texmathp...done
Mark saved where search started [2 times]
Mark set
Making completion list...
Loading emacsbug...done
sivaram
--
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Insufficient documentation on *how* to change SPC behaviour in minibuffer
2007-07-05 18:23 Insufficient documentation on *how* to change SPC behaviour in minibuffer Sivaram Neelakantan
@ 2007-07-06 16:16 ` Eli Zaretskii
2007-07-06 18:03 ` Sivaram Neelakantan
0 siblings, 1 reply; 8+ messages in thread
From: Eli Zaretskii @ 2007-07-06 16:16 UTC (permalink / raw)
To: Sivaram Neelakantan; +Cc: bug-gnu-emacs
> From: Sivaram Neelakantan <nsivaram.net@gmail.com>
> User-Mail-Address: nsivaram.net@gmail.com
> Date: Thu, 05 Jul 2007 23:53:17 +0530
>
> In Emacs 22.1, the behaviour of SPC has changed to handle filenames
> with spaces as is evident from the NEWS file. The information about
> keymaps is not sufficient to determine what needs to be done in order
> to get the old behaviour of file name completion(if it's provided for
> at all).
>
> What customization should a user do to get the old behaviour?
> ,----[ NEWS ]
> | ** When Emacs prompts for file names, SPC no longer completes the file name.
> | This is so filenames with embedded spaces could be input without the
> | need to quote the space with a C-q. The underlying changes in the
> | keymaps that are active in the minibuffer are described below under
> | "New keymaps for typing file names".
> `----
Thank you for your report.
I added this text to the above entry:
If you want the old behavior back, put these two key bindings to your
~/.emacs init file:
(define-key minibuffer-local-filename-completion-map
" " 'minibuffer-complete-word)
(define-key minibuffer-local-must-match-filename-map
" " 'minibuffer-complete-word)
Does it give you enough information now? Did the recipe work for you?
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Insufficient documentation on *how* to change SPC behaviour in minibuffer
2007-07-06 16:16 ` Eli Zaretskii
@ 2007-07-06 18:03 ` Sivaram Neelakantan
2007-07-06 18:26 ` Insufficient documentation on *how* to change SPC behaviour inminibuffer Drew Adams
2007-07-07 9:46 ` Insufficient documentation on *how* to change SPC behaviour in minibuffer Eli Zaretskii
0 siblings, 2 replies; 8+ messages in thread
From: Sivaram Neelakantan @ 2007-07-06 18:03 UTC (permalink / raw)
To: bug-gnu-emacs
Eli Zaretskii <eliz@gnu.org> writes:
>> From: Sivaram Neelakantan <nsivaram.net@gmail.com>
>> User-Mail-Address: nsivaram.net@gmail.com
[...]
> Thank you for your report.
>
> I added this text to the above entry:
>
> If you want the old behavior back, put these two key bindings to your
> ~/.emacs init file:
>
> (define-key minibuffer-local-filename-completion-map
> " " 'minibuffer-complete-word)
> (define-key minibuffer-local-must-match-filename-map
> " " 'minibuffer-complete-word)
>
> Does it give you enough information now? Did the recipe work for you?
Many thanks. It does work as suggested with the above code snippet.
As for the documentation, well yes that would make sense. But would
it be also useful to put it under Emacs-Minibuffer-Completion Commands
section in the info manual?
Similar to the way, how Emacs recognises sentences (2 spaces vs
1aftera period) and how the manual explains how to switch from one to
the other, I think, there should be a similar explanation in the main
info manual.
sivaram
--
^ permalink raw reply [flat|nested] 8+ messages in thread
* RE: Insufficient documentation on *how* to change SPC behaviour inminibuffer
2007-07-06 18:03 ` Sivaram Neelakantan
@ 2007-07-06 18:26 ` Drew Adams
2007-07-07 9:48 ` Eli Zaretskii
2007-07-07 9:46 ` Insufficient documentation on *how* to change SPC behaviour in minibuffer Eli Zaretskii
1 sibling, 1 reply; 8+ messages in thread
From: Drew Adams @ 2007-07-06 18:26 UTC (permalink / raw)
To: bug-gnu-emacs
> > I added this text to the above entry:
> >
> > If you want the old behavior back, put these two key
> > bindings to your ~/.emacs init file:
> >
> > (define-key minibuffer-local-filename-completion-map
> > " " 'minibuffer-complete-word)
> > (define-key minibuffer-local-must-match-filename-map
> > " " 'minibuffer-complete-word)
> >
> > Does it give you enough information now? Did the recipe work for you?
>
> Many thanks. It does work as suggested with the above code snippet.
> As for the documentation, well yes that would make sense. But would
> it be also useful to put it under Emacs-Minibuffer-Completion Commands
> section in the info manual?
>
> Similar to the way, how Emacs recognises sentences (2 spaces vs
> 1aftera period) and how the manual explains how to switch from one to
> the other, I think, there should be a similar explanation in the main
> info manual.
Rather than pepper the manual with this kind of thing, I'd rather see all
such ways to obtain previous-release behavior documented in a single place.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Insufficient documentation on *how* to change SPC behaviour in minibuffer
2007-07-06 18:03 ` Sivaram Neelakantan
2007-07-06 18:26 ` Insufficient documentation on *how* to change SPC behaviour inminibuffer Drew Adams
@ 2007-07-07 9:46 ` Eli Zaretskii
1 sibling, 0 replies; 8+ messages in thread
From: Eli Zaretskii @ 2007-07-07 9:46 UTC (permalink / raw)
To: Sivaram Neelakantan; +Cc: bug-gnu-emacs
> From: Sivaram Neelakantan <nsivaram.net@gmail.com>
> Date: Fri, 06 Jul 2007 23:33:00 +0530
> User-Mail-Address: nsivaram.net@gmail.com
>
> As for the documentation, well yes that would make sense. But would
> it be also useful to put it under Emacs-Minibuffer-Completion Commands
> section in the info manual?
>
> Similar to the way, how Emacs recognises sentences (2 spaces vs
> 1aftera period) and how the manual explains how to switch from one to
> the other, I think, there should be a similar explanation in the main
> info manual.
I don't think these two situations are similar. One space after a
period that ends a sentence is a widely used convention that has its
roots in cultural differences that are outside Emacs's domain. By
contrast, the key bindings in the minibuffer prompts for file names is
(a) purely an Emacs issue, and (b) we firmly believe that most people
will be happy with the new bindings (or else we wouldn't be making
them the default).
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Insufficient documentation on *how* to change SPC behaviour inminibuffer
2007-07-06 18:26 ` Insufficient documentation on *how* to change SPC behaviour inminibuffer Drew Adams
@ 2007-07-07 9:48 ` Eli Zaretskii
2007-07-07 12:37 ` Insufficient documentation on *how* to change SPC behaviourinminibuffer Drew Adams
2007-07-07 20:47 ` Insufficient documentation on *how* to change SPC behaviour inminibuffer Richard Stallman
0 siblings, 2 replies; 8+ messages in thread
From: Eli Zaretskii @ 2007-07-07 9:48 UTC (permalink / raw)
To: Drew Adams; +Cc: bug-gnu-emacs
> From: "Drew Adams" <drew.adams@oracle.com>
> Date: Fri, 6 Jul 2007 11:26:07 -0700
>
> Rather than pepper the manual with this kind of thing, I'd rather see all
> such ways to obtain previous-release behavior documented in a single place.
There is such a place: the "Antinews" node in the manual.
^ permalink raw reply [flat|nested] 8+ messages in thread
* RE: Insufficient documentation on *how* to change SPC behaviourinminibuffer
2007-07-07 9:48 ` Eli Zaretskii
@ 2007-07-07 12:37 ` Drew Adams
2007-07-07 20:47 ` Insufficient documentation on *how* to change SPC behaviour inminibuffer Richard Stallman
1 sibling, 0 replies; 8+ messages in thread
From: Drew Adams @ 2007-07-07 12:37 UTC (permalink / raw)
To: bug-gnu-emacs
> > Rather than pepper the manual with this kind of thing, I'd
> > rather see all such ways to obtain previous-release behavior
> > documented in a single place.
>
> There is such a place: the "Antinews" node in the manual.
I agree that that should be sufficient for this.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Insufficient documentation on *how* to change SPC behaviour inminibuffer
2007-07-07 9:48 ` Eli Zaretskii
2007-07-07 12:37 ` Insufficient documentation on *how* to change SPC behaviourinminibuffer Drew Adams
@ 2007-07-07 20:47 ` Richard Stallman
1 sibling, 0 replies; 8+ messages in thread
From: Richard Stallman @ 2007-07-07 20:47 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: bug-gnu-emacs
> Rather than pepper the manual with this kind of thing, I'd rather see all
> such ways to obtain previous-release behavior documented in a single place.
There is such a place: the "Antinews" node in the manual.
The purpose of Antinews is to help people who use the new manual
with an older Emacs version.
Advice for imitating behavior of a feature in previous versions is
something entirely different. The right place for that would be next
to the documentation of that feature. Putting all those customizations
together is not particularly useful, so I think it is misguided.
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2007-07-07 20:47 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-05 18:23 Insufficient documentation on *how* to change SPC behaviour in minibuffer Sivaram Neelakantan
2007-07-06 16:16 ` Eli Zaretskii
2007-07-06 18:03 ` Sivaram Neelakantan
2007-07-06 18:26 ` Insufficient documentation on *how* to change SPC behaviour inminibuffer Drew Adams
2007-07-07 9:48 ` Eli Zaretskii
2007-07-07 12:37 ` Insufficient documentation on *how* to change SPC behaviourinminibuffer Drew Adams
2007-07-07 20:47 ` Insufficient documentation on *how* to change SPC behaviour inminibuffer Richard Stallman
2007-07-07 9:46 ` Insufficient documentation on *how* to change SPC behaviour in minibuffer Eli Zaretskii
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).