From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#21090: 25.0.50; `condition-case-no-debug': Please fix indentation & highlighting Date: Mon, 20 Jul 2015 08:01:13 -0700 (PDT) Message-ID: References: <9f06ef83-8877-41ef-b6d5-ce551d9826bb@default> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1437404629 6212 80.91.229.3 (20 Jul 2015 15:03:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 20 Jul 2015 15:03:49 +0000 (UTC) Cc: 21090@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jul 20 17:03:36 2015 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 1ZHCbP-0001Ai-PS for geb-bug-gnu-emacs@m.gmane.org; Mon, 20 Jul 2015 17:03:35 +0200 Original-Received: from localhost ([::1]:55759 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZHCbP-0000kl-6k for geb-bug-gnu-emacs@m.gmane.org; Mon, 20 Jul 2015 11:03:35 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33567) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZHCZz-0007Ip-AI for bug-gnu-emacs@gnu.org; Mon, 20 Jul 2015 11:02:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZHCZu-0005S4-HB for bug-gnu-emacs@gnu.org; Mon, 20 Jul 2015 11:02:07 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:53280) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZHCZu-0005Rp-9H for bug-gnu-emacs@gnu.org; Mon, 20 Jul 2015 11:02:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZHCZt-0001Q7-P0 for bug-gnu-emacs@gnu.org; Mon, 20 Jul 2015 11:02:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 20 Jul 2015 15:02:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21090 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 21090-submit@debbugs.gnu.org id=B21090.14374044885414 (code B ref 21090); Mon, 20 Jul 2015 15:02:01 +0000 Original-Received: (at 21090) by debbugs.gnu.org; 20 Jul 2015 15:01:28 +0000 Original-Received: from localhost ([127.0.0.1]:54726 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZHCZL-0001PF-87 for submit@debbugs.gnu.org; Mon, 20 Jul 2015 11:01:27 -0400 Original-Received: from aserp1040.oracle.com ([141.146.126.69]:33421) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZHCZI-0001P1-Qn for 21090@debbugs.gnu.org; Mon, 20 Jul 2015 11:01:25 -0400 Original-Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id t6KF1HGL023365 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 20 Jul 2015 15:01:18 GMT Original-Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by userv0021.oracle.com (8.13.8/8.13.8) with ESMTP id t6KF1EHD018781 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Mon, 20 Jul 2015 15:01:16 GMT Original-Received: from abhmp0002.oracle.com (abhmp0002.oracle.com [141.146.116.8]) by userv0121.oracle.com (8.13.8/8.13.8) with ESMTP id t6KF1Ef6016761; Mon, 20 Jul 2015 15:01:14 GMT In-Reply-To: X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9 (901082) [OL 12.0.6691.5000 (x86)] X-Source-IP: userv0021.oracle.com [156.151.31.71] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:105041 Archived-At: > do you have a recipe to reproduce this..., starting from "emacs -Q"? Dunno whether you want to consider this a bug, as it involves `common-lisp-indent-function'. Perhaps you will consider it a feature. Anyway, the behavior changed to the current behavior in Emacs 24.1. Before that, there was no such problem with indentation. 1. emacs -Q 2. Put this in a file foo.el, then kill the foo.el buffer or restart Emacs: ----------------8<----------------- (defun foo () "" (interactive) (condition-case-no-debug foo (save-excursion (goto-char 44)) (error (error "%s" (error-message-string foo))))) ----------------8<----------------- 3. Evaluate this, then visit file foo.el. (defun lisp-indentation-hack () (unless (load-history-filename-element (load-history-regexp "cl-indent")) (load "cl-indent" nil t)) (set (make-local-variable 'lisp-indent-function) 'common-lisp-indent-function)) (add-hook 'emacs-lisp-mode-hook 'lisp-indentation-hack) 4. Put point at beginning of the `(defun....)' in foo.el, and hit `C-M-q'. Result: (defun foo () "" (interactive) (condition-case-no-debug foo (save-excursion (goto-char 44)) (error (error "%s" (error-message-string foo))))= ) Prior to Emacs 24.1, there is no change in indentation. Starting with 24.1, the `save-excursion' and `error' sexps are aligned with `foo'.