* bug#19848: Minibuffer completion does not work with ECB package? [not found] <54DB609F.5050405@alice.it> @ 2015-02-12 20:18 ` Angelo Graziosi 2016-12-11 21:57 ` Thorsten Bonow 0 siblings, 1 reply; 6+ messages in thread From: Angelo Graziosi @ 2015-02-12 20:18 UTC (permalink / raw) To: 19848 (Following Stefan's suggestion: http://lists.gnu.org/archive/html/emacs-devel/2015-02/msg00790.html) It seems that minibuffer completion does not work properly if ECB package is installed (from MELPA, with : Options | Manage Emacs Packages), and active. For example, if I want to strip the trailing withe spaces (M-x delete-trailing-whitespace), I try M-x del<TAB> In the minibuffer I get Click on a completion to select it. In this buffer, type RET to select the completion near point. Possible completions are: delete-backward-char delete-blank-lines [...] but at this point, if I click on 'delete-trailing-whitespace', I get Minibuffer is not active for completion If I try to exit with C-G, it print 'Quit', but does not exit. In short, whatever I do I cannot exit minibuffer if not quitting Emacs. In the above, if I change 'M-x del<TAB>' with M-x dele<TAB> the completion works, M-x delete- and with few other tabs I can complete the command. I can reproduce this behavior with this minimal init.el file in ~/.emacs.d: $ cat init.el ;; ;; ECB : Emacs Code browser setup ;; (add-to-list 'load-path "~/.emacs.d/elpa/ecb-20140215.114") (require 'ecb) ;; So that ECB is activated at Emacs startup (setq ecb-auto-activate t) ;; This is suggested here: ;; http://www.patrickmin.com/linux/tip.php?name=emacs_ecb_startup (setq ecb-tip-of-the-day nil) (custom-set-variables '(ecb-options-version "2.40")) Maybe the issue is in ECB, so I flagged this just for completeness. TIA, Angelo. ^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#19848: Minibuffer completion does not work with ECB package? 2015-02-12 20:18 ` bug#19848: Minibuffer completion does not work with ECB package? Angelo Graziosi @ 2016-12-11 21:57 ` Thorsten Bonow 2019-11-01 23:35 ` Stefan Kangas 0 siblings, 1 reply; 6+ messages in thread From: Thorsten Bonow @ 2016-12-11 21:57 UTC (permalink / raw) To: 19848 > It seems that minibuffer completion does not work properly if ECB > package is installed (from MELPA, with : Options | Manage Emacs > Packages), and active. > For example, if I want to strip the trailing withe spaces (M-x > delete-trailing-whitespace), I try > M-x del<TAB> > In the minibuffer I get > Click on a completion to select it. > In this buffer, type RET to select the completion near point. > Possible completions are: > delete-backward-char delete-blank-lines > [...] > but at this point, if I click on 'delete-trailing-whitespace', I get > Minibuffer is not active for completion > If I try to exit with C-G, it print 'Quit', but does not exit. In short, > whatever I do I cannot exit minibuffer if not quitting Emacs. Hi, I don't think it's an Emacs bug. I think ECB chokes on the Emacs 25 version of `minibuffer-completion-help' from "minibuffer.el". Version 25 of `minibuffer-completion-help' now calls `display-buffer-at-bottom' which appears not to be adapted to the ECB layout. (ECB divides its frame into special ECB windows on the left or right side of the frame and one main "edit-area". By advising the window functions like `display-buffer', the ECB layout is left undisturbed; window functions only act on the "edit-area". Since `display-buffer-at-bottom' is not advised, this now fails with Emacs 25.) As a workaround till this is fixed in ECB I wrote an advice for `display-buffer-at-bottom', which overrides this defun in the ECB frame and calls 'display-buffer-use-some-window' instead. A call to `display-buffer-use-some-window' in other frames will call the unmodified defun. The Completion buffer takes up the whole "edit-area", but selecting a completion works for me now. Toto (defun display-buffer-at-bottom--display-buffer-at-bottom-around (orig-fun &rest args) "Bugfix for ECB: cannot use `display-buffer-at-bottom', call `display-buffer-use-some-window' instead in ECB frame." (if (and ecb-minor-mode (equal (selected-frame) ecb-frame)) (apply 'display-buffer-use-some-window args) (apply orig-fun args))) (advice-add 'display-buffer-at-bottom :around #'display-buffer-at-bottom--display-buffer-at-bottom-around) ^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#19848: Minibuffer completion does not work with ECB package? 2016-12-11 21:57 ` Thorsten Bonow @ 2019-11-01 23:35 ` Stefan Kangas 2019-11-29 13:09 ` Stefan Kangas 0 siblings, 1 reply; 6+ messages in thread From: Stefan Kangas @ 2019-11-01 23:35 UTC (permalink / raw) To: Thorsten Bonow; +Cc: 19848 Thorsten Bonow <thorsten.bonow@withouthat.org> writes: >> It seems that minibuffer completion does not work properly if ECB >> package is installed (from MELPA, with : Options | Manage Emacs >> Packages), and active. > >> For example, if I want to strip the trailing withe spaces (M-x >> delete-trailing-whitespace), I try > >> M-x del<TAB> > >> In the minibuffer I get > >> Click on a completion to select it. >> In this buffer, type RET to select the completion near point. > >> Possible completions are: >> delete-backward-char delete-blank-lines >> [...] > >> but at this point, if I click on 'delete-trailing-whitespace', I get > >> Minibuffer is not active for completion > >> If I try to exit with C-G, it print 'Quit', but does not exit. In short, >> whatever I do I cannot exit minibuffer if not quitting Emacs. > > Hi, > > I don't think it's an Emacs bug. I think ECB chokes on the Emacs 25 > version of `minibuffer-completion-help' from "minibuffer.el". The last message here suggests that this is not an Emacs bugs. Does anyone disagree with that? Best regards, Stefan Kangas ^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#19848: Minibuffer completion does not work with ECB package? 2019-11-01 23:35 ` Stefan Kangas @ 2019-11-29 13:09 ` Stefan Kangas 2020-01-15 5:34 ` Stefan Kangas 2020-01-15 5:56 ` Stefan Kangas 0 siblings, 2 replies; 6+ messages in thread From: Stefan Kangas @ 2019-11-29 13:09 UTC (permalink / raw) To: Thorsten Bonow; +Cc: 19848 Stefan Kangas <stefan@marxist.se> writes: >> I don't think it's an Emacs bug. I think ECB chokes on the Emacs 25 >> version of `minibuffer-completion-help' from "minibuffer.el". > > The last message here suggests that this is not an Emacs bug. Does > anyone disagree with that? More information was requested, but none was given within 4 weeks, so I'm closing this bug. If this is still an issue, please reply to this email (use "Reply to all" in your email client) and we can reopen the bug report. Best regards, Stefan Kangas ^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#19848: Minibuffer completion does not work with ECB package? 2019-11-29 13:09 ` Stefan Kangas @ 2020-01-15 5:34 ` Stefan Kangas 2020-01-15 5:56 ` Stefan Kangas 1 sibling, 0 replies; 6+ messages in thread From: Stefan Kangas @ 2020-01-15 5:34 UTC (permalink / raw) To: Thorsten Bonow; +Cc: 19848-done Stefan Kangas <stefan@marxist.se> writes: > Stefan Kangas <stefan@marxist.se> writes: > >>> I don't think it's an Emacs bug. I think ECB chokes on the Emacs 25 >>> version of `minibuffer-completion-help' from "minibuffer.el". >> >> The last message here suggests that this is not an Emacs bug. Does >> anyone disagree with that? > > More information was requested, but none was given within 4 weeks, so > I'm closing this bug. If this is still an issue, please reply to this > email (use "Reply to all" in your email client) and we can reopen the > bug report. I missed to actually close this bug. Closing it now. Best regards, Stefan Kangas ^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#19848: Minibuffer completion does not work with ECB package? 2019-11-29 13:09 ` Stefan Kangas 2020-01-15 5:34 ` Stefan Kangas @ 2020-01-15 5:56 ` Stefan Kangas 1 sibling, 0 replies; 6+ messages in thread From: Stefan Kangas @ 2020-01-15 5:56 UTC (permalink / raw) To: 19848-done Stefan Kangas <stefan@marxist.se> writes: > Stefan Kangas <stefan@marxist.se> writes: > >>> I don't think it's an Emacs bug. I think ECB chokes on the Emacs 25 >>> version of `minibuffer-completion-help' from "minibuffer.el". >> >> The last message here suggests that this is not an Emacs bug. Does >> anyone disagree with that? > > More information was requested, but none was given within 4 weeks, so > I'm closing this bug. If this is still an issue, please reply to this > email (use "Reply to all" in your email client) and we can reopen the > bug report. It seems this was left open for some reason; closing now. Best regards, Stefan Kangas ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2020-01-15 5:56 UTC | newest] Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- [not found] <54DB609F.5050405@alice.it> 2015-02-12 20:18 ` bug#19848: Minibuffer completion does not work with ECB package? Angelo Graziosi 2016-12-11 21:57 ` Thorsten Bonow 2019-11-01 23:35 ` Stefan Kangas 2019-11-29 13:09 ` Stefan Kangas 2020-01-15 5:34 ` Stefan Kangas 2020-01-15 5:56 ` Stefan Kangas
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).