From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#23949: 25.0.95; Regression in handling error caused by (string-match-p "." nil) Date: Tue, 12 Jul 2016 22:19:34 +0300 Message-ID: <83r3ayacl5.fsf@gnu.org> References: <83lh17ati6.fsf@gnu.org> <83h9bvarb6.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1468352061 5954 80.91.229.3 (12 Jul 2016 19:34:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 12 Jul 2016 19:34:21 +0000 (UTC) Cc: schwab@suse.de, 23949@debbugs.gnu.org, monnier@iro.umontreal.ca To: Kaushal Modi Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jul 12 21:34:09 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1bN3RX-0004Zc-OP for geb-bug-gnu-emacs@m.gmane.org; Tue, 12 Jul 2016 21:34:07 +0200 Original-Received: from localhost ([::1]:42945 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bN3RT-0006sD-Oo for geb-bug-gnu-emacs@m.gmane.org; Tue, 12 Jul 2016 15:34:03 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60196) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bN3Ex-00010Q-Of for bug-gnu-emacs@gnu.org; Tue, 12 Jul 2016 15:21:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bN3Es-0006B8-Ok for bug-gnu-emacs@gnu.org; Tue, 12 Jul 2016 15:21:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:36376) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bN3Es-0006B4-LG for bug-gnu-emacs@gnu.org; Tue, 12 Jul 2016 15:21:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bN3Es-0005uM-Hk for bug-gnu-emacs@gnu.org; Tue, 12 Jul 2016 15:21:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 12 Jul 2016 19:21:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23949 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 23949-submit@debbugs.gnu.org id=B23949.146835122722617 (code B ref 23949); Tue, 12 Jul 2016 19:21:02 +0000 Original-Received: (at 23949) by debbugs.gnu.org; 12 Jul 2016 19:20:27 +0000 Original-Received: from localhost ([127.0.0.1]:48703 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bN3EJ-0005si-5o for submit@debbugs.gnu.org; Tue, 12 Jul 2016 15:20:27 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:40831) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bN3EH-0005sV-DZ for 23949@debbugs.gnu.org; Tue, 12 Jul 2016 15:20:25 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bN3E7-00065v-6y for 23949@debbugs.gnu.org; Tue, 12 Jul 2016 15:20:20 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:40483) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bN3E7-00065q-3o; Tue, 12 Jul 2016 15:20:15 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3354 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bN3E3-0000VQ-3N; Tue, 12 Jul 2016 15:20:13 -0400 In-reply-to: (message from Kaushal Modi on Tue, 12 Jul 2016 18:35:02 +0000) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:120948 Archived-At: > From: Kaushal Modi > Date: Tue, 12 Jul 2016 18:35:02 +0000 > Cc: 23949@debbugs.gnu.org > > string-match-p just signals an error, because its 2nd arg must be a > string. Look up the backtrace, and you will see that Emacs is trying > to signal an error: > > Correct, but that error does not show up within emacs. All the user sees is: > > Entering debugger... > help-function-arglist: End of file during parsing Because Emacs hits a second error while trying to show the backtrace of the first one. > In any case, I believe that that should not happen. Indeed, it shouldn't, but the question is: what code is responsible for that which shouldn't happen? If some package or your own customizations cause the debugger to call extra code, and that extra code signals an error, then that extra code needs to be fixed, not Emacs. > Also concerning is the fact that, > > - (string-match "." nil) gives the expected error backtrace. > - But (string-match-p "." nil) gives the help-function-arglist error. Sorry, I fail to see the significance of this to the issue at hand. They are two different functions, and we still don't know which functions were advised and how. Perhaps the advice will explain the difference. Or perhaps we understand the reason for the difference once we get to the bottom of investigating the problem. Either way, the efficient method of looking into this problem is to understand what are those advices and where do they come from.