From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Tassilo Horn <tassilo@member.fsf.org>
Subject: bug#5524: 23.1.92; `initials' completion style doesn't work as documented
Date: Thu, 04 Feb 2010 23:22:26 -0500 [thread overview]
Message-ID: <jwvvdecpb4b.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <87wrysogwr.fsf@thinkpad.tsdh.de> (Tassilo Horn's message of "Thu, 04 Feb 2010 22:00:20 +0100")
> Completion of acronyms and initialisms.
> E.g. can complete M-x lch to list-command-history
> and C-x C-f ~/sew to ~/src/emacs/work.
> While the M-x example works, the find-file example doesn't (with emacs
> -Q). For example, I have ~/repos/org/uni.org, but
> C-x C-f ~/rou TAB
> says [no match]. Same for
Thanks for using this feature ;-)
Indeed, it broke recently, but the patch below should make it work
again,
Stefan
=== modified file 'lisp/minibuffer.el'
--- lisp/minibuffer.el 2010-01-13 08:35:10 +0000
+++ lisp/minibuffer.el 2010-02-05 04:17:38 +0000
@@ -2063,9 +2063,12 @@
;; Complete /ums to /usr/monnier/src or lch to list-command-history.
(defun completion-initials-expand (str table pred)
- (unless (or (zerop (length str))
- (string-match completion-pcm--delim-wild-regex str))
(let ((bounds (completion-boundaries str table pred "")))
+ (unless (or (zerop (length str))
+ ;; Only check within the boundaries, since the
+ ;; boundary char (e.g. /) might be in delim-regexp.
+ (string-match completion-pcm--delim-wild-regex str
+ (car bounds)))
(if (zerop (car bounds))
(mapconcat 'string str "-")
;; If there's a boundary, it's trickier. The main use-case
prev parent reply other threads:[~2010-02-05 4:22 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-04 21:00 bug#5524: 23.1.92; `initials' completion style doesn't work as documented Tassilo Horn
2010-02-05 4:22 ` Stefan Monnier [this message]
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=jwvvdecpb4b.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=tassilo@member.fsf.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.