changeset 31465:b58d8e366faa

(xdialog_show): When looking up the selection in menu_items, take `quote' boundaries into account; this corresponds to a nil ITEM in x-popup-dialog.
author Gerd Moellmann <gerd@gnu.org>
date Thu, 07 Sep 2000 14:05:55 +0000
parents 2efc0e152012
children 159470ebe092
files src/xmenu.c
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/xmenu.c	Thu Sep 07 14:05:42 2000 +0000
+++ b/src/xmenu.c	Thu Sep 07 14:05:55 2000 +0000
@@ -2461,6 +2461,12 @@
 		= XVECTOR (menu_items)->contents[i + MENU_ITEMS_PANE_PREFIX];
 	      i += MENU_ITEMS_PANE_LENGTH;
 	    }
+	  else if (EQ (XVECTOR (menu_items)->contents[i], Qquote))
+	    {
+	      /* This is the boundary between left-side elts and
+		 right-side elts.  */
+	      ++i;
+	    }
 	  else
 	    {
 	      entry