unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Thierry Volpiatto <thierry.volpiatto@gmail.com>
To: Glenn Morris <rgm@gnu.org>
Cc: 10968@debbugs.gnu.org
Subject: bug#10968: 24.0.94; loop indentation with `C-M-q' broken
Date: Fri, 09 Mar 2012 23:05:07 +0100	[thread overview]
Message-ID: <87lin9toq4.fsf@gmail.com> (raw)
In-Reply-To: <b0boo58wui.fsf@fencepost.gnu.org> (Glenn Morris's message of "Fri, 09 Mar 2012 13:15:17 -0500")

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:

--8<---------------cut here---------------start------------->8---
(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))
--8<---------------cut here---------------end--------------->8---

-- 
  Thierry
Get my Gnupg key:
gpg --keyserver pgp.mit.edu --recv-keys 59F29997 





  reply	other threads:[~2012-03-09 22:05 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 [this message]
2017-04-02  1:15     ` npostavs

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=87lin9toq4.fsf@gmail.com \
    --to=thierry.volpiatto@gmail.com \
    --cc=10968@debbugs.gnu.org \
    --cc=rgm@gnu.org \
    /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).