From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Tool-bar separators and :visible etc Date: Mon, 06 Feb 2012 09:29:48 -0500 Message-ID: References: <42r4ya55x5.fsf@fencepost.gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1328538627 12647 80.91.229.3 (6 Feb 2012 14:30:27 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 6 Feb 2012 14:30:27 +0000 (UTC) Cc: emacs-devel@gnu.org To: Glenn Morris Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 06 15:30:25 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RuPaE-0001YT-Dw for ged-emacs-devel@m.gmane.org; Mon, 06 Feb 2012 15:30:18 +0100 Original-Received: from localhost ([::1]:43067 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RuPaD-0003Z9-Rb for ged-emacs-devel@m.gmane.org; Mon, 06 Feb 2012 09:30:17 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:36935) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RuPa6-0003Z3-Hi for emacs-devel@gnu.org; Mon, 06 Feb 2012 09:30:16 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RuPZw-0002Xo-P2 for emacs-devel@gnu.org; Mon, 06 Feb 2012 09:30:10 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.183]:23732) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RuPZw-0002Xk-LP; Mon, 06 Feb 2012 09:30:00 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av0EAGnjL09MCqD0/2dsb2JhbABDrziBBoFyAQEEAVYjBQsLDiYSFBgNJIgPuS+MDhICAgMGAgQCAQQCAgwGCgMBhB0BBAQegzkEiESbA4Ra X-IronPort-AV: E=Sophos;i="4.73,371,1325480400"; d="scan'208";a="161432887" Original-Received: from 76-10-160-244.dsl.teksavvy.com (HELO pastel.home) ([76.10.160.244]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 06 Feb 2012 09:29:48 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 33ABA58BE3; Mon, 6 Feb 2012 09:29:48 -0500 (EST) In-Reply-To: <42r4ya55x5.fsf@fencepost.gnu.org> (Glenn Morris's message of "Sat, 04 Feb 2012 22:13:10 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.183 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:148259 Archived-At: > This works (after hiding and showing the tool-bar): > (define-key-after tool-bar-map [sep1] '("--")) > so does this: > (define-key-after tool-bar-map [sep1] '(menu-item "--")) > This doesn't: > (define-key-after tool-bar-map [sep1] '(menu-item "--" nil :visible t)) > although it does in a menu-bar: > (define-key-after menu-bar-help-menu [sep1] '(menu-item "--" nil :visible t)) > So, it seems that tool-bar separator items do not support specifiers > like :visible, :help, etc. Is that correct? I think that's right, but the discrepancy with men-bar items points to the fact that we need to better design&document what we mean by a separator and how to distinguish it from an entry whose name is "--". Stefan