GNU bug report logs -
#8329
23.3.50; [PATCH] Get rid of one ido ugliness
Previous Next
Reported by: Leo <sdl.web <at> gmail.com>
Date: Wed, 23 Mar 2011 16:58:01 UTC
Severity: minor
Tags: patch
Found in version 23.3.50
Fixed in version 24.1
Done: Leo <sdl.web <at> gmail.com>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 8329 in the body.
You can then email your comments to 8329 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#8329
; Package
emacs
.
(Wed, 23 Mar 2011 16:58:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Leo <sdl.web <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Wed, 23 Mar 2011 16:58:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
The following patch replaces ugly completing-read form with a simpler
and cleaner read-from-minibuffer.
=== modified file 'lisp/ido.el'
--- lisp/ido.el 2011-03-21 17:48:36 +0000
+++ lisp/ido.el 2011-03-23 16:47:26 +0000
@@ -1964,17 +1964,9 @@
(ido-set-matches)
(if (and ido-matches (eq ido-try-merged-list 'auto))
(setq ido-try-merged-list t))
- (let
- ((minibuffer-local-completion-map
- (if (memq ido-cur-item '(file dir))
- minibuffer-local-completion-map
- ido-completion-map))
- (minibuffer-local-filename-completion-map
- (if (memq ido-cur-item '(file dir))
- ido-completion-map
- minibuffer-local-filename-completion-map))
- (max-mini-window-height (or ido-max-window-height
- (and (boundp 'max-mini-window-height) max-mini-window-height)))
+ (let ((max-mini-window-height (or ido-max-window-height
+ (and (boundp 'max-mini-window-height)
+ max-mini-window-height)))
(ido-completing-read t)
(ido-require-match require-match)
(ido-use-mycompletion-depth (1+ (minibuffer-depth)))
@@ -1985,12 +1977,11 @@
(setq ido-exit nil)
(setq ido-final-text
(catch 'ido
- (completing-read-default
- (ido-make-prompt item prompt)
- '(("dummy" . 1)) nil nil ; table predicate require-match
- (prog1 ido-text-init (setq ido-text-init nil)) ;initial-contents
- history))))
- (ido-trace "completing-read" ido-final-text)
+ (read-from-minibuffer (ido-make-prompt item prompt)
+ (prog1 ido-text-init
+ (setq ido-text-init nil))
+ ido-completion-map nil history))))
+ (ido-trace "read-from-minibuffer" ido-final-text)
(if (get-buffer ido-completion-buffer)
(kill-buffer ido-completion-buffer))
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#8329
; Package
emacs
.
(Wed, 23 Mar 2011 20:29:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 8329 <at> debbugs.gnu.org (full text, mbox):
> The following patch replaces ugly completing-read form with a simpler
> and cleaner read-from-minibuffer.
Kim, any opinion?
Stefan
> === modified file 'lisp/ido.el'
> --- lisp/ido.el 2011-03-21 17:48:36 +0000
> +++ lisp/ido.el 2011-03-23 16:47:26 +0000
> @@ -1964,17 +1964,9 @@
> (ido-set-matches)
> (if (and ido-matches (eq ido-try-merged-list 'auto))
> (setq ido-try-merged-list t))
> - (let
> - ((minibuffer-local-completion-map
> - (if (memq ido-cur-item '(file dir))
> - minibuffer-local-completion-map
> - ido-completion-map))
> - (minibuffer-local-filename-completion-map
> - (if (memq ido-cur-item '(file dir))
> - ido-completion-map
> - minibuffer-local-filename-completion-map))
> - (max-mini-window-height (or ido-max-window-height
> - (and (boundp 'max-mini-window-height) max-mini-window-height)))
> + (let ((max-mini-window-height (or ido-max-window-height
> + (and (boundp 'max-mini-window-height)
> + max-mini-window-height)))
> (ido-completing-read t)
> (ido-require-match require-match)
> (ido-use-mycompletion-depth (1+ (minibuffer-depth)))
> @@ -1985,12 +1977,11 @@
> (setq ido-exit nil)
> (setq ido-final-text
> (catch 'ido
> - (completing-read-default
> - (ido-make-prompt item prompt)
> - '(("dummy" . 1)) nil nil ; table predicate require-match
> - (prog1 ido-text-init (setq ido-text-init nil)) ;initial-contents
> - history))))
> - (ido-trace "completing-read" ido-final-text)
> + (read-from-minibuffer (ido-make-prompt item prompt)
> + (prog1 ido-text-init
> + (setq ido-text-init nil))
> + ido-completion-map nil history))))
> + (ido-trace "read-from-minibuffer" ido-final-text)
> (if (get-buffer ido-completion-buffer)
> (kill-buffer ido-completion-buffer))
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#8329
; Package
emacs
.
(Thu, 24 Mar 2011 14:35:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 8329 <at> debbugs.gnu.org (full text, mbox):
On 2011-03-24 04:27 +0800, Stefan Monnier wrote:
>> The following patch replaces ugly completing-read form with a simpler
>> and cleaner read-from-minibuffer.
>
> Kim, any opinion?
Please also review the diff hunk:
@@ -4590,17 +4581,13 @@ (defun ido-exhibit ()
;; Insert the match-status information:
(ido-set-common-completion)
- (let ((inf (ido-completions
- contents
- minibuffer-completion-table
- minibuffer-completion-predicate
- (not minibuffer-completion-confirm))))
+ (let ((inf (ido-completions contents)))
(setq ido-show-confirm-message nil)
(ido-trace "inf" inf)
(insert inf))
))))
-(defun ido-completions (name candidates predicate require-match)
+(defun ido-completions (name)
;; Return the string that is displayed after the user's text.
;; Modified from `icomplete-completions'.
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#8329
; Package
emacs
.
(Fri, 25 Mar 2011 00:50:03 GMT)
Full text and
rfc822 format available.
Message #14 received at 8329 <at> debbugs.gnu.org (full text, mbox):
I have installed the patch in trunk for wider testing. I will leave this
bug open for a few more days.
Reply sent
to
Leo <sdl.web <at> gmail.com>
:
You have taken responsibility.
(Sun, 27 Mar 2011 01:29:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Leo <sdl.web <at> gmail.com>
:
bug acknowledged by developer.
(Sun, 27 Mar 2011 01:29:02 GMT)
Full text and
rfc822 format available.
Message #19 received at 8329-done <at> debbugs.gnu.org (full text, mbox):
Version: 24.1
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sun, 24 Apr 2011 11:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 14 years and 119 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.