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: Stefan Monnier
Subject: Re: [Emacs-diffs] master 7a0170d 2/2: Don't put whitespace between open paren and comment in Lisp modes (Bug#19740)
Date: Thu, 06 Jul 2017 00:17:44 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)

> +(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.


        Stefan



reply via email to

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