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

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

bug#163: marked as done (HEAD: Bug in simple.el/minibuffer.el causing d


From: Emacs bug Tracking System
Subject: bug#163: marked as done (HEAD: Bug in simple.el/minibuffer.el causing display-completion-list to delete not only word to be completed but everything in file before it)
Date: Thu, 14 Aug 2008 17:25:05 -0700

Your message dated Thu, 14 Aug 2008 20:16:05 -0400
with message-id <87ljyzuo8q.fsf@stupidchicken.com>
and subject line Re: 23.0.60; lisp-complete-symbol erases extra text
has caused the Emacs bug report #163,
regarding HEAD: Bug in simple.el/minibuffer.el causing display-completion-list 
to delete not only word to be completed but everything in file before it
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 don@donarmstrong.com
immediately.)


-- 
163: http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=163
Emacs Bug Tracking System
Contact don@donarmstrong.com with problems
--- Begin Message --- Subject: HEAD: Bug in simple.el/minibuffer.el causing display-completion-list to delete not only word to be completed but everything in file before it Date: Mon, 28 Apr 2008 14:22:25 +0200
Problem:
In current HEAD display-completion-list deletes not only word to be
completed but everything in file before it.

example:
(defun my-complete-test ()
  (interactive)
  (with-output-to-temp-buffer "*Completions*"
    (display-completion-list
       '("test1" "test2" "test345")
       "test")))

and call that function in a buffer on the word "test" (M-x
my-complete-test) with some text preceeding "test". deletes everything
before word "test" instead of just replacing it.

This also happens when using the complete-tag function :(.

My interpretation of the problem :).

minibuffer.el: display-completion-list
 (set (make-local-variable 'completion-base-size) (or (cdr last) 0))
sets completion-base-size to 0
which causes everything to be deleted before the word to be completed.

the problem
seems to be related to completion-setup-function in simple.el checking
for completion-base-size where i believe it should check for
completion-all-completions-with-base-size
is it possible that it should read:

Index: lisp/simple.el
===================================================================
RCS file: /sources/emacs/emacs/lisp/simple.el,v
retrieving revision 1.924
diff -r1.924 simple.el
5527c5527
<       (unless completion-base-size
---
>       (unless completion-all-completions-with-base-size

after applying that patch completion works for me.




--- End Message ---
--- Begin Message --- Subject: Re: 23.0.60; lisp-complete-symbol erases extra text Date: Thu, 14 Aug 2008 20:16:05 -0400
I've checked in a fix for the lisp-complete-symbol erasing buffer text
problem.


--- End Message ---

reply via email to

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