From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#21090: 25.0.50; `condition-case-no-debug': Please fix indentation & highlighting Date: Sat, 30 Apr 2016 23:24:51 +0200 Message-ID: <87oa8qaixo.fsf@gnus.org> References: <9f06ef83-8877-41ef-b6d5-ce551d9826bb@default> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1462051549 31287 80.91.229.3 (30 Apr 2016 21:25:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 30 Apr 2016 21:25:49 +0000 (UTC) Cc: Stefan Monnier , 21090@debbugs.gnu.org To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Apr 30 23:25:38 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 1awcOO-0001W1-7P for geb-bug-gnu-emacs@m.gmane.org; Sat, 30 Apr 2016 23:25:36 +0200 Original-Received: from localhost ([::1]:59759 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1awcOK-0007MI-4O for geb-bug-gnu-emacs@m.gmane.org; Sat, 30 Apr 2016 17:25:32 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50730) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1awcOA-00077s-20 for bug-gnu-emacs@gnu.org; Sat, 30 Apr 2016 17:25:28 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1awcNy-0000cA-Gc for bug-gnu-emacs@gnu.org; Sat, 30 Apr 2016 17:25:16 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:46245) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1awcNy-0000ap-DX for bug-gnu-emacs@gnu.org; Sat, 30 Apr 2016 17:25:10 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1awcNp-000208-VT for bug-gnu-emacs@gnu.org; Sat, 30 Apr 2016 17:25:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 30 Apr 2016 21:25: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.14620515007680 (code B ref 21090); Sat, 30 Apr 2016 21:25:01 +0000 Original-Received: (at 21090) by debbugs.gnu.org; 30 Apr 2016 21:25:00 +0000 Original-Received: from localhost ([127.0.0.1]:58579 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1awcNo-0001zo-4T for submit@debbugs.gnu.org; Sat, 30 Apr 2016 17:25:00 -0400 Original-Received: from hermes.netfonds.no ([80.91.224.195]:60563) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1awcNk-0001ze-V2 for 21090@debbugs.gnu.org; Sat, 30 Apr 2016 17:24:58 -0400 Original-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 1awcNh-0006ss-7a; Sat, 30 Apr 2016 23:24:55 +0200 In-Reply-To: (Drew Adams's message of "Mon, 20 Jul 2015 08:01:13 -0700 (PDT)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) 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:117450 Archived-At: Drew Adams writes: > (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'. So this bug report is that if you indent Emacs Lisp code with the Common Lisp indentation function, then it doesn't do the right thing? I don't think this is a bug. Closing. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no