all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: "Philipp Stephani" <p.stephani2@gmail.com>,
	"Noam Postavsky" <npostavs@gmail.com>,
	43329@debbugs.gnu.org, "João Távora" <joaotavora@gmail.com>
Subject: bug#43329: 28.0.50; Incorrect indentation for variables starting with `def' in let form
Date: Sun, 13 Sep 2020 19:20:47 +0200	[thread overview]
Message-ID: <87een5h9u8.fsf@gnus.org> (raw)
In-Reply-To: <jwvr1r58zx0.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Sun, 13 Sep 2020 11:24:43 -0400")

Stefan Monnier <monnier@iro.umontreal.ca> writes:

> Indeed (and I think we've been getting there bit by bit.  Not sure how
> far we stand from that nowadays).

João suggested over on bug#33301 to only make the heuristic happen for
macros, and I was sceptical, but:

> Indeed I don't know how to proceed.  There seem to be around 34. 
> Add indent specs for these 34 symbols? I suspect that some have exclusively
> one-line uses that don't need them.

So 34 in-tree functions that start with "def", but an unknown number of
macros.  That's not a lot, and I think we should add indent specs to all
of them, including the macros.

> Of course, that won't help with
>
>     (let ((defvar
>            3))
>       (+ defvar 5))
>
> and other oddball cases ;-)

Heh, no.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





  reply	other threads:[~2020-09-13 17:20 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-11 10:10 bug#43329: 28.0.50; Incorrect indentation for variables starting with `def' in let form Philipp Stephani
2020-09-11 10:26 ` Lars Ingebrigtsen
2020-09-11 16:35   ` Noam Postavsky
2020-09-12 11:57     ` Lars Ingebrigtsen
2020-09-12 15:48       ` Stefan Monnier
2020-09-13 12:44         ` Lars Ingebrigtsen
2020-09-13 15:24           ` Stefan Monnier
2020-09-13 17:20             ` Lars Ingebrigtsen [this message]
2021-10-13 19:23               ` Lars Ingebrigtsen
2021-10-18  8:00                 ` bug#43329: bug#33301: 27.0.50; broken elisp indentation for non-definition symbols starting with "def.." Lars Ingebrigtsen

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87een5h9u8.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=43329@debbugs.gnu.org \
    --cc=joaotavora@gmail.com \
    --cc=monnier@iro.umontreal.ca \
    --cc=npostavs@gmail.com \
    --cc=p.stephani2@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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.