From: Andreas Politz <politza@hochschule-trier.de>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: 17559@debbugs.gnu.org
Subject: bug#17559: 24.3.50; Partial completion does not complete underscore delimited input
Date: Fri, 23 May 2014 20:19:14 +0200 [thread overview]
Message-ID: <87bnuo8ijh.fsf@hochschule-trier.de> (raw)
In-Reply-To: <jwvwqdc5ws2.fsf-monnier+emacsbugs@gnu.org> (Stefan Monnier's message of "Fri, 23 May 2014 11:47:20 -0400")
[-- Attachment #1: Type: text/plain, Size: 130 bytes --]
Stefan Monnier <monnier@iro.umontreal.ca> writes:
> severity 17559 wishlist
Would something like the following be sufficient ?
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: vc.diff --]
[-- Type: text/x-diff, Size: 1323 bytes --]
=== modified file 'lisp/minibuffer.el'
*** lisp/minibuffer.el 2013-10-04 02:12:16 +0000
--- lisp/minibuffer.el 2014-05-23 18:14:44 +0000
***************
*** 3187,3193 ****
(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
;; we consider here is file-name completion. We'd like
;; to expand ~/eee to ~/e/e/e and /eee to /e/e/e.
--- 3187,3200 ----
(string-match completion-pcm--delim-wild-regex str
(car bounds)))
(if (zerop (car bounds))
! (let ((separator
! (or (completion-metadata-get
! (completion-metadata str table pred)
! 'completion-initials-separator)
! (plist-get completion-extra-properties
! :completion-initials-separator)
! "-")))
! (mapconcat 'string str separator))
;; If there's a boundary, it's trickier. The main use-case
;; we consider here is file-name completion. We'd like
;; to expand ~/eee to ~/e/e/e and /eee to /e/e/e.
[-- Attachment #3: Type: text/plain, Size: 115 bytes --]
This appears to work, but I have little clue about the underlying
partial completion matching algorithm.
Andreas
next prev parent reply other threads:[~2014-05-23 18:19 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-23 14:47 bug#17559: 24.3.50; Partial completion does not complete underscore delimited input Andreas Politz
2014-05-23 15:47 ` Stefan Monnier
2014-05-23 17:57 ` Andreas Politz
2014-05-23 18:19 ` Andreas Politz [this message]
2014-06-19 21:41 ` Stefan Monnier
2016-08-31 19:27 ` Andreas Politz
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87bnuo8ijh.fsf@hochschule-trier.de \
--to=politza@hochschule-trier.de \
--cc=17559@debbugs.gnu.org \
--cc=monnier@iro.umontreal.ca \
/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 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).