From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 18 12:24:08 2011 Received: (at submit) by debbugs.gnu.org; 18 Jul 2011 16:24:08 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qiqc3-0007HH-FU for submit@debbugs.gnu.org; Mon, 18 Jul 2011 12:24:07 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qiqc1-0007Gp-In for submit@debbugs.gnu.org; Mon, 18 Jul 2011 12:24:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qiqbu-0007AD-Gg for submit@debbugs.gnu.org; Mon, 18 Jul 2011 12:24:00 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-3.0 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([140.186.70.17]:54447) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qiqbu-0007A9-7p for submit@debbugs.gnu.org; Mon, 18 Jul 2011 12:23:58 -0400 Received: from eggs.gnu.org ([140.186.70.92]:55635) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qiqbr-0005eD-Oa for bug-gnu-emacs@gnu.org; Mon, 18 Jul 2011 12:23:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qiqbo-00079l-Bf for bug-gnu-emacs@gnu.org; Mon, 18 Jul 2011 12:23:55 -0400 Received: from rcsinet15.oracle.com ([148.87.113.117]:19558) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qiqbn-00079f-Qo for bug-gnu-emacs@gnu.org; Mon, 18 Jul 2011 12:23:52 -0400 Received: from acsinet21.oracle.com (acsinet21.oracle.com [141.146.126.237]) by rcsinet15.oracle.com (Switch-3.4.4/Switch-3.4.4) with ESMTP id p6IGNm2O031341 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 18 Jul 2011 16:23:50 GMT Received: from acsmt358.oracle.com (acsmt358.oracle.com [141.146.40.158]) by acsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id p6IGNm5Q012988 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 18 Jul 2011 16:23:48 GMT Received: from abhmt115.oracle.com (abhmt115.oracle.com [141.146.116.67]) by acsmt358.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id p6IGNgGb009653 for ; Mon, 18 Jul 2011 11:23:42 -0500 Received: from dradamslap1 (/130.35.178.194) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 18 Jul 2011 09:23:42 -0700 From: "Drew Adams" To: Subject: 24.0.50; Document menu keyword `:selected' Date: Mon, 18 Jul 2011 09:23:41 -0700 Message-ID: <3D2F66922B1E45A2888485C8E28AADB3@us.oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6109 Thread-Index: AcxFZw6Um2XUvgSiSTu0GSLsEZSiuA== X-Source-IP: acsinet21.oracle.com [141.146.126.237] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090205.4E245E16.00BF:SCFMA922111,ss=1,re=-4.000,fgs=0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -6.2 (------) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.2 (------) Please document the menu keyword :selected. Presumably the place for this would be: `(elisp) Extended Menu Items', along with :visible, :enable, etc. In particular, document its relation with keywords such as :visible and :enable - e.g., if not visible then :selected is not evaluated (or whatever is the truth). For example, I see code such as this in a 3rd-party library, and I wonder what happens if `ls-lisp-dirs-first' is undefined. The :visible sexp here is protected OK (by `ls-lisp-var-p'), but if :selected is eval'd even when :visible is nil then this would presumably raise an error. ["Ignore Case" dired-sort-menu-toggle-ignore-case :style toggle :selected ls-lisp-ignore-case :active t :help "Ignore case in alphanumeric sorting" ;; supported only by (Emacs 21) ls-lisp library and local dired: :visible (ls-lisp-var-p 'ls-lisp-ignore-case)] ["Dirs First" dired-sort-menu-toggle-dirs-first :style toggle :selected ls-lisp-dirs-first :active t :help "List subdirectories first [last if reversed]" ;; supported only by (Emacs 21) ls-lisp library and local dired: :visible (ls-lisp-var-p 'ls-lisp-dirs-first)] Anyway, the point is that there seems to be no documentation at all for :selected, even though it is used in lots of core Lisp code and in 3rd-party code. In GNU Emacs 24.0.50.1 (i386-mingw-nt5.1.2600) of 2011-07-11 on 3249CTO Windowing system distributor `Microsoft Corp.', version 5.1.2600 configured using `configure --with-gcc (4.5) --no-opt --cflags -Ic:/build/include' From debbugs-submit-bounces@debbugs.gnu.org Sat Sep 10 23:32:23 2011 Received: (at 9117) by debbugs.gnu.org; 11 Sep 2011 03:32:23 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R2amN-0002rD-Ha for submit@debbugs.gnu.org; Sat, 10 Sep 2011 23:32:23 -0400 Received: from hermes.netfonds.no ([80.91.224.195]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R2amG-0002qT-MJ for 9117@debbugs.gnu.org; Sat, 10 Sep 2011 23:32:20 -0400 Received: from cm-84.215.51.58.getinternet.no ([84.215.51.58] helo=stories.gnus.org) by hermes.netfonds.no with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1R2ai4-00080U-85; Sun, 11 Sep 2011 05:27:56 +0200 From: Lars Magne Ingebrigtsen To: "Drew Adams" Subject: Re: 24.0.50; Document menu keyword `:selected' In-Reply-To: <3D2F66922B1E45A2888485C8E28AADB3@us.oracle.com> (Drew Adams's message of "Mon, 18 Jul 2011 09:23:41 -0700") Date: Sun, 11 Sep 2011 05:14:20 +0200 Message-ID: References: <3D2F66922B1E45A2888485C8E28AADB3@us.oracle.com> User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux) X-Now-Playing: Cocteau Twins's _Echoes in a Shallow Bay_: "Great Spangled Fritillary" MIME-Version: 1.0 Content-Type: text/plain X-MailScanner-ID: 1R2ai4-00080U-85 X-Netfonds-MailScanner: Found to be clean X-Netfonds-MailScanner-From: larsi@gnus.org MailScanner-NULL-Check: 1316316476.74653@IPZfBhhE/M+WZc17M/tZPg X-Spam-Status: No X-Spam-Score: -2.7 (--) X-Debbugs-Envelope-To: 9117 Cc: 9117@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) "Drew Adams" writes: > For example, I see code such as this in a 3rd-party library, and I > wonder what happens if `ls-lisp-dirs-first' is undefined. The :visible > sexp here is protected OK (by `ls-lisp-var-p'), but if :selected is > eval'd even when :visible is nil then this would presumably raise an > error. > > ["Ignore Case" dired-sort-menu-toggle-ignore-case :style toggle > :selected ls-lisp-ignore-case :active t > :help "Ignore case in alphanumeric sorting" > ;; supported only by (Emacs 21) ls-lisp library and local dired: > :visible (ls-lisp-var-p 'ls-lisp-ignore-case)] :selected is, as far as I can tell, an `easy-menu-define' thing, and is documented there. I'm not sure `define-key' supports it at all -- anybody know? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog http://lars.ingebrigtsen.no/ From debbugs-submit-bounces@debbugs.gnu.org Thu Apr 28 07:12:37 2016 Received: (at 9117) by debbugs.gnu.org; 28 Apr 2016 11:12:37 +0000 Received: from localhost ([127.0.0.1]:51316 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1avjs1-0005jV-Sh for submit@debbugs.gnu.org; Thu, 28 Apr 2016 07:12:37 -0400 Received: from hermes.netfonds.no ([80.91.224.195]:35634) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1avjrw-0005jK-R6 for 9117@debbugs.gnu.org; Thu, 28 Apr 2016 07:12:32 -0400 Received: from cm-84.215.1.64.getinternet.no ([84.215.1.64] helo=mouse) by hermes.netfonds.no with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1avjrq-0001S6-Ue; Thu, 28 Apr 2016 13:12:28 +0200 From: Lars Ingebrigtsen To: "Drew Adams" Subject: Re: bug#9117: 24.0.50; Document menu keyword `:selected' References: <3D2F66922B1E45A2888485C8E28AADB3@us.oracle.com> Date: Thu, 28 Apr 2016 13:12:22 +0200 In-Reply-To: (Lars Magne Ingebrigtsen's message of "Sun, 11 Sep 2011 05:14:20 +0200") Message-ID: <8737q6oull.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 9117 Cc: 9117@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) Lars Magne Ingebrigtsen writes: > "Drew Adams" writes: > >> For example, I see code such as this in a 3rd-party library, and I >> wonder what happens if `ls-lisp-dirs-first' is undefined. The :visible >> sexp here is protected OK (by `ls-lisp-var-p'), but if :selected is >> eval'd even when :visible is nil then this would presumably raise an >> error. >> >> ["Ignore Case" dired-sort-menu-toggle-ignore-case :style toggle >> :selected ls-lisp-ignore-case :active t >> :help "Ignore case in alphanumeric sorting" >> ;; supported only by (Emacs 21) ls-lisp library and local dired: >> :visible (ls-lisp-var-p 'ls-lisp-ignore-case)] > > :selected is, as far as I can tell, an `easy-menu-define' thing, and is > documented there. I'm not sure `define-key' supports it at all -- > anybody know? Doesn't seem like it. `easy-menu-define' documents :selected, so I don't think there's anything to fix here. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Thu Apr 28 07:12:37 2016 Received: (at control) by debbugs.gnu.org; 28 Apr 2016 11:12:37 +0000 Received: from localhost ([127.0.0.1]:51319 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1avjs5-0005ji-Cw for submit@debbugs.gnu.org; Thu, 28 Apr 2016 07:12:37 -0400 Received: from hermes.netfonds.no ([80.91.224.195]:35641) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1avjs3-0005jX-K2 for control@debbugs.gnu.org; Thu, 28 Apr 2016 07:12:35 -0400 Received: from cm-84.215.1.64.getinternet.no ([84.215.1.64] helo=mouse) by hermes.netfonds.no with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1avjs1-0001SP-IG for control@debbugs.gnu.org; Thu, 28 Apr 2016 13:12:35 +0200 Date: Thu, 28 Apr 2016 13:12:33 +0200 Message-Id: <871t5qoula.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #9117 X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) tags 9117 notabug close 9117 From unknown Sat Aug 16 00:33:27 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 26 May 2016 11:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator