From: npostavs@users.sourceforge.net
To: Thierry Volpiatto <thierry.volpiatto@gmail.com>
Cc: 10968@debbugs.gnu.org
Subject: bug#10968: 24.0.94; loop indentation with `C-M-q' broken
Date: Sat, 01 Apr 2017 21:15:30 -0400 [thread overview]
Message-ID: <87h927zk25.fsf@users.sourceforge.net> (raw)
In-Reply-To: <87lin9toq4.fsf@gmail.com> (Thierry Volpiatto's message of "Fri, 09 Mar 2012 23:05:07 +0100")
retitle 10968 common-lisp-indent-function, `C-M-q' on multiline `loop' broken
found 10968 25.2
tags 10968 fixed
close 10968 26.1
quit
Thierry Volpiatto <thierry.volpiatto@gmail.com> writes:
> Glenn Morris <rgm@gnu.org> writes:
>
>> Thierry Volpiatto wrote:
>>
>>> It seem indenting a CL loop with `C-M-q' (indent-pp-sexp)
>>> doesn't work anymore unless the loop close is <= two lines.
>>
>> Please give an example.
> (require 'cl)
> (setq lisp-indent-function 'common-lisp-indent-function)
>
> Use C-M-q on following sexp:
>
> (loop with cont = (make-hash-table :test test)
> for elm in seq
> unless (gethash elm cont)
> do (puthash elm elm cont)
> finally return
> (loop for i being the hash-values in cont collect i))
With current master I get
(loop with cont = (make-hash-table :test test)
for elm in seq
unless (gethash elm cont)
do (puthash elm elm cont)
finally return
(loop for i being the hash-values in cont collect i))
I believe this is correct.
prev parent reply other threads:[~2017-04-02 1:15 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-08 6:33 bug#10968: 24.0.94; loop indentation with `C-M-q' broken Thierry Volpiatto
2012-03-09 18:15 ` Glenn Morris
2012-03-09 22:05 ` Thierry Volpiatto
2017-04-02 1:15 ` npostavs [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87h927zk25.fsf@users.sourceforge.net \
--to=npostavs@users.sourceforge.net \
--cc=10968@debbugs.gnu.org \
--cc=thierry.volpiatto@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).