emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-bug-tracker] bug#5524: marked as done (23.1.92; `initials' comple


From: Emacs bug Tracking System
Subject: [Emacs-bug-tracker] bug#5524: marked as done (23.1.92; `initials' completion style doesn't work as documented)
Date: Fri, 05 Feb 2010 04:25:01 +0000

Your message dated Thu, 04 Feb 2010 23:22:26 -0500
with message-id <address@hidden>
and subject line Re: bug#5524: 23.1.92; `initials' completion style doesn't 
work as documented
has caused the Emacs bug report #5524,
regarding 23.1.92; `initials' completion style doesn't work as documented
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact address@hidden
immediately.)


-- 
5524: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=5524
Emacs Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: 23.1.92; `initials' completion style doesn't work as documented Date: Thu, 04 Feb 2010 22:00:20 +0100
The docstring of the `initials' completion style (documented in
`completion-styles-alist') says:

  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

  C-x C-f /hh TAB

although there's /home/horn/.


In GNU Emacs 23.1.92.1 (x86_64-pc-linux-gnu, GTK+ Version 2.18.6)
 of 2010-02-02 on thinkpad
Windowing system distributor `The X.Org Foundation', version 11.0.10704901
configured using `configure  '--prefix=/usr' '--build=x86_64-pc-linux-gnu' 
'--host=x86_64-pc-linux-gnu' '--mandir=/usr/share/man' 
'--infodir=/usr/share/info' '--datadir=/usr/share' '--sysconfdir=/etc' 
'--localstatedir=/var/lib' '--libdir=/usr/lib64' 
'--program-suffix=-emacs-23-vcs' '--infodir=/usr/share/info/emacs-23-vcs' 
'--with-sound' '--with-x' '--with-gconf' '--without-toolkit-scroll-bars' 
'--with-gif' '--with-jpeg' '--with-png' '--with-rsvg' '--with-tiff' 
'--with-xpm' '--with-xft' '--with-libotf' '--with-m17n-flt' 
'--with-x-toolkit=gtk' '--without-hesiod' '--without-kerberos' 
'--without-kerberos5' '--with-gpm' '--with-dbus' 
'build_alias=x86_64-pc-linux-gnu' 'host_alias=x86_64-pc-linux-gnu' 
'CFLAGS=-march=core2 -O2 -pipe' 'LDFLAGS=-Wl,-z,now''

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: Emacs-Lisp

Minor modes in effect:
  rcirc-track-minor-mode: t
  paredit-mode: t
  eldoc-mode: t
  highlight-symbol-mode: t
  hi-lock-mode: t
  outline-minor-mode: t
  highlight-parentheses-mode: t
  recentf-mode: t
  icomplete-mode: t
  window-number-meta-mode: t
  window-number-mode: t
  exec-abbrev-cmd-mode: t
  global-subword-mode: t
  subword-mode: t
  savehist-mode: t
  show-paren-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
  blink-cursor-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
<right> <right> <right> <left> <left> <left> <left> 
<left> <left> <left> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <up> 
<up> <left> <left> <left> <left> <left> <return> M-1 
M-2 <down> <down> C-k M-1 SPC C-y <left> <M-backspace> 
i n i t i a l s <left> <left> <left> <left> <left> 
<left> <left> <left> <left> <left> <left> <left> <left> 
<left> <left> <left> <left> <left> <left> <left> <left> 
<left> <left> <left> <left> <left> <left> <left> <left> 
<left> <left> <left> <left> <left> ' C-e C-x C-e <return> 
<left> C-x C-e C-x C-f <backspace> <backspace> <backspace> 
<backspace> <backspace> <backspace> <backspace> <backspace> 
<backspace> <backspace> <backspace> <backspace> <backspace> 
<backspace> r p <backspace> o p <tab> <tab> <tab> <tab> 
<tab> <tab> <backspace> <backspace> <backspace> <backspace> 
<backspace> r o p <tab> <backspace> <tab> <tab> <backspace> 
<backspace> / h h r o <tab> <tab> <tab> <tab> C-g M-2 
M-1 <left> <left> <left> <left> <left> <left> <left> 
<left> <left> <left> <left> <left> <left> <left> <left> 
<left> <left> <left> <left> <left> <left> <left> <left> 
<left> <left> <left> <left> <left> <left> <left> <left> 
<left> <left> <left> <left> <left> <left> <left> <left> 
<left> C-h v <return> M-2 <tab> <tab> <return> M-1 
C-x C-f <M-backspace> <backspace> <backspace> <backspace> 
<backspace> <backspace> / o / C-g M-x l c h <tab> <tab> 
C-g C-x x l c h <tab> <backspace> <backspace> <backspace> 
<backspace> <backspace> <backspace> <backspace> <backspace> 
o r <tab> <tab> <backspace> r <tab> <tab> C-g C-x C-f 
<backspace> <backspace> <backspace> <backspace> <backspace> 
<backspace> <backspace> <backspace> <backspace> <backspace> 
<backspace> <backspace> <backspace> o <tab> <tab> <tab> 
p . o <tab> <tab> C-g <down-mouse-1> <mouse-movement> 
<mouse-movement> <drag-mouse-1> <help-echo> <help-echo> 
C-g <up> C-SPC <down> M-w C-x C-s C-x C-f <backspace> 
<backspace> <backspace> <backspace> <backspace> <backspace> 
<backspace> <backspace> <backspace> <backspace> <backspace> 
<backspace> <backspace> <backspace> <backspace> <backspace> 
/ h h <tab> <backspace> C-g M-x r e b <return>

Recent messages:
Auto-saving...done
mouse-2, RET: find variable's definition
mouse-2, RET: describe this variable
Quit [2 times]
Making completion list... [2 times]
Quit [3 times]
Mark activated
Saving file /home/horn/repos/configs/dot-emacs.el...
Wrote /home/horn/repos/configs/dot-emacs.el
Quit

Load-path shadows:
~/repos/el/org-mode/lisp/org-bbdb hides 
/usr/share/emacs/23.1.92/lisp/org/org-bbdb
~/repos/el/org-mode/lisp/org-habit hides 
/usr/share/emacs/23.1.92/lisp/org/org-habit
~/repos/el/org-mode/lisp/org-colview hides 
/usr/share/emacs/23.1.92/lisp/org/org-colview
~/repos/el/org-mode/lisp/org-footnote hides 
/usr/share/emacs/23.1.92/lisp/org/org-footnote
~/repos/el/org-mode/lisp/org-freemind hides 
/usr/share/emacs/23.1.92/lisp/org/org-freemind
~/repos/el/org-mode/lisp/org-compat hides 
/usr/share/emacs/23.1.92/lisp/org/org-compat
~/repos/el/org-mode/lisp/org-icalendar hides 
/usr/share/emacs/23.1.92/lisp/org/org-icalendar
~/repos/el/org-mode/lisp/org-clock hides 
/usr/share/emacs/23.1.92/lisp/org/org-clock
~/repos/el/org-mode/lisp/org-bibtex hides 
/usr/share/emacs/23.1.92/lisp/org/org-bibtex
~/repos/el/org-mode/lisp/org-indent hides 
/usr/share/emacs/23.1.92/lisp/org/org-indent
~/repos/el/org-mode/lisp/org-faces hides 
/usr/share/emacs/23.1.92/lisp/org/org-faces
~/repos/el/org-mode/lisp/org-timer hides 
/usr/share/emacs/23.1.92/lisp/org/org-timer
~/repos/el/org-mode/lisp/org-vm hides /usr/share/emacs/23.1.92/lisp/org/org-vm
~/repos/el/org-mode/lisp/org-list hides 
/usr/share/emacs/23.1.92/lisp/org/org-list
~/repos/el/org-mode/lisp/org-gnus hides 
/usr/share/emacs/23.1.92/lisp/org/org-gnus
~/repos/el/org-mode/lisp/org-crypt hides 
/usr/share/emacs/23.1.92/lisp/org/org-crypt
~/repos/el/org-mode/lisp/org-exp hides /usr/share/emacs/23.1.92/lisp/org/org-exp
~/repos/el/org-mode/lisp/org-protocol hides 
/usr/share/emacs/23.1.92/lisp/org/org-protocol
~/repos/el/org-mode/lisp/org-inlinetask hides 
/usr/share/emacs/23.1.92/lisp/org/org-inlinetask
~/repos/el/org-mode/lisp/org-wl hides /usr/share/emacs/23.1.92/lisp/org/org-wl
~/repos/el/org-mode/lisp/org-plot hides 
/usr/share/emacs/23.1.92/lisp/org/org-plot
~/repos/el/org-mode/lisp/org-w3m hides /usr/share/emacs/23.1.92/lisp/org/org-w3m
~/repos/el/org-mode/lisp/org-agenda hides 
/usr/share/emacs/23.1.92/lisp/org/org-agenda
~/repos/el/org-mode/lisp/org-archive hides 
/usr/share/emacs/23.1.92/lisp/org/org-archive
~/repos/el/org-mode/lisp/org-attach hides 
/usr/share/emacs/23.1.92/lisp/org/org-attach
~/repos/el/org-mode/lisp/org-latex hides 
/usr/share/emacs/23.1.92/lisp/org/org-latex
~/repos/el/org-mode/lisp/org-mhe hides /usr/share/emacs/23.1.92/lisp/org/org-mhe
~/repos/el/org-mode/lisp/org-irc hides /usr/share/emacs/23.1.92/lisp/org/org-irc
~/repos/el/org-mode/lisp/org-table hides 
/usr/share/emacs/23.1.92/lisp/org/org-table
~/repos/el/org-mode/lisp/org-info hides 
/usr/share/emacs/23.1.92/lisp/org/org-info
~/repos/el/org-mode/lisp/org-docbook hides 
/usr/share/emacs/23.1.92/lisp/org/org-docbook
~/repos/el/org-mode/lisp/org-ascii hides 
/usr/share/emacs/23.1.92/lisp/org/org-ascii
~/repos/el/org-mode/lisp/org-jsinfo hides 
/usr/share/emacs/23.1.92/lisp/org/org-jsinfo
~/repos/el/org-mode/lisp/org-id hides /usr/share/emacs/23.1.92/lisp/org/org-id
~/repos/el/org-mode/lisp/org-feed hides 
/usr/share/emacs/23.1.92/lisp/org/org-feed
~/repos/el/org-mode/lisp/org-xoxo hides 
/usr/share/emacs/23.1.92/lisp/org/org-xoxo
~/repos/el/org-mode/lisp/org-publish hides 
/usr/share/emacs/23.1.92/lisp/org/org-publish
~/repos/el/org-mode/lisp/org-exp-blocks hides 
/usr/share/emacs/23.1.92/lisp/org/org-exp-blocks
~/repos/el/org-mode/lisp/org-mew hides /usr/share/emacs/23.1.92/lisp/org/org-mew
~/repos/el/org-mode/lisp/org-mobile hides 
/usr/share/emacs/23.1.92/lisp/org/org-mobile
~/repos/el/org-mode/lisp/org-datetree hides 
/usr/share/emacs/23.1.92/lisp/org/org-datetree
~/repos/el/org-mode/lisp/org-remember hides 
/usr/share/emacs/23.1.92/lisp/org/org-remember
~/repos/el/org-mode/lisp/org-macs hides 
/usr/share/emacs/23.1.92/lisp/org/org-macs
~/repos/el/org-mode/lisp/org-mouse hides 
/usr/share/emacs/23.1.92/lisp/org/org-mouse
~/repos/el/org-mode/lisp/org-html hides 
/usr/share/emacs/23.1.92/lisp/org/org-html
~/repos/el/org-mode/lisp/org-install hides 
/usr/share/emacs/23.1.92/lisp/org/org-install
~/repos/el/org-mode/lisp/org-src hides /usr/share/emacs/23.1.92/lisp/org/org-src
~/repos/el/org-mode/lisp/org hides /usr/share/emacs/23.1.92/lisp/org/org
~/repos/el/org-mode/lisp/org-rmail hides 
/usr/share/emacs/23.1.92/lisp/org/org-rmail
~/repos/el/org-mode/lisp/org-mac-message hides 
/usr/share/emacs/23.1.92/lisp/org/org-mac-message

Features:
(shadow emacsbug debug cl-specs edebug find-func help-mode mailalias
hippie-exp multi-isearch hl-line url-cache newst-plainview newst-ticker
newst-reader newst-backend gnus-fun flow-fill bbdb-gui gnus-cite smiley
ansi-color gnus-async gnus-bcklg sort gnus-ml org-colview mule-util
cal-move view solar cal-dst holidays hol-loaddefs cal-iso gnus-topic
parse-time pop3 nnml utf-7 utf7 auth-source nnimap imap trace nndraft
nnmh nnnil gnus-agent gnus-srvr gnus-score score-mode nnvirtual nntp
gnus-cache notmuch spam spam-stat gnus-uu yenc gnus-msg epa-file epa epg
garak elim lui tracking flyspell ispell incomplete rcirc-late-fix rcirc
greqlscript-mode greql-mode tg-mode generic th-latex swank-clojure
clojure-mode slime-repl slime apropos hideshow paredit wtf cus-edit
cus-start cus-load rdictcc appt diary-lib diary-loaddefs vc-git org-w3m
org-irc org-jsinfo org-infojs org-html org-exp org-exp-blocks org-info
org-gnus org-docview org-bibtex org-bbdb org-protocol org-attach org-id
org-agenda remember org-remember org-datetree org org-footnote org-src
org-list org-faces org-compat org-macs org-install cal-menu calendar
cal-loaddefs dired-x dired-aux pcomplete em-term term ehelp electric
esh-var esh-io esh-cmd esh-ext esh-proc esh-arg eldoc esh-groups eshell
esh-util esh-module esh-mode lisppaste xml-rpc xml th-boxquote boxquote
rect highlight-symbol hi-lock footnote smtpmail bbdb-hooks bbdb-gnus
gnus-art mm-uu mml2015 epg-config mm-view smime dig gnus-sum nnoo
gnus-group gnus-undo nnmail mail-source format-spec gnus-start gnus-spec
gnus-int gnus-range message idna sendmail ecomplete mml mml-sec
password-cache mm-decode mm-bodies mm-encode gmm-utils mailheader
canlock sha1 hex-util hashcash gnus-win bbdb-snarf mail-extr rfc822
bbdb-com warnings mailabbrev info server yasnippet dropdown-list
noutline outline highlight-parentheses browse-kill-ring derived filesets
recentf tree-widget sr-speedbar speedbar sb-image ezimage dframe
icomplete anything-config compile comint ring semantic/util-modes
semantic/util semantic semantic/tag semantic/lex semantic/fw eieio
byte-opt bytecomp byte-compile mode-local cedet imenu w3m-bookmark w3m
browse-url doc-view jka-compr image-mode w3m-hist w3m-fb w3m-ems w3m-ccl
ccl w3m-favicon w3m-image w3m-proc w3m-util bookmark pp ffap dired rx
thingatpt anything woman easymenu man assoc window-number uniquify
exec-abbrev-cmd easy-mmode cl cl-19 subword saveplace savehist paren
th-private edmacro kmacro th-common mm-url gnus gnus-ems nnheader
gnus-util netrc mail-utils wid-edit url-http tls url url-proxy
url-privacy url-expand url-methods url-history mailcap url-auth
mail-parse rfc2231 rfc2047 rfc2045 qp ietf-drums time-date url-cookie
url-util url-parse url-gw url-vars mm-util mail-prsvr windmove
disp-table swank-clojure-autoloads advice help-fns advice-preload
clojure-mode-autoloads slime-repl-autoloads slime-autoloads package
reporter site-gentoo w3m-load preview-latex bbdb-autoloads bbdb
regexp-opt timezone tex-site auto-loads tooltip ediff-hook vc-hooks
lisp-float-type mwheel x-win x-dnd font-setting tool-bar dnd fontset
image fringe lisp-mode register page menu-bar rfn-eshadow timer select
scroll-bar mldrag 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 loaddefs button minibuffer faces cus-face files
text-properties overlay md5 base64 format env code-pages mule custom
widget hashtable-print-readable backquote make-network-process dbusbind
system-font-setting font-render-setting gtk x-toolkit x multi-tty emacs)




--- End Message ---
--- Begin Message --- Subject: Re: bug#5524: 23.1.92; `initials' completion style doesn't work as documented Date: Thu, 04 Feb 2010 23:22:26 -0500 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.91 (gnu/linux)
>   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



--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]