all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Infinite mutual recursion in multi-tty "menu-bar-open"
@ 2007-06-27 17:11 sand
  2007-07-02 17:29 ` Dan Nicolaescu
  0 siblings, 1 reply; 2+ messages in thread
From: sand @ 2007-06-27 17:11 UTC (permalink / raw)
  To: bug-gnu-emacs

Revision 1.302.4.1 of menu-bar.el (on the multi-tty branch) includes the following delta:

http://cvs.savannah.gnu.org/viewvc/emacs/lisp/menu-bar.el?root=emacs&r1=1.302&r2=1.302.4.1
1772 	  	 (defun menu-bar-open (&optional frame)
1773 	  	   "Start key navigation of the menu bar in FRAME.
1774 	  	 
1775 	  	 This function decides which method to use to access the menu
1776 	  	 depending on FRAME's terminal device.  On X displays, it calls
1777 	  	 `x-menu-bar-open'; otherwise it calls `tmm-menubar'.
1778 	  	 
1779 	  	 If FRAME is nil or not given, use the selected frame."
1780 	  	   (interactive)
1781 	  	   (if (eq window-system 'x)
1782 	  	       (x-menu-bar-open frame)
1783 	  	     (with-selected-frame (or frame (selected-frame))
1784 	  	       (tmm-menubar))))

Note how "menu-bar-open" calls "x-menu-bar-open".  Since revision 1.193, term/x-win.el has had the following definition for "x-menu-bar-open":

http://cvs.savannah.gnu.org/viewvc/emacs/lisp/term/x-win.el?annotate=1.200.4.3&root=emacs
2411 : 	jhd 	1.193 	(defun x-menu-bar-open (&optional frame)
2412 : 	  	  	  "Open the menu bar if `menu-bar-mode' is on. otherwise call `tmm-menubar'."
2413 : 	  	  	  (interactive "i")
2414 : 	  	  	  (if menu-bar-mode (menu-bar-open frame)
2415 : 	  	  	    (tmm-menubar)))

Note how "x-menu-bar-open" calls "menu-bar-open".

So when running in X with a menu bar, hitting <f10> calls menu-bar-open, which calls x-menu-bar-open, which calls menu-bar-open, which ... generates an error message about exceeding lisp-max-eval-depth.

Can we get a fix?  It's not a dire problem, but I doubt that the current behavior matches anyones expectations.

Thanks,

Derek

--
Derek L. Upham
sand@blarg.net

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

* Re: Infinite mutual recursion in multi-tty "menu-bar-open"
  2007-06-27 17:11 Infinite mutual recursion in multi-tty "menu-bar-open" sand
@ 2007-07-02 17:29 ` Dan Nicolaescu
  0 siblings, 0 replies; 2+ messages in thread
From: Dan Nicolaescu @ 2007-07-02 17:29 UTC (permalink / raw)
  To: sand; +Cc: bug-gnu-emacs

sand <sand@blarg.net> writes:

  > 
  > Can we get a fix?  It's not a dire problem, but I doubt that the current behavior matches anyones expectations.

It should be fixed in CVS now. 

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

end of thread, other threads:[~2007-07-02 17:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-27 17:11 Infinite mutual recursion in multi-tty "menu-bar-open" sand
2007-07-02 17:29 ` Dan Nicolaescu

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.