emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Emacs-diffs] master 7a0170d 2/2: Don't put whitespace between open


From: Noam Postavsky
Subject: Re: [Emacs-diffs] master 7a0170d 2/2: Don't put whitespace between open paren and comment in Lisp modes (Bug#19740)
Date: Thu, 6 Jul 2017 09:00:00 -0400

On Thu, Jul 6, 2017 at 12:17 AM, Stefan Monnier
<address@hidden> wrote:
>> +(defun lisp-comment-indent ()
>> +  "Like `comment-indent-default', but don't put space after open paren."
>> +  (let ((pt (point)))
>> +    (skip-syntax-backward " ")
>> +    (if (eq (preceding-char) ?\()
>> +        (cons (current-column) (current-column))
>
> This gives:
>
>     (let (;sf
>           (x 3))
>       4)
>
> whereas I'd expect to use comment-column here.
> IOW we should check that this is a double-semi-colon comment before
> applying the new rule.

Oops, good point. Fixed.

[1: 386918f0b8]: 2017-07-06 08:59:32 -0400
  Fix lisp-comment-indent for single-semicolon case
  
http://git.savannah.gnu.org/cgit/emacs.git/commit/?id=386918f0b807116051facbe51a2bee342de37841



reply via email to

[Prev in Thread] Current Thread [Next in Thread]