* Re: dabbrev-hover.el v. 0.1 [not found] <87oeolvjyw.fsf@gnufans.net> @ 2004-05-20 12:28 ` Vagn Johansen 2004-05-20 15:11 ` Enila Nero ` (3 more replies) 0 siblings, 4 replies; 15+ messages in thread From: Vagn Johansen @ 2004-05-20 12:28 UTC (permalink / raw) Hi When I tried your dabbrev-hover code I had complety forgotten that Emacs 21.3 does not support tooltips on MS Windows. I got it "working" by replacing the two calls to tooltip-show to vj-tooltip-show: (defun vj-tooltip-show (str) (interactive) (setq header-line-format (replace-regexp-in-string "\n" ", " str))) Maybe you could detect if tooltip is possible and the fallback to my function. It would be nice with some cleanup so that header-line-format is set to "" when there are no dynamic expansions possible. Is it suppossed to show only one suggestion? I would like to use dabbrev-expand with a prefix argument. This would make the mode even better. I also think i would prefer if it did not fiddle with the RET keybinding (customizable?). -- Vagn Johansen ^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: dabbrev-hover.el v. 0.1 2004-05-20 12:28 ` dabbrev-hover.el v. 0.1 Vagn Johansen @ 2004-05-20 15:11 ` Enila Nero 2004-05-20 15:46 ` Vagn Johansen 2004-06-13 5:42 ` Daniel LaBell 2004-05-20 15:21 ` Enila Nero ` (2 subsequent siblings) 3 siblings, 2 replies; 15+ messages in thread From: Enila Nero @ 2004-05-20 15:11 UTC (permalink / raw) Vagn Johansen <vjo@mail.tele.dk> writes: [...] > I also think i would prefer if it did not fiddle with the RET keybinding > (customizable?). [...] Being in effect while in the minibuffer with the RET keybinding is a bad recipe. Is it needed at all in the minibuffer? Enila ^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: dabbrev-hover.el v. 0.1 2004-05-20 15:11 ` Enila Nero @ 2004-05-20 15:46 ` Vagn Johansen 2004-05-20 17:02 ` Kevin Rodgers 2004-05-20 19:11 ` Jason Rumney 2004-06-13 5:42 ` Daniel LaBell 1 sibling, 2 replies; 15+ messages in thread From: Vagn Johansen @ 2004-05-20 15:46 UTC (permalink / raw) Enila Nero <geortal@yahoo.com> writes: > Vagn Johansen writes: > [...] >> I also think i would prefer if it did not fiddle with the RET keybinding >> (customizable?). > [...] > > Being in effect while in the minibuffer with the RET keybinding is a > bad recipe. Yes, I quickly ran into problems in Info mode. I pressed i (for Info-index), typed something and pressed RET. Expansion happened when I did not want it too. However the second t in dabbrev-hover-install is responsible for changing the RET binding, so it could be disabled: (dabbrev-hover-install t nil) ; first t means install globally I wonder if dh-complete *must* be used. dabbrev-expand seems work to just as well and I already have it bound to a convenient key. > Is it needed at all in the minibuffer? The tooltip feature? I don't think so. I rarely use dabbrev-expand / dabbrev-complete in the minibuffer. -- Vagn Johansen ^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: dabbrev-hover.el v. 0.1 2004-05-20 15:46 ` Vagn Johansen @ 2004-05-20 17:02 ` Kevin Rodgers 2004-05-20 19:11 ` Jason Rumney 1 sibling, 0 replies; 15+ messages in thread From: Kevin Rodgers @ 2004-05-20 17:02 UTC (permalink / raw) Vagn Johansen wrote: > Enila Nero <geortal@yahoo.com> writes: >>Vagn Johansen writes: >>>I also think i would prefer if it did not fiddle with the RET keybinding >>>(customizable?). >> >>Being in effect while in the minibuffer with the RET keybinding is a >>bad recipe. > > Yes, I quickly ran into problems in Info mode. I pressed i (for > Info-index), typed something and pressed RET. Expansion happened when I > did not want it too. > > However the second t in dabbrev-hover-install is responsible for changing > the RET binding, so it could be disabled: > > (dabbrev-hover-install t nil) ; first t means install globally Another alternative: (define-key dh-fancy-doing-mode-map (kbd "RET") nil) Better yet, make the whole package smart about the minibuffer. And finally, correct instances of '(keymap) with (make-sparse-keymap). -- Kevin Rodgers ^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: dabbrev-hover.el v. 0.1 2004-05-20 15:46 ` Vagn Johansen 2004-05-20 17:02 ` Kevin Rodgers @ 2004-05-20 19:11 ` Jason Rumney 2004-05-20 22:56 ` Vagn Johansen 1 sibling, 1 reply; 15+ messages in thread From: Jason Rumney @ 2004-05-20 19:11 UTC (permalink / raw) Vagn Johansen <gonz808@hotmail.com> writes: >> Is it needed at all in the minibuffer? > > The tooltip feature? I don't think so. I rarely use dabbrev-expand / > dabbrev-complete in the minibuffer. If you don't need the tooltip feature in the minibuffer, then why the need to redefine tooltip-show? The default implementation should use the minibuffer if tooltips are not supported. ^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: dabbrev-hover.el v. 0.1 2004-05-20 19:11 ` Jason Rumney @ 2004-05-20 22:56 ` Vagn Johansen 0 siblings, 0 replies; 15+ messages in thread From: Vagn Johansen @ 2004-05-20 22:56 UTC (permalink / raw) jasonr (Jason Rumney) @ f2s.com writes: > Vagn Johansen <gonz808@hotmail.com> writes: > >>> Is it needed at all in the minibuffer? >> >> The tooltip feature? I don't think so. I rarely use dabbrev-expand / >> dabbrev-complete in the minibuffer. > > If you don't need the tooltip feature in the minibuffer, then why the > need to redefine tooltip-show? The default implementation should use > the minibuffer if tooltips are not supported. You are right. A "(require 'tooltip)" was missing in dabbrev-hover.el. It is odd that there was no missing function error (it failed silently). Now it works in the sense that instead of showing a "real" tooltip it prints "Error while displaying tooltip: (void-function x-show-tip)" in the minibuffer for half a second and then shows the possible expansion (also in the minibuffer). -- Vagn Johansen ^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: dabbrev-hover.el v. 0.1 2004-05-20 15:11 ` Enila Nero 2004-05-20 15:46 ` Vagn Johansen @ 2004-06-13 5:42 ` Daniel LaBell 1 sibling, 0 replies; 15+ messages in thread From: Daniel LaBell @ 2004-06-13 5:42 UTC (permalink / raw) dabrev mode? AWESOME. How do I post in gnus? From console... It used to be possible But the help as in help-mode is not functioning. Should I roll back, and hope the copies of old emacen I have on old backup tapes, cd, hardrives, and stuff lying around, are ok? The gnu archives haven't been hacked have they? [ I mean really? ] I just got back into linux and emacs, and I'having a very hard time. Anyway, I didn't mean to barge into your thread, but I've done some pretty cool things with dabbrev myself. [Or, so I thought]. Does anyone who posts here know how to turn off abbrev mode everywhere and anywhere? [Its been ages for me.] p.s. I'm having such a hard time, with the new key bindings and lack of help in the standard places, [ -- And my on going recovery from a major depression -- if that makes any difference -- ] that I feel more or less O.K. w/ posting this lame message ;-] P.S.S Maybe forward your mode to me? I might share one of my dabbrev's? provided I find it -- of course. ^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: dabbrev-hover.el v. 0.1 2004-05-20 12:28 ` dabbrev-hover.el v. 0.1 Vagn Johansen 2004-05-20 15:11 ` Enila Nero @ 2004-05-20 15:21 ` Enila Nero 2004-05-20 22:10 ` Vagn Johansen 2004-05-24 18:35 ` D. Goel 2004-05-24 20:05 ` D. Goel 3 siblings, 1 reply; 15+ messages in thread From: Enila Nero @ 2004-05-20 15:21 UTC (permalink / raw) Vagn Johansen <vjo@mail.tele.dk> writes: > When I tried your dabbrev-hover code I had complety forgotten that Emacs > 21.3 does not support tooltips on MS Windows. At least Emacs 21.3.50.8 _does_ on my machine. Perhaps you meant Emacs 21.2 which is shown in your User-Agent header. Enila ^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: dabbrev-hover.el v. 0.1 2004-05-20 15:21 ` Enila Nero @ 2004-05-20 22:10 ` Vagn Johansen 2004-05-21 4:55 ` Enila Nero 0 siblings, 1 reply; 15+ messages in thread From: Vagn Johansen @ 2004-05-20 22:10 UTC (permalink / raw) Enila Nero <geortal@yahoo.com> writes: > Vagn Johansen <vjo@mail.tele.dk> writes: > >> When I tried your dabbrev-hover code I had complety forgotten that Emacs >> 21.3 does not support tooltips on MS Windows. > > At least Emacs 21.3.50.8 _does_ on my machine. > > Perhaps you meant Emacs 21.2 which is shown in your User-Agent header. No, I was referring to 21.3 the lastest official Emacs release[1]. The Windows version lacks tooltip support, image support and maybe more. [1] The files at ftp://ftp.gnu.org/gnu/emacs/windows/ uses the number 21.3 -- Vagn Johansen ^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: dabbrev-hover.el v. 0.1 2004-05-20 22:10 ` Vagn Johansen @ 2004-05-21 4:55 ` Enila Nero 2004-05-21 7:29 ` Mathias Dahl 2004-05-21 23:44 ` Jason Rumney 0 siblings, 2 replies; 15+ messages in thread From: Enila Nero @ 2004-05-21 4:55 UTC (permalink / raw) Vagn Johansen <gonz808@hotmail.com> writes: > Enila Nero <geortal@yahoo.com> writes: > >> Vagn Johansen <vjo@mail.tele.dk> writes: >> >>> When I tried your dabbrev-hover code I had complety forgotten that Emacs >>> 21.3 does not support tooltips on MS Windows. >> >> At least Emacs 21.3.50.8 _does_ on my machine. >> >> Perhaps you meant Emacs 21.2 which is shown in your User-Agent header. > > No, I was referring to 21.3 the lastest official Emacs release[1]. The > Windows version lacks tooltip support, image support and maybe more. Beg to differ. My version Emacs 21.3.50.8 from http://www.crasseux.com/emacs/ has both image support and tooltip support. Enila > > [1] The files at ftp://ftp.gnu.org/gnu/emacs/windows/ uses the number 21.3 > > -- > Vagn Johansen ^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: dabbrev-hover.el v. 0.1 2004-05-21 4:55 ` Enila Nero @ 2004-05-21 7:29 ` Mathias Dahl 2004-05-21 23:44 ` Jason Rumney 1 sibling, 0 replies; 15+ messages in thread From: Mathias Dahl @ 2004-05-21 7:29 UTC (permalink / raw) Enila Nero <geortal@yahoo.com> writes: > > No, I was referring to 21.3 the lastest official Emacs release[1]. The > > Windows version lacks tooltip support, image support and maybe more. > > > Beg to differ. My version Emacs 21.3.50.8 from > > http://www.crasseux.com/emacs/ > > has both image support and tooltip support. > Well, that is the CVS version, which is not officially released yet. I use it too. ^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: dabbrev-hover.el v. 0.1 2004-05-21 4:55 ` Enila Nero 2004-05-21 7:29 ` Mathias Dahl @ 2004-05-21 23:44 ` Jason Rumney 2004-05-22 3:20 ` Enila Nero 1 sibling, 1 reply; 15+ messages in thread From: Jason Rumney @ 2004-05-21 23:44 UTC (permalink / raw) Enila Nero <geortal@yahoo.com> writes: >> No, I was referring to 21.3 the lastest official Emacs release[1]. The >> Windows version lacks tooltip support, image support and maybe more. > > > Beg to differ. My version Emacs 21.3.50.8 from What are you begging to differ about? That 21.3 (as opposed to 21.3.50) does not support tooltips on Windows, or that 21.3 is the latest official release? ^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: dabbrev-hover.el v. 0.1 2004-05-21 23:44 ` Jason Rumney @ 2004-05-22 3:20 ` Enila Nero 0 siblings, 0 replies; 15+ messages in thread From: Enila Nero @ 2004-05-22 3:20 UTC (permalink / raw) jasonr (Jason Rumney) @ f2s.com writes: > Enila Nero <geortal@yahoo.com> writes: > >>> No, I was referring to 21.3 the lastest official Emacs release[1]. The >>> Windows version lacks tooltip support, image support and maybe more. >> >> >> Beg to differ. My version Emacs 21.3.50.8 from > > What are you begging to differ about? That 21.3 (as opposed to > 21.3.50) does not support tooltips on Windows, or that 21.3 is the > latest official release? Sorry, I was too fast to respond. I missed the "official". I meant to say that there _is_ an emacs version for windows that does support tooltips and images. Enila ^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: dabbrev-hover.el v. 0.1 2004-05-20 12:28 ` dabbrev-hover.el v. 0.1 Vagn Johansen 2004-05-20 15:11 ` Enila Nero 2004-05-20 15:21 ` Enila Nero @ 2004-05-24 18:35 ` D. Goel 2004-05-24 20:05 ` D. Goel 3 siblings, 0 replies; 15+ messages in thread From: D. Goel @ 2004-05-24 18:35 UTC (permalink / raw) Oops, I just see that there's lots of good advice in this thread in response to dabbrev-hover 0.1. I missed it before posting dabbrev-hover 0.2dev. Apologies. Traveling right now and during next few weeks, but will incorporate all the fine advice when I get back. Thanks to everyone. Vagn Johansen <vjo@mail.tele.dk> writes: > Hi > > When I tried your dabbrev-hover code I had complety forgotten that Emacs > 21.3 does not support tooltips on MS Windows. I got it "working" by > replacing the two calls to tooltip-show to vj-tooltip-show: > > (defun vj-tooltip-show (str) > (interactive) > (setq header-line-format (replace-regexp-in-string "\n" ", " str))) > > Maybe you could detect if tooltip is possible and the fallback to my > function. It would be nice with some cleanup so that header-line-format > is set to "" when there are no dynamic expansions possible. > > Is it suppossed to show only one suggestion? I would like to use > dabbrev-expand with a prefix argument. This would make the mode even > better. > > I also think i would prefer if it did not fiddle with the RET keybinding > (customizable?). > > -- > Vagn Johansen DG http://gnufans.net/ -- ^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: dabbrev-hover.el v. 0.1 2004-05-20 12:28 ` dabbrev-hover.el v. 0.1 Vagn Johansen ` (2 preceding siblings ...) 2004-05-24 18:35 ` D. Goel @ 2004-05-24 20:05 ` D. Goel 3 siblings, 0 replies; 15+ messages in thread From: D. Goel @ 2004-05-24 20:05 UTC (permalink / raw) Vagn Johansen <vjo@mail.tele.dk> writes: > > (defun vj-tooltip-show (str) > (interactive) > (setq header-line-format (replace-regexp-in-string "\n" ", " str))) > > Maybe you could detect if tooltip is possible and the fallback to my > function. Thanks, I will do that. > It would be nice with some cleanup so that header-line-format is set > to "" when there are no dynamic expansions possible. > > Is it suppossed to show only one suggestion? I would like to use > dabbrev-expand with a prefix argument. This would make the mode even > better. > > I also think i would prefer if it did not fiddle with the RET keybinding > (customizable?). yes, it was customizable (using the way Kevin Rodgers suggested), but I ran into the above RET problem you mentioned myself, and made TAB the default in 0.2. > Being in effect while in the minibuffer with the RET keybinding is a > bad recipe. > Is it needed at all in the minibuffer? Hm, on my emacs 21.2 and 21.3, it never seems to get activated in the minibuffer in the first place for some reason, but i will go ahead and provide something like an "expand-in-minibuffer-p" option, and disable it by default. > > I wonder if dh-complete *must* be used. dabbrev-expand seems work to just > as well and I already have it bound to a convenient key. Ah, I don't understand dabbrev.el too well, so I was not sure if dabbrev-expand will expand to the same completion as shown by dabbrev-hover.el (which, of course, dh-complete does, by construction.) dh-complete also makes the code general enough to allow use with other mechanisms like hippie-expand, as suggested by Trey Jackson privately. > And finally, correct instances of '(keymap) with (make-sparse-keymap). > Kevin Rodgers thanks, done in 0.2dev already, with help from Uwe Brauer. > > If you don't need the tooltip feature in the minibuffer, then why the > need to redefine tooltip-show? The default implementation should use > the minibuffer if tooltips are not supported. It does :) Vagn Johansen <gonz808@hotmail.com> writes: > > You are right. A "(require 'tooltip)" was missing in dabbrev-hover.el. It > is odd that there was no missing function error (it failed silently). Will add. > Now it works in the sense that instead of showing a "real" tooltip it > prints "Error while displaying tooltip: (void-function x-show-tip)" in > the minibuffer for half a second and then shows the possible expansion > (also in the minibuffer). One thing I don't understand is why fancy dh doesn't work when in -nw mode (emacs -nw). Everything in the code/edebug suggests that we are in the right mode (dh-fancy-doing-mode), yet it doesn't work.. even when I do the following for debugging: (define-key dh-fancy-doing-mode-map (kbd "t") 'dh-complete) (setq dh-fancy-doing-mode-string " DEBUG") and then try "t" for completion. I would be in the dh-fancy-doing-mode, yet t will self-insert... strange.. If anyone knows, please do share.. (manual M-x dh-complete still works) DG http://gnufans.net/ -- ^ permalink raw reply [flat|nested] 15+ messages in thread
end of thread, other threads:[~2004-06-13 5:42 UTC | newest] Thread overview: 15+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- [not found] <87oeolvjyw.fsf@gnufans.net> 2004-05-20 12:28 ` dabbrev-hover.el v. 0.1 Vagn Johansen 2004-05-20 15:11 ` Enila Nero 2004-05-20 15:46 ` Vagn Johansen 2004-05-20 17:02 ` Kevin Rodgers 2004-05-20 19:11 ` Jason Rumney 2004-05-20 22:56 ` Vagn Johansen 2004-06-13 5:42 ` Daniel LaBell 2004-05-20 15:21 ` Enila Nero 2004-05-20 22:10 ` Vagn Johansen 2004-05-21 4:55 ` Enila Nero 2004-05-21 7:29 ` Mathias Dahl 2004-05-21 23:44 ` Jason Rumney 2004-05-22 3:20 ` Enila Nero 2004-05-24 18:35 ` D. Goel 2004-05-24 20:05 ` D. Goel
Code repositories for project(s) associated with this external index https://git.savannah.gnu.org/cgit/emacs.git https://git.savannah.gnu.org/cgit/emacs/org-mode.git This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.