emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [elpa] externals/auctex 7e762b9 09/10: Add support for prettify-symb


From: Tassilo Horn
Subject: Re: [elpa] externals/auctex 7e762b9 09/10: Add support for prettify-symbols-mode
Date: Tue, 01 Sep 2015 08:18:36 +0200
User-agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.0.50 (gnu/linux)

Stefan Monnier <address@hidden> 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 via email to

[Prev in Thread] Current Thread [Next in Thread]