unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Re: partial-completion-mode and mouse selection
@ 2007-03-22 16:48 A Soare
  2007-03-22 21:56 ` Glenn Morris
  0 siblings, 1 reply; 8+ messages in thread
From: A Soare @ 2007-03-22 16:48 UTC (permalink / raw)
  To: Emacs   Dev  [emacs-devel]

 1. partial completion mode started.

 2. M-:

 Eval: (n-f <M-TAB>

 Select using left mouse button one choice.

Maybe this bug has been already solved by a patch from the date of 10. I did not compiled Emacs yet, as I promised yesterday, in order to check another bug that I reported.

I compile it now.
####################################

I recompiled it 1 minute ago and this is still a bug.

^ permalink raw reply	[flat|nested] 8+ messages in thread
* Re: partial-completion-mode and mouse selection
@ 2007-03-23 12:57 A Soare
  0 siblings, 0 replies; 8+ messages in thread
From: A Soare @ 2007-03-23 12:57 UTC (permalink / raw)
  To: Glenn Morris; +Cc: Emacs   Dev  [emacs-devel]

> >  1. partial completion mode started.
> >
> >  2. M-:
> >
> >  Eval: (n-f <M-TAB>
> >
> >  Select using left mouse button one choice.
> 
> This bug report is still somewhat vague, but I see your point.
> 
> Please test how the following patch affects partial completion in
> general.
> 
> 
> *** complete.el	21 Mar 2007 19:23:12 -0000	1.67
> --- complete.el	22 Mar 2007 21:53:28 -0000
> ***************
> *** 743,755 ****
>   			(and completion-auto-help
>   			     (eq last-command this-command))
>   			(eq mode 'help))
>   		    (with-output-to-temp-buffer "*Completions*"
>   		      (display-completion-list (sort helpposs 'string-lessp))
>   		      (with-current-buffer standard-output
>   			;; Record which part of the buffer we are completing
>   			;; so that choosing a completion from the list
>   			;; knows how much old text to replace.
> ! 			(setq completion-base-size dirlength)))
>   		  (PC-temp-minibuffer-message " [Next char not unique]"))
>   		nil)))))
>   
> --- 743,758 ----
>   			(and completion-auto-help
>   			     (eq last-command this-command))
>   			(eq mode 'help))
> +                     (let ((width (minibuffer-prompt-width)))
>                       (with-output-to-temp-buffer "*Completions*"
>                         (display-completion-list (sort helpposs 'string-lessp))
>                         (with-current-buffer standard-output
>                           ;; Record which part of the buffer we are completing
>                           ;; so that choosing a completion from the list
>                           ;; knows how much old text to replace.
> !                         (setq completion-base-size (if dirname
> !                                                        dirlength
> !                                                      (- beg 1 width))))))
>   		  (PC-temp-minibuffer-message " [Next char not unique]"))
>   		nil)))))
>   
> ***************
> *** 799,804 ****
> --- 802,808 ----
>   	       (setq quit-flag nil
>   		     unread-command-events '(7))))))))
>   
> + (defvar PC-lisp-complete-end nil)
>   
>   (defun PC-lisp-complete-symbol ()
>     "Perform completion on Lisp symbol preceding point.
> ***************
> *** 825,831 ****
>   			(or (boundp sym) (fboundp sym)
>   			    (symbol-plist sym))))))
>   	 (PC-not-minibuffer t))
> !     (PC-do-completion nil beg end)))
>   
>   (defun PC-complete-as-file-name ()
>      "Perform completion on file names preceding point.
> --- 829,838 ----
>   			(or (boundp sym) (fboundp sym)
>   			    (symbol-plist sym))))))
>   	 (PC-not-minibuffer t))
> !     (if (equal last-command 'PC-lisp-complete-symbol)
> !         (PC-do-completion nil beg PC-lisp-complete-end)
> !       (setq PC-lisp-complete-end (point-marker))
> !       (PC-do-completion nil beg end))))
>   
>   (defun PC-complete-as-file-name ()
>      "Perform completion on file names preceding point.
> 
> 
> 


I have just installed to me and checked this patch on a few examples, and it works well for them.

So it seems to be good for the bug reported.

Alin Soare.

^ permalink raw reply	[flat|nested] 8+ messages in thread
* Re: partial-completion-mode and mouse selection
@ 2007-03-23 10:15 A Soare
  0 siblings, 0 replies; 8+ messages in thread
From: A Soare @ 2007-03-23 10:15 UTC (permalink / raw)
  To: Glenn Morris; +Cc: Emacs   Dev  [emacs-devel]

> >  1. partial completion mode started.
> >
> >  2. M-:
> >
> >  Eval: (n-f <M-TAB>
> >
> >  Select using left mouse button one choice.
> 
> This bug report is still somewhat vague, but I see your point.
> 
> Please test how the following patch affects partial completion in
> general.

Good. Today I will test it.

Thanks.

^ permalink raw reply	[flat|nested] 8+ messages in thread
* partial-completion-mode and mouse selection
@ 2007-03-22 16:29 A Soare
  0 siblings, 0 replies; 8+ messages in thread
From: A Soare @ 2007-03-22 16:29 UTC (permalink / raw)
  To: Emacs   Dev  [emacs-devel]

 1. partial completion mode started.

 2. M-:

 Eval: (n-f <M-TAB>

 Select using left mouse button one choice.

Maybe this bug has been already solved by a patch from the date of 10. I did not compiled Emacs yet, as I promised yesterday, in order to check another bug that I reported.

I compile it now.

^ permalink raw reply	[flat|nested] 8+ messages in thread
* partial-completion-mode and mouse selection
@ 2007-03-22 16:12 A Soare
  0 siblings, 0 replies; 8+ messages in thread
From: A Soare @ 2007-03-22 16:12 UTC (permalink / raw)
  To: Emacs   Dev  [emacs-devel]

1. partial completion mode started.

2. M-:

Eval: (n-f <M-TAB>

Select using left mouse button one choice.

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2007-03-27  3:16 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-22 16:48 partial-completion-mode and mouse selection A Soare
2007-03-22 21:56 ` Glenn Morris
2007-03-23 16:48   ` Stefan Monnier
2007-03-27  3:16     ` Glenn Morris
  -- strict thread matches above, loose matches on Subject: below --
2007-03-23 12:57 A Soare
2007-03-23 10:15 A Soare
2007-03-22 16:29 A Soare
2007-03-22 16:12 A Soare

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).