all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Tassilo Horn <tsdh@gnu.org>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-devel@gnu.org
Subject: Re: [elpa] externals/auctex 7e762b9 09/10: Add support for prettify-symbols-mode
Date: Tue, 01 Sep 2015 08:18:36 +0200	[thread overview]
Message-ID: <87oahmk6gz.fsf@gnu.org> (raw)
In-Reply-To: <jwv1teje46l.fsf-monnier+emacsdiffs@gnu.org> (Stefan Monnier's message of "Mon, 31 Aug 2015 13:54:35 -0400")

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

>>> I recently solved the same problem in elpa/packages/dts-mode with
>>> dts--using-macro.
>> Is that what I should use?
>
> I think for this use-case, it looks OK, yes.

Thanks.

>> I guess you also know how to fix the FIXME about the
>> indentation, right?
>
> Maybe (declare (indent if)) works?

No, that gives:

--8<---------------cut here---------------start------------->8---
Debugger entered--Lisp error: (invalid-function if)
  if(126797 (3 126761 126784 nil nil nil 0 nil nil (124088 126572 126761)))
  lisp-indent-function(126797 (3 126761 126784 nil nil nil 0 nil nil (124088 126572 126761)))
  calculate-lisp-indent()
  lisp-indent-line()
  indent-for-tab-command(nil)
  funcall-interactively(indent-for-tab-command nil)
  call-interactively(indent-for-tab-command nil nil)
  command-execute(indent-for-tab-command)
--8<---------------cut here---------------end--------------->8---

But the definition of `if-let' suggested that I'm looking for (indent 2)
which indeed has the desired effect.

>> +	   `(eval (progn ',else)))))) ;Otherwise, run the else code.
>
> I think you can just use ‘else’ here without going through ‘eval’.

Even better, thanks.

Bye,
Tassilo



      reply	other threads:[~2015-09-01  6:18 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20150828085448.24208.47194@vcs.savannah.gnu.org>
     [not found] ` <E1ZVFQz-0006Kf-Lb@vcs.savannah.gnu.org>
2015-08-28 16:45   ` [elpa] externals/auctex 7e762b9 09/10: Add support for prettify-symbols-mode Stefan Monnier
2015-08-31  9:34     ` Tassilo Horn
2015-08-31 17:54       ` Stefan Monnier
2015-09-01  6:18         ` Tassilo Horn [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

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

  git send-email \
    --in-reply-to=87oahmk6gz.fsf@gnu.org \
    --to=tsdh@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /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.