* bug#21643: 25.0.50; Error "<nil> <down-mouse-1> is undefined" @ 2015-10-07 22:15 Drew Adams 2015-10-08 15:09 ` Eli Zaretskii 2019-09-29 22:13 ` Stefan Kangas 0 siblings, 2 replies; 10+ messages in thread From: Drew Adams @ 2015-10-07 22:15 UTC (permalink / raw) To: 21643 I see the new behavior described below ever since this build: GNU Emacs 24.4.50.1 (i686-pc-mingw32) of 2014-08-15 on LEG570 I do not see it in this build or older: GNU Emacs 24.4.50.1 (i686-pc-mingw32) of 2014-06-28 on ODIEONE The behavior: In a standalone minibuffer frame that is two lines tall, in an inactive minibuffer, I click mouse-1 near the bottom of the frame (so, somewhere in the second of the two frame lines). In the old builds, I get the keys <down-mouse-1> and <mouse-1> described in *Help*, as usual: <down-mouse-1> at that spot runs the command mouse-drag-region, which is an interactive compiled Lisp function in `mouse.el'. It is bound to down-mouse-1. ... <mouse-1> at that spot runs the command mouse-set-point, which is an interactive compiled Lisp function in `mouse.el'. It is bound to mouse-1. ... In the newer builds I get only these messages in *Messages*, each preceded by a ding: <nil> <down-mouse-1> is undefined <nil> <mouse-1> is undefined I'm guessing that that position in the frame is somehow considered to be on a different GUI element, and this results in Emacs sending a pseudo function key <nil>. 1. Could someone please explain what I'm seeing? What is <nil>? What GUI element does Emacs think I am clicking on? 2. How can I bind these keys, whatever and wherever they are, to the usual commands, so that I can get the behavior I want? This matters to me because I redefine `mouse-drag-region' so that a `mouse-1' click in the inactive minibuffer when *Messages* is already shown has the effect of `M-x'. IOW, if *Messages* is not shown then `mouse-1' shows it, and if it is already shown then `M-x' is invoked. With whatever was changed in Emacs, this now works only if you click `mouse-1' somewhere on the first line of the minibuffer frame (even if after eob). If you click on the second line then I get the odd behavior described above. The minibuffer frame has these frame parameters: ((tool-bar-position . top) (parent-id) (explicit-name . t) (display . "w32") (visibility . t) (icon-name) (window-id . "724602") (top . 990) (left . 0) (buried-buffer-list) (buffer-list #<buffer *Minibuf-0*> #<buffer *Minibuf-1*> #<buffer *scratch*>) (unsplittable . t) (minibuffer . only) (modeline) (width . 240) (height . 2) (name . "Emacs minibuffer show/hide: hold CTRL + click in window") (cursor-color . "Black") (background-mode . light) (display-type . color) (desktop-dont-save . t) (fringe . 0) (scroll-bar-height . 0) (scroll-bar-width . 0) (cursor-type . bar) (auto-lower) (auto-raise) (icon-type) (fullscreen) (title) (buffer-predicate) (tool-bar-lines . 0) (menu-bar-lines . 0) (alpha) (right-fringe . 0) (left-fringe . 0) (line-spacing) (screen-gamma) (border-color . "black") (mouse-color . "Black") (background-color . "LightBlue") (foreground-color . "Red") (horizontal-scroll-bars) (vertical-scroll-bars) (bottom-divider-width . 2) (right-divider-width . 2) (internal-border-width . 0) (border-width . 2) (font . "-outline-Lucida Console-normal-normal-normal-mono-14-*-*-*-c-*-iso8859-1") (font-parameter . "-*-Lucida Console-normal-r-*-*-14-*-*-*-c-*-iso8859-1") (font-backend uniscribe gdi)) In GNU Emacs 25.0.50.1 (i686-pc-mingw32) of 2015-10-06 Bzr revision: a4a98a1b2568793ead43e824ecf227768759df12 Windowing system distributor `Microsoft Corp.', version 6.1.7601 Configured using: `configure --prefix=/c/Devel/emacs/snapshot/trunk --enable-checking=yes,glyphs 'CFLAGS=-O0 -g3' LDFLAGS=-Lc:/Devel/emacs/lib 'CPPFLAGS=-DGC_MCHECK=1 -Ic:/Devel/emacs/include'' ^ permalink raw reply [flat|nested] 10+ messages in thread
* bug#21643: 25.0.50; Error "<nil> <down-mouse-1> is undefined" 2015-10-07 22:15 bug#21643: 25.0.50; Error "<nil> <down-mouse-1> is undefined" Drew Adams @ 2015-10-08 15:09 ` Eli Zaretskii 2019-09-29 22:13 ` Stefan Kangas 1 sibling, 0 replies; 10+ messages in thread From: Eli Zaretskii @ 2015-10-08 15:09 UTC (permalink / raw) To: Drew Adams; +Cc: 21643 > Date: Wed, 7 Oct 2015 15:15:54 -0700 (PDT) > From: Drew Adams <drew.adams@oracle.com> > > In a standalone minibuffer frame that is two lines tall, in an inactive > minibuffer, I click mouse-1 near the bottom of the frame (so, somewhere > in the second of the two frame lines). Can you please provide a complete recipe, starting from "emacs -Q", for creating such a frame? That should make reproducing the problem much easier. Thanks. ^ permalink raw reply [flat|nested] 10+ messages in thread
* bug#21643: 25.0.50; Error "<nil> <down-mouse-1> is undefined" 2015-10-07 22:15 bug#21643: 25.0.50; Error "<nil> <down-mouse-1> is undefined" Drew Adams 2015-10-08 15:09 ` Eli Zaretskii @ 2019-09-29 22:13 ` Stefan Kangas 1 sibling, 0 replies; 10+ messages in thread From: Stefan Kangas @ 2019-09-29 22:13 UTC (permalink / raw) To: martin rudalics; +Cc: 21643 close 21643 25.1 thanks martin rudalics <rudalics@gmx.at> writes: >> Martin, this looks somewhat similar to the problem you solved the >> other day, whereby "M-x" echo would not be visible. So maybe you >> could look into this as well, if you have time. > > Should be fixed now. The bug could be triggered only by giving the > minibuffer height twice the height it had before. It goes without > saying that Drew succeeded. > > Thanks for making it easily reproducible, martin This was fixed at the time: commit e6013e8c8f3de0ca39c17a2da95346b4a320e6d0 Author: Martin Rudalics <rudalics@gmx.at> Date: Fri Oct 9 11:55:06 2015 +0200 In adjust_frame_size don't count minibuffer height twice (Bug#21643) * src/frame.c (adjust_frame_size): In minibuffer-only windows don't count minibuffer height twice. (Bug#21643) I'm therefore closing this bug report. Best regards, Stefan Kangas ^ permalink raw reply [flat|nested] 10+ messages in thread
[parent not found: <<3f16785a-2105-4715-b6ab-b7b2298dc3ca@default>]
[parent not found: <<83vbahcs6z.fsf@gnu.org>]
* bug#21643: 25.0.50; Error "<nil> <down-mouse-1> is undefined" [not found] ` <<83vbahcs6z.fsf@gnu.org> @ 2015-10-08 18:39 ` Drew Adams 2015-10-08 19:32 ` Eli Zaretskii [not found] ` <<59204c8a-71b5-4a2a-b6c6-394e932def02@default> 1 sibling, 1 reply; 10+ messages in thread From: Drew Adams @ 2015-10-08 18:39 UTC (permalink / raw) To: Eli Zaretskii; +Cc: 21643 [-- Attachment #1: Type: text/plain, Size: 1094 bytes --] > Can you please provide a complete recipe, starting from "emacs -Q", > for creating such a frame? That should make reproducing the problem > much easier. It took me a while to narrow it down. But I think this is minimal - seems like everything here is needed. See attached file, onetest4.el. 1. Start Emacs with an MS Windows shortcut that has this target: runemacs.exe -Q --debug-init -l "onetest4.el" -f "1on1-emacs" "onetest4.el" 2. Click the title bar of the minibuffer frame (not needed, but just to make sure the frame is selected. 3. C-h k 4. Click mouse-1 somewhere in the second line of the minibuffer frame. You see this message: <nil> <down-mouse-1> (translated from <down-mouse-1>) at that spot is undefined Click again. You see this message: <nil> <mouse-1> is undefined Check buffer *Messages*, and you see something like this: For information about GNU Emacs and the GNU system, type C-h C-a. <nil> <down-mouse-1> (translated from <down-mouse-1>) at that spot is undefined <nil> <down-mouse-1> is undefined <nil> <mouse-1> is undefined [-- Attachment #2: onetest4.el --] [-- Type: application/octet-stream, Size: 441 bytes --] ;; runemacs.exe -Q --debug-init -l "onetest4.el" -f "1on1-emacs" "onetest4.el" (defun 1on1-emacs () "" (interactive) (setq default-frame-alist (list '(font . "-*-Lucida Console-normal-r-*-*-14-*-*-*-c-*-iso8859-1") '(bottom-divider-width . 2) '(minibuffer))) (setq pop-up-frames t) (setq minibuffer-frame-alist (list '(height . 2) '(minibuffer . only)))) ^ permalink raw reply [flat|nested] 10+ messages in thread
* bug#21643: 25.0.50; Error "<nil> <down-mouse-1> is undefined" 2015-10-08 18:39 ` Drew Adams @ 2015-10-08 19:32 ` Eli Zaretskii 2015-10-09 10:06 ` martin rudalics 0 siblings, 1 reply; 10+ messages in thread From: Eli Zaretskii @ 2015-10-08 19:32 UTC (permalink / raw) To: Drew Adams, martin rudalics; +Cc: 21643 > Date: Thu, 8 Oct 2015 11:39:44 -0700 (PDT) > From: Drew Adams <drew.adams@oracle.com> > Cc: 21643@debbugs.gnu.org > > 1. Start Emacs with an MS Windows shortcut that has this target: > runemacs.exe -Q --debug-init -l "onetest4.el" -f "1on1-emacs" "onetest4.el" > > 2. Click the title bar of the minibuffer frame (not needed, but > just to make sure the frame is selected. > > 3. C-h k > > 4. Click mouse-1 somewhere in the second line of the minibuffer frame. > > You see this message: > <nil> <down-mouse-1> (translated from <down-mouse-1>) at that spot is undefined Thanks. There's clearly some display bug that shows in the minibuffer frame: look carefully and you will see that the fringes and the scroll bar only extend for a single line there. The second line is some kind of "no-man's land", which explains the "nil" part in the mouse event. If you drag the lower edge of the minibuffer frame by even a single pixel, then return it back to its original (or even smaller) height, the problem with the fringes goes away, and so does the problem with the mouse click. I will take a look. Martin, this looks somewhat similar to the problem you solved the other day, whereby "M-x" echo would not be visible. So maybe you could look into this as well, if you have time. ^ permalink raw reply [flat|nested] 10+ messages in thread
* bug#21643: 25.0.50; Error "<nil> <down-mouse-1> is undefined" 2015-10-08 19:32 ` Eli Zaretskii @ 2015-10-09 10:06 ` martin rudalics 2015-10-09 12:56 ` Eli Zaretskii 0 siblings, 1 reply; 10+ messages in thread From: martin rudalics @ 2015-10-09 10:06 UTC (permalink / raw) To: Eli Zaretskii, Drew Adams; +Cc: 21643 > Martin, this looks somewhat similar to the problem you solved the > other day, whereby "M-x" echo would not be visible. So maybe you > could look into this as well, if you have time. Should be fixed now. The bug could be triggered only by giving the minibuffer height twice the height it had before. It goes without saying that Drew succeeded. Thanks for making it easily reproducible, martin ^ permalink raw reply [flat|nested] 10+ messages in thread
* bug#21643: 25.0.50; Error "<nil> <down-mouse-1> is undefined" 2015-10-09 10:06 ` martin rudalics @ 2015-10-09 12:56 ` Eli Zaretskii 0 siblings, 0 replies; 10+ messages in thread From: Eli Zaretskii @ 2015-10-09 12:56 UTC (permalink / raw) To: martin rudalics; +Cc: 21643 > Date: Fri, 09 Oct 2015 12:06:59 +0200 > From: martin rudalics <rudalics@gmx.at> > CC: 21643@debbugs.gnu.org > > > Martin, this looks somewhat similar to the problem you solved the > > other day, whereby "M-x" echo would not be visible. So maybe you > > could look into this as well, if you have time. > > Should be fixed now. The bug could be triggered only by giving the > minibuffer height twice the height it had before. It goes without > saying that Drew succeeded. Thanks. ^ permalink raw reply [flat|nested] 10+ messages in thread
[parent not found: <<59204c8a-71b5-4a2a-b6c6-394e932def02@default>]
[parent not found: <<83oag9cg1w.fsf@gnu.org>]
* bug#21643: 25.0.50; Error "<nil> <down-mouse-1> is undefined" [not found] ` <<83oag9cg1w.fsf@gnu.org> @ 2015-10-08 20:40 ` Drew Adams 2015-10-08 21:03 ` Drew Adams [not found] ` <<561791C3.90806@gmx.at> 1 sibling, 1 reply; 10+ messages in thread From: Drew Adams @ 2015-10-08 20:40 UTC (permalink / raw) To: Eli Zaretskii, Drew Adams, martin rudalics; +Cc: 21643 > Thanks. There's clearly some display bug that shows in the > minibuffer > frame: look carefully and you will see that the fringes and the > scroll > bar only extend for a single line there. The second line is some > kind > of "no-man's land", which explains the "nil" part in the mouse > event. > > If you drag the lower edge of the minibuffer frame by even a single > pixel, then return it back to its original (or even smaller) height, > the problem with the fringes goes away, and so does the problem with > the mouse click. Yes, I figured nearly as much, even in my setup (where I don't show fringe). FWIW, in Emacs 19 there was such a no-man's land underneath each scroll bar (everywhere, not minibuffer frame). And I used that "feature" by binding keys there. I was disappointed when this "feature" was removed. ;-) This is the code I used for that: ;;; ;; These [nil] bindings are no doubt a HACK, based on an ;;; ;; undocumented handy "feature". (This works in Emacs 19.34.6, ;;; ;; but it doesn't work in Emacs 20.6.) In Windows, at least, ;;; ;; such a key sequence [nil...] occurs if you click in the ;;; ;; lower right corner, between the scroll bar and the mode-line. ;;; ;; ;;; (global-set-key [nil down-mouse-1] 'fit-frame) ;;; (global-set-key [nil mouse-1] 'ignore) ;;; (global-set-key [nil C-down-mouse-1] 'show-hide) ;;; (global-set-key [nil C-mouse-1] 'ignore) ;;; (global-set-key [nil S-down-mouse-1] 'iconify-everything) ;;; (global-set-key [nil S-mouse-1] 'ignore) I had a hunch that this <nil> was akin to the nil in that feature. > I will take a look. Thank you. > Martin, this looks somewhat similar to the problem you solved the > other day, whereby "M-x" echo would not be visible. So maybe you > could look into this as well, if you have time. ^ permalink raw reply [flat|nested] 10+ messages in thread
* bug#21643: 25.0.50; Error "<nil> <down-mouse-1> is undefined" 2015-10-08 20:40 ` Drew Adams @ 2015-10-08 21:03 ` Drew Adams 0 siblings, 0 replies; 10+ messages in thread From: Drew Adams @ 2015-10-08 21:03 UTC (permalink / raw) To: Eli Zaretskii, martin rudalics; +Cc: 21643 > FWIW, in Emacs 19 there was such a no-man's land underneath each > scroll bar (everywhere, not minibuffer frame). And I used that > "feature" by binding keys there. I was disappointed when this > "feature" was removed. ;-) FWIW, here is a 2004 reference to this "feature", in a discussion about handles for dragging window dividers: http://lists.gnu.org/archive/html/emacs-devel/2004-10/msg00125.html ^ permalink raw reply [flat|nested] 10+ messages in thread
[parent not found: <<561791C3.90806@gmx.at>]
[parent not found: <<83wpuwtd3f.fsf@gnu.org>]
* bug#21643: 25.0.50; Error "<nil> <down-mouse-1> is undefined" [not found] ` <<83wpuwtd3f.fsf@gnu.org> @ 2015-10-09 13:05 ` Drew Adams 0 siblings, 0 replies; 10+ messages in thread From: Drew Adams @ 2015-10-09 13:05 UTC (permalink / raw) To: Eli Zaretskii, martin rudalics; +Cc: 21643 > Thanks. That was quick. Thx. ^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2019-09-29 22:13 UTC | newest] Thread overview: 10+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2015-10-07 22:15 bug#21643: 25.0.50; Error "<nil> <down-mouse-1> is undefined" Drew Adams 2015-10-08 15:09 ` Eli Zaretskii 2019-09-29 22:13 ` Stefan Kangas [not found] <<3f16785a-2105-4715-b6ab-b7b2298dc3ca@default> [not found] ` <<83vbahcs6z.fsf@gnu.org> 2015-10-08 18:39 ` Drew Adams 2015-10-08 19:32 ` Eli Zaretskii 2015-10-09 10:06 ` martin rudalics 2015-10-09 12:56 ` Eli Zaretskii [not found] ` <<59204c8a-71b5-4a2a-b6c6-394e932def02@default> [not found] ` <<83oag9cg1w.fsf@gnu.org> 2015-10-08 20:40 ` Drew Adams 2015-10-08 21:03 ` Drew Adams [not found] ` <<561791C3.90806@gmx.at> [not found] ` <<83wpuwtd3f.fsf@gnu.org> 2015-10-09 13:05 ` Drew Adams
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.