From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#34722: 26.1; REGRESSION: `indent-pp-sexp' Wrong type argument: consp, nil Date: Sun, 3 Mar 2019 09:29:32 -0800 (PST) Message-ID: <24c15af4-00fd-4ca0-93c9-bf8b60045b13@default> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="101451"; mail-complaints-to="usenet@blaine.gmane.org" To: 34722@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Mar 03 18:36:34 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h0V2P-000QDu-Mi for geb-bug-gnu-emacs@m.gmane.org; Sun, 03 Mar 2019 18:36:33 +0100 Original-Received: from localhost ([127.0.0.1]:42307 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h0V2O-0005Rk-No for geb-bug-gnu-emacs@m.gmane.org; Sun, 03 Mar 2019 12:36:32 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:47028) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h0Ux5-0002Hq-AO for bug-gnu-emacs@gnu.org; Sun, 03 Mar 2019 12:31:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h0Ux4-0007Oa-6n for bug-gnu-emacs@gnu.org; Sun, 03 Mar 2019 12:31:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:45132) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h0Ux4-0007O9-23 for bug-gnu-emacs@gnu.org; Sun, 03 Mar 2019 12:31:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1h0Ux3-00061R-O6 for bug-gnu-emacs@gnu.org; Sun, 03 Mar 2019 12:31:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 03 Mar 2019 17:31:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 34722 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.155163424723127 (code B ref -1); Sun, 03 Mar 2019 17:31:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 3 Mar 2019 17:30:47 +0000 Original-Received: from localhost ([127.0.0.1]:58676 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h0Uwp-00060x-5U for submit@debbugs.gnu.org; Sun, 03 Mar 2019 12:30:47 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:60790) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h0Uwn-00060j-6l for submit@debbugs.gnu.org; Sun, 03 Mar 2019 12:30:46 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:53406) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1h0Uwi-00071v-1P for submit@debbugs.gnu.org; Sun, 03 Mar 2019 12:30:40 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:46931) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h0Uwg-00022a-QK for bug-gnu-emacs@gnu.org; Sun, 03 Mar 2019 12:30:39 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h0Uwf-0006zx-S9 for bug-gnu-emacs@gnu.org; Sun, 03 Mar 2019 12:30:38 -0500 Original-Received: from userp2120.oracle.com ([156.151.31.85]:60962) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1h0Uwf-0005z9-IC for bug-gnu-emacs@gnu.org; Sun, 03 Mar 2019 12:30:37 -0500 Original-Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x23HNgSO130531 for ; Sun, 3 Mar 2019 17:29:34 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : subject : content-type : content-transfer-encoding; s=corp-2018-07-02; bh=Nt2wOLB6hEWnDVYlnx/a6hlqUWrDgsyNVeF2HGlKzYo=; b=LD8soK0+7fRYlnir0Te2qD70cESkMgYtJ7wQnMah59jm+lo9FYARM2Rx9V9U/trev0u2 DQO6Rbcb1UMsC0OUJ5XHbBSfxjDb3Ne+gATK/QKWo3eSx4dNpQtq0b5rxfKtqCH9mRvy iYeTPh7047Fn41ZM9Lt/st4xhtLjgIG37mdYaV+Ojn98khQacyTua86A29vm+xmzCLbk 3qvGm+OmhfqPUihKmvDQudSNtGNytqCHPbX1LWslKxPyXYGS/le2pKogFMHfD9GcoWsK w55t9Tm6GrikjDMXSgZcLAUdI98SrXBNt3C0BbhN+5xPTkIolZRKic+7s8xKMvxo5zI4 Nw== Original-Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by userp2120.oracle.com with ESMTP id 2qyjfr3fe2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Sun, 03 Mar 2019 17:29:34 +0000 Original-Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by aserv0022.oracle.com (8.14.4/8.14.4) with ESMTP id x23HTXN8018452 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Sun, 3 Mar 2019 17:29:33 GMT Original-Received: from abhmp0015.oracle.com (abhmp0015.oracle.com [141.146.116.21]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id x23HTXE5016369 for ; Sun, 3 Mar 2019 17:29:33 GMT X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4810.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9183 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=1 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1903030137 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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: 209.51.188.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:156001 Archived-At: 1. emacs -Q 2. C-x C-f foo.el 3. Enter this text. Be sure to hit RET after the final right paren, so ther= e is a newline char at the end. (defun foo () (unless t 42))) 4. Put point just before the first left paren, then use `C-M-q'. This error is raised: Wrong type argument: consp, nil If you turn on `debug-on-error' this is what you get: Debugger entered--Lisp error: (wrong-type-argument consp nil) lisp-indent-calc-next(#s(lisp-indent-state :stack (2 nil) :ppss (1 1 12 n= il nil nil 0 nil nil (1) nil) :ppss-point 14)) indent-sexp() indent-pp-sexp(nil) funcall-interactively(indent-pp-sexp nil) call-interactively(indent-pp-sexp nil nil) command-execute(indent-pp-sexp) I see the same regression in Emacs 27, this build (the latest I have): In GNU Emacs 27.0.50 (build 3, x86_64-w64-mingw32) of 2018-03-21 built on CIRROCUMULUS Repository revision: e70d0c9e66d7a8609450b2889869d16aeb0363b5 Windowing system distributor 'Microsoft Corp.', version 10.0.17134 Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. throw-clone-fr-2.el has auto save data; consider M-x recover-this-file indent-sexp: Wrong type argument: consp, nil indent-sexp: Wrong type argument: consp, nil Configured using: 'configure --without-dbus --host=3Dx86_64-w64-mingw32 --without-compress-install -C 'CFLAGS=3D-O2 -static -g3'' I do not see this bug in Emacs 25.3.1. In GNU Emacs 26.1 (build 1, x86_64-w64-mingw32) of 2018-05-30 built on CIRROCUMULUS Repository revision: 07f8f9bc5a51f5aa94eb099f3e15fbe0c20ea1ea Windowing system distributor 'Microsoft Corp.', version 10.0.17134 Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. indent-sexp: Wrong type argument: consp, nil Configured using: 'configure --without-dbus --host=3Dx86_64-w64-mingw32 --without-compress-install 'CFLAGS=3D-O2 -static -g3'' Configured features: XPM JPEG TIFF GIF PNG RSVG SOUND NOTIFY ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS THREADS LCMS2 Important settings: value of $LANG: ENU locale-coding-system: cp1252 Major mode: Emacs-Lisp Minor modes in effect: tooltip-mode: t global-eldoc-mode: t eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib format-spec rfc822 mml easymenu mml-sec password-cache epa derived epg epg-config gnus-util rmail rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils dired dired-loaddefs elec-pair time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel dos-w32 ls-lisp disp-table term/w32-win w32-win w32-vars term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote w32notify w32 lcms2 multi-tty make-network-process emacs) Memory information: ((conses 16 98254 9195) (symbols 56 20427 1) (miscs 48 59 191) (strings 32 29927 1011) (string-bytes 1 764152) (vectors 16 13997) (vector-slots 8 487459 12958) (floats 8 55 315) (intervals 56 248 29) (buffers 992 14))