From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.bugs Subject: bug#25077: 25.1; Incorrect Edebug spec for c-lang-defvar Date: Sat, 4 Feb 2017 16:23:07 +0000 Message-ID: <20170204162307.GC2047__14392.5817487345$1486225491$gmane$org@acm> References: <83h94a8aby.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: blaine.gmane.org 1486225491 19664 195.159.176.226 (4 Feb 2017 16:24:51 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 4 Feb 2017 16:24:51 +0000 (UTC) User-Agent: Mutt/1.7.2 (2016-11-26) Cc: Gemini Lasswell , 25077@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Feb 04 17:24:47 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ca38p-0004wi-79 for geb-bug-gnu-emacs@m.gmane.org; Sat, 04 Feb 2017 17:24:47 +0100 Original-Received: from localhost ([::1]:39878 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ca38u-0003Mi-JE for geb-bug-gnu-emacs@m.gmane.org; Sat, 04 Feb 2017 11:24:52 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58418) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ca389-00030T-Cl for bug-gnu-emacs@gnu.org; Sat, 04 Feb 2017 11:24:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ca386-0003Gf-7t for bug-gnu-emacs@gnu.org; Sat, 04 Feb 2017 11:24:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:58037) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ca386-0003Gb-4e; Sat, 04 Feb 2017 11:24:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ca385-0008VB-Ur; Sat, 04 Feb 2017 11:24:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Sat, 04 Feb 2017 16:24:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25077 X-GNU-PR-Package: emacs,cc-mode X-GNU-PR-Keywords: Original-Received: via spool by 25077-submit@debbugs.gnu.org id=B25077.148622541132644 (code B ref 25077); Sat, 04 Feb 2017 16:24:01 +0000 Original-Received: (at 25077) by debbugs.gnu.org; 4 Feb 2017 16:23:31 +0000 Original-Received: from localhost ([127.0.0.1]:56236 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ca37b-0008US-2f for submit@debbugs.gnu.org; Sat, 04 Feb 2017 11:23:31 -0500 Original-Received: from ocolin.muc.de ([193.149.48.4]:48065 helo=mail.muc.de) by debbugs.gnu.org with smtp (Exim 4.84_2) (envelope-from ) id 1ca37Y-0008UJ-Ra for 25077@debbugs.gnu.org; Sat, 04 Feb 2017 11:23:29 -0500 Original-Received: (qmail 16525 invoked by uid 3782); 4 Feb 2017 16:23:25 -0000 Original-Received: from acm.muc.de (p4FC46ADF.dip0.t-ipconnect.de [79.196.106.223]) by colin.muc.de (tmda-ofmipd) with ESMTP; Sat, 04 Feb 2017 17:23:24 +0100 Original-Received: (qmail 7301 invoked by uid 1000); 4 Feb 2017 16:23:07 -0000 Content-Disposition: inline In-Reply-To: <83h94a8aby.fsf@gnu.org> X-Delivery-Agent: TMDA/1.1.12 (Macallan) X-Primary-Address: acm@muc.de X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:128953 Archived-At: Hello, Eli. On Sat, Feb 04, 2017 at 13:27:45 +0200, Eli Zaretskii wrote: > > From: Gemini Lasswell > > Date: Wed, 30 Nov 2016 11:20:28 -0800 > > > > The Edebug spec for c-lang-defvar doesn't allow for the use of > > 'dont-doc, which prevents the use of Edebug and Testcover on > > cc-langs.el. > > > > To reproduce, using emacs -Q starting at the root of the Emacs > > sources: > > > > M-: (require 'cc-langs) RET > > C-x C-f lisp/progmodes/cc-langs.el RET > > C-s dont-doc RET > > C-u C-M-x > > > > Result: edebug-syntax-error: Invalid read syntax: stringp, "failed" > > > > I tried this change to the Edebug spec for c-lang-defvar, and it makes > > Edebug work on all the c-lang-defvar uses in this file: > > > > (def-edebug-spec c-lang-defvar > > (&define name def-form &optional &or ("quote" "dont-doc") stringp)) > > > > Alternatively, the 'dont-doc could be removed from the 7 places it is > > used. The majority of c-lang-defvar calls simply omit the docstring, > > and the code in c-lang-defvar is not doing any checking for dont-doc, > > it simply ignores that parameter if it is not a string. > Alan, could you please look into this? Yes, I will. > Thanks. -- Alan Mackenzie (Nuremberg, Germany).