🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.bug
Article #100000

Re: command completion bug

#100000
From: Kyle Jones
Date: Tue, 20 Feb 1990 16:14
24 lines
1526 bytes
Steve Tynor writes:
 > Perhaps this is just a philosophical bug (i.e. maybe it's a feature, not a
 > bug):
 > 
 > "M-x tex<SPACE>" expands to "tex-" implying that there are no commands that
 > start with "tex" not followed by a hyphen. In fact, there are several:
 > 
 > 	tex-mode			   texinfo-format-buffer
 > 	texinfo-format-region		   texinfo-mode
 > 	text-mode
 > 
 > Are hyphens treated specially in the completion code? Why? Shouldn't the
 > completor have offered a completion list (as it does if I type
 > "M-x texi<SPACE><SPACE>" ???

This is the quirky behavior of minibuffer-complete-word.  The solution
is to either use TAB for completion (minibuffer-complete) or bind
minibuffer-complete to SPC by putting these lines in your .emacs file:

  (define-key minibuffer-local-completion-map " " 'minibuffer-complete)
  (define-key minibuffer-local-must-match-map " " 'minibuffer-complete)

This still doesn't explain WHY minibuffer-complete-word behaves as it
does.
Technical Details
Message-ID: <1990Feb20.161412.3872@talos.pm.com>
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!samsung!brutus.cs.uiuc.edu!apple!rutgers!mcnc!rti!talos!kjones
References: <6148@hydra.gatech.EDU>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fb2f1,bc130d89896599ad
X-Google-Attributes: gidfb2f1,public
X-Google-ArrivalTime: 1990-02-20 12:31:16 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!samsung!brutus.cs.uiuc.edu!apple!rutgers!mcnc!rti!talos!kjones
From: kjones@talos.pm.com (Kyle Jones)
Newsgroups: gnu.emacs.bug
Subject: Re: command completion bug
Message-ID: <1990Feb20.161412.3872@talos.pm.com>
Date: 20 Feb 90 16:14:12 GMT
References: <6148@hydra.gatech.EDU>
Lines: 24
Posted: Tue Feb 20 17:14:12 1990