unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#27646: Bug: Emacs Lisp Indentation
@ 2017-07-10 20:05 Alexander Shukaev
  2017-07-11  1:05 ` npostavs
  0 siblings, 1 reply; 7+ messages in thread
From: Alexander Shukaev @ 2017-07-10 20:05 UTC (permalink / raw)
  To: 27646; +Cc: npostavs

Hi,

With latest Emacs, I see the following indentation quirk with the Emacs 
Lisp list:

(defconst init-font-lock-keywords
   `(,@(let ((constant-pattern "\\(?:\\sw\\|\\s_\\)+")
             (keywords         nil))
         (dolist (symbol '(init-a
                            init-b
                            init-c
                            init-d
                            init-e
                            init-f))
           (push `(,(format "(%s\\_>" symbol)
                   (,constant-pattern
                    (save-excursion
                      (search-forward-regexp ,constant-pattern))
                    nil
                    (0 font-lock-constant-face nil t)))
                 keywords))
         keywords)))

instead of the expected:

(defconst init-font-lock-keywords
   `(,@(let ((constant-pattern "\\(?:\\sw\\|\\s_\\)+")
             (keywords         nil))
         (dolist (symbol '(init-a
                           init-b
                           init-c
                           init-d
                           init-e
                           init-f))
           (push `(,(format "(%s\\_>" symbol)
                   (,constant-pattern
                    (save-excursion
                      (search-forward-regexp ,constant-pattern))
                    nil
                    (0 font-lock-constant-face nil t)))
                 keywords))
         keywords)))

Please, have a look as time permits.  Thank you in advance!

Kind regards,
Alexander





^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2022-01-30 22:46 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-07-10 20:05 bug#27646: Bug: Emacs Lisp Indentation Alexander Shukaev
2017-07-11  1:05 ` npostavs
2017-11-29  2:26   ` Noam Postavsky
2019-12-19  1:27     ` Alexander Shukaev
2020-01-17 17:58       ` Noam Postavsky
2020-01-17 20:26         ` bug#21922: " Alexander Shukaev
2022-01-30 22:46           ` Lars Ingebrigtsen

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).