unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* cl-functions do not honor common-lisp-indent-function
@ 2012-12-24 13:59 Thierry Volpiatto
  2012-12-24 16:18 ` Stefan Monnier
  0 siblings, 1 reply; 17+ messages in thread
From: Thierry Volpiatto @ 2012-12-24 13:59 UTC (permalink / raw)
  To: emacs-devel

Hi, some cl-functions are not indented correctly when
`lisp-indent-function' is set to `common-lisp-indent-function'

--8<---------------cut here---------------start------------->8---
(setq lisp-indent-function 'common-lisp-indent-function)

(defun foo ()
  (cl-flet ((test ()
                  (ignore)))
    (test)))

(defun foo ()
  (flet ((test ()
           (ignore)))
    (test)))
--8<---------------cut here---------------end--------------->8---

is this wanted?

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




^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: cl-functions do not honor common-lisp-indent-function
  2012-12-24 13:59 cl-functions do not honor common-lisp-indent-function Thierry Volpiatto
@ 2012-12-24 16:18 ` Stefan Monnier
  2012-12-26  7:57   ` Thierry Volpiatto
  0 siblings, 1 reply; 17+ messages in thread
From: Stefan Monnier @ 2012-12-24 16:18 UTC (permalink / raw)
  To: Thierry Volpiatto; +Cc: emacs-devel

> Hi, some cl-functions are not indented correctly when
> `lisp-indent-function' is set to `common-lisp-indent-function'

> --8<---------------cut here---------------start------------->8---
> (setq lisp-indent-function 'common-lisp-indent-function)

> (defun foo ()
>   (cl-flet ((test ()
>                   (ignore)))
>     (test)))

> (defun foo ()
>   (flet ((test ()
>            (ignore)))
>     (test)))
> --8<---------------cut here---------------end--------------->8---

> is this wanted?

No, but it's not a surprise either, since `cl-flet' is not defined in
common-lisp ;-).


        Stefan



^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: cl-functions do not honor common-lisp-indent-function
  2012-12-24 16:18 ` Stefan Monnier
@ 2012-12-26  7:57   ` Thierry Volpiatto
  2012-12-26  8:44     ` Helmut Eller
  0 siblings, 1 reply; 17+ messages in thread
From: Thierry Volpiatto @ 2012-12-26  7:57 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: emacs-devel

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

>> Hi, some cl-functions are not indented correctly when
>> `lisp-indent-function' is set to `common-lisp-indent-function'
>
>> --8<---------------cut here---------------start------------->8---
>> (setq lisp-indent-function 'common-lisp-indent-function)
>
>> (defun foo ()
>>   (cl-flet ((test ()
>>                   (ignore)))
>>     (test)))
>
>> (defun foo ()
>>   (flet ((test ()
>>            (ignore)))
>>     (test)))
>> --8<---------------cut here---------------end--------------->8---
>
>> is this wanted?
>
> No, but it's not a surprise either, since `cl-flet' is not defined in
> common-lisp ;-).
The prefix 'cl-' mean common lisp no ? ;-) 
so the cl-* family should be added to cl-indent.el, isn't it ?

(let ((l '((cl-flet . flet)
           (cl-labels . flet)
           (cl-macrolet . flet)
           etc...etc...)))
  (dolist (el l)
       [...]

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



^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: cl-functions do not honor common-lisp-indent-function
  2012-12-26  7:57   ` Thierry Volpiatto
@ 2012-12-26  8:44     ` Helmut Eller
  2012-12-26  9:10       ` Stephen J. Turnbull
  0 siblings, 1 reply; 17+ messages in thread
From: Helmut Eller @ 2012-12-26  8:44 UTC (permalink / raw)
  To: emacs-devel

On Wed, Dec 26 2012, Thierry Volpiatto wrote:

> Stefan Monnier <monnier@iro.umontreal.ca> writes:
>
>> No, but it's not a surprise either, since `cl-flet' is not defined in
>> common-lisp ;-).
> The prefix 'cl-' mean common lisp no ? ;-) 
> so the cl-* family should be added to cl-indent.el, isn't it ?

No, because common-lisp-indent-function is for programs written in
actual Common Lisp.  For Emacs Lisp -- and those cl-* symbols are just
Emacs Lisp -- use the normal lisp-indent-function and if you whish to
add rules for cl-lib add it to lisp-indent-function.

Those cl-* symbols have no (predefined) meaning for Common Lisp so
shouldn't be in cl-indent.el; for the same reason there shouldn't be
rules for save-excursion or condition-case.

Helmut




^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: cl-functions do not honor common-lisp-indent-function
  2012-12-26  8:44     ` Helmut Eller
@ 2012-12-26  9:10       ` Stephen J. Turnbull
  2012-12-26 12:57         ` Helmut Eller
                           ` (2 more replies)
  0 siblings, 3 replies; 17+ messages in thread
From: Stephen J. Turnbull @ 2012-12-26  9:10 UTC (permalink / raw)
  To: Helmut Eller; +Cc: emacs-devel

Helmut Eller writes:

 > Those cl-* symbols have no (predefined) meaning for Common Lisp so
 > shouldn't be in cl-indent.el; for the same reason there shouldn't be
 > rules for save-excursion or condition-case.

That is irrelevant.  If the user thinks of these symbols as equivalent
to "real" Common Lisp standard symbols, then the user has every right
to ask Emacs to treat them as Common Lisp symbols.  That user should
not need to know precisely how that is done, or implement it herself.

In fact, I would argue that the implementer of the "cl-foo is just
like Common Lisp foo" feature probably shouldn't need to know, either.
Instead these should be a minor mode which, when enabled,
automagically looks up every cl-* symbol without the prefix for the
purposes of source code formatting (including syntax highlighting).

I have no idea how to implement that, of course.<wink/>  And I do
agree that purists shouldn't have to put up with that, so it needs to
be modal.




^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: cl-functions do not honor common-lisp-indent-function
  2012-12-26  9:10       ` Stephen J. Turnbull
@ 2012-12-26 12:57         ` Helmut Eller
  2012-12-26 13:12           ` Stephen J. Turnbull
  2012-12-26 13:20           ` Thierry Volpiatto
  2012-12-27 17:24         ` Didier Verna
  2012-12-29  6:43         ` Stefan Monnier
  2 siblings, 2 replies; 17+ messages in thread
From: Helmut Eller @ 2012-12-26 12:57 UTC (permalink / raw)
  To: Stephen J. Turnbull; +Cc: emacs-devel

On Wed, Dec 26 2012, Stephen J. Turnbull wrote:

> Helmut Eller writes:
>
>  > Those cl-* symbols have no (predefined) meaning for Common Lisp so
>  > shouldn't be in cl-indent.el; for the same reason there shouldn't be
>  > rules for save-excursion or condition-case.
>
> That is irrelevant.

Why?  Why should common-lisp-indent-function, by default, implement
something other than the Common Lisp conventions?  Should
scheme-indent-function also support Emacs Lisp macros like cl-flet?

> If the user thinks of these symbols as equivalent
> to "real" Common Lisp standard symbols, then the user has every right
> to ask Emacs to treat them as Common Lisp symbols.

An Emacs Lisp user or for that matter a Scheme user has not "every
right" to dictate the indentation rules for Common Lisp users.

Helmut



^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: cl-functions do not honor common-lisp-indent-function
  2012-12-26 12:57         ` Helmut Eller
@ 2012-12-26 13:12           ` Stephen J. Turnbull
  2012-12-26 16:24             ` Helmut Eller
  2012-12-26 13:20           ` Thierry Volpiatto
  1 sibling, 1 reply; 17+ messages in thread
From: Stephen J. Turnbull @ 2012-12-26 13:12 UTC (permalink / raw)
  To: Helmut Eller; +Cc: emacs-devel

Helmut Eller writes:
 > On Wed, Dec 26 2012, Stephen J. Turnbull wrote:
 > 
 > > Helmut Eller writes:
 > >
 > >  > Those cl-* symbols have no (predefined) meaning for Common Lisp so
 > >  > shouldn't be in cl-indent.el; for the same reason there shouldn't be
 > >  > rules for save-excursion or condition-case.
 > >
 > > That is irrelevant.
 > 
 > Why?  Why should common-lisp-indent-function, by default, implement
 > something other than the Common Lisp conventions?

It shouldn't.  And certainly not by default (perhaps I should have
used the word "optional" instead of "modal").  But you've got the
wrong question.  The right one is the inverse:

    Why should anything other than `common-lisp-indent-function'
    implement the Common Lisp conventions?

 > > If the user thinks of these symbols as equivalent
 > > to "real" Common Lisp standard symbols, then the user has every right
 > > to ask Emacs to treat them as Common Lisp symbols.
 > 
 > An Emacs Lisp user or for that matter a Scheme user has not "every
 > right" to dictate the indentation rules for Common Lisp users.

Of course users of other Lisp dialects should not dictate to Common
Lisp users.  But I was talking about *Emacs* users.  I don't have any
trouble imagining that some Emacs users who program in both Common
Lisp and cl.el would like to see cl-* expressions follow the
corresponding Common Lisp conventions.  After all, the OP is evidently
an example.

Steve




^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: cl-functions do not honor common-lisp-indent-function
  2012-12-26 12:57         ` Helmut Eller
  2012-12-26 13:12           ` Stephen J. Turnbull
@ 2012-12-26 13:20           ` Thierry Volpiatto
  2012-12-26 16:09             ` Helmut Eller
  1 sibling, 1 reply; 17+ messages in thread
From: Thierry Volpiatto @ 2012-12-26 13:20 UTC (permalink / raw)
  To: emacs-devel

Helmut Eller <eller.helmut@gmail.com> writes:

> On Wed, Dec 26 2012, Stephen J. Turnbull wrote:
>
>> Helmut Eller writes:
>>
>>  > Those cl-* symbols have no (predefined) meaning for Common Lisp so
>>  > shouldn't be in cl-indent.el; for the same reason there shouldn't be
>>  > rules for save-excursion or condition-case.
>>
>> That is irrelevant.
>
> Why?  Why should common-lisp-indent-function, by default, implement
> something other than the Common Lisp conventions?  Should
> scheme-indent-function also support Emacs Lisp macros like cl-flet?
Are you going to use cl-* symbols in your scheme or common-lisp files ?
I don't think so, so what will change in the indentation of your
common-lisp files ? Nothing.

>> If the user thinks of these symbols as equivalent
>> to "real" Common Lisp standard symbols, then the user has every right
>> to ask Emacs to treat them as Common Lisp symbols.
>
> An Emacs Lisp user or for that matter a Scheme user has not "every
> right" to dictate the indentation rules for Common Lisp users.
>
> Helmut
>
>

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




^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: cl-functions do not honor common-lisp-indent-function
  2012-12-26 13:20           ` Thierry Volpiatto
@ 2012-12-26 16:09             ` Helmut Eller
  0 siblings, 0 replies; 17+ messages in thread
From: Helmut Eller @ 2012-12-26 16:09 UTC (permalink / raw)
  To: emacs-devel

On Wed, Dec 26 2012, Thierry Volpiatto wrote:

> Helmut Eller <eller.helmut@gmail.com> writes:
>
>> On Wed, Dec 26 2012, Stephen J. Turnbull wrote:
>>
>>> Helmut Eller writes:
>>>
>>>  > Those cl-* symbols have no (predefined) meaning for Common Lisp so
>>>  > shouldn't be in cl-indent.el; for the same reason there shouldn't be
>>>  > rules for save-excursion or condition-case.
>>>
>>> That is irrelevant.
>>
>> Why?  Why should common-lisp-indent-function, by default, implement
>> something other than the Common Lisp conventions?  Should
>> scheme-indent-function also support Emacs Lisp macros like cl-flet?
> Are you going to use cl-* symbols in your scheme or common-lisp files ?

No probably not.

> I don't think so, so what will change in the indentation of your
> common-lisp files ? Nothing.

See, since those cl-* symbols are not often used in Common Lisp there is
no justification for your rules.

Helmut




^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: cl-functions do not honor common-lisp-indent-function
  2012-12-26 13:12           ` Stephen J. Turnbull
@ 2012-12-26 16:24             ` Helmut Eller
  2012-12-26 16:44               ` Thierry Volpiatto
  2012-12-27  4:18               ` Stephen J. Turnbull
  0 siblings, 2 replies; 17+ messages in thread
From: Helmut Eller @ 2012-12-26 16:24 UTC (permalink / raw)
  To: emacs-devel

On Wed, Dec 26 2012, Stephen J. Turnbull wrote:

>     Why should anything other than `common-lisp-indent-function'
>     implement the Common Lisp conventions?

E.g. to avoid conflicts: some other language might have similar but not
quite the same conventions and to avoid the risk of conflicts you
re-implement some of the conventions.

>  > > If the user thinks of these symbols as equivalent
>  > > to "real" Common Lisp standard symbols, then the user has every right
>  > > to ask Emacs to treat them as Common Lisp symbols.
>  > 
>  > An Emacs Lisp user or for that matter a Scheme user has not "every
>  > right" to dictate the indentation rules for Common Lisp users.
>
> Of course users of other Lisp dialects should not dictate to Common
> Lisp users.  But I was talking about *Emacs* users.  I don't have any
> trouble imagining that some Emacs users who program in both Common
> Lisp and cl.el would like to see cl-* expressions follow the
> corresponding Common Lisp conventions.  After all, the OP is evidently
> an example.

When I'm programming Emacs Lisp I use emacs-lisp-mode and I assume that
the default indentation function, i.e. lisp-indentation-function, will
handle all relevant macros.  I fail to see why using
common-lisp-indent-function in emacs-lisp-mode is such a bright idea.

Helmut




^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: cl-functions do not honor common-lisp-indent-function
  2012-12-26 16:24             ` Helmut Eller
@ 2012-12-26 16:44               ` Thierry Volpiatto
  2012-12-26 16:54                 ` Helmut Eller
  2012-12-27  4:18               ` Stephen J. Turnbull
  1 sibling, 1 reply; 17+ messages in thread
From: Thierry Volpiatto @ 2012-12-26 16:44 UTC (permalink / raw)
  To: emacs-devel

Helmut Eller <eller.helmut@gmail.com> writes:

> On Wed, Dec 26 2012, Stephen J. Turnbull wrote:
>
>>     Why should anything other than `common-lisp-indent-function'
>>     implement the Common Lisp conventions?
>
> E.g. to avoid conflicts: some other language might have similar but not
> quite the same conventions and to avoid the risk of conflicts you
> re-implement some of the conventions.
>
>>  > > If the user thinks of these symbols as equivalent
>>  > > to "real" Common Lisp standard symbols, then the user has every right
>>  > > to ask Emacs to treat them as Common Lisp symbols.
>>  > 
>>  > An Emacs Lisp user or for that matter a Scheme user has not "every
>>  > right" to dictate the indentation rules for Common Lisp users.
>>
>> Of course users of other Lisp dialects should not dictate to Common
>> Lisp users.  But I was talking about *Emacs* users.  I don't have any
>> trouble imagining that some Emacs users who program in both Common
>> Lisp and cl.el would like to see cl-* expressions follow the
>> corresponding Common Lisp conventions.  After all, the OP is evidently
>> an example.
>
> When I'm programming Emacs Lisp I use emacs-lisp-mode and I assume that
> the default indentation function, i.e. lisp-indentation-function, will
> handle all relevant macros.
It is not handling all these macros/functions, so what do we do ?

> I fail to see why using common-lisp-indent-function in emacs-lisp-mode
> is such a bright idea.
Because emacs-lisp-mode we may use common-lisp style functions (flet,
labels etc...).
So when you indent e.g a flet clause with emacs-lisp style it is indented
badly.

> Helmut
>
>
>

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




^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: cl-functions do not honor common-lisp-indent-function
  2012-12-26 16:44               ` Thierry Volpiatto
@ 2012-12-26 16:54                 ` Helmut Eller
  2012-12-26 17:09                   ` Thierry Volpiatto
  0 siblings, 1 reply; 17+ messages in thread
From: Helmut Eller @ 2012-12-26 16:54 UTC (permalink / raw)
  To: emacs-devel

On Wed, Dec 26 2012, Thierry Volpiatto wrote:

>> When I'm programming Emacs Lisp I use emacs-lisp-mode and I assume that
>> the default indentation function, i.e. lisp-indentation-function, will
>> handle all relevant macros.
> It is not handling all these macros/functions, so what do we do ?

Improve lisp-indentation-function.

>> I fail to see why using common-lisp-indent-function in emacs-lisp-mode
>> is such a bright idea.
>
> Because emacs-lisp-mode we may use common-lisp style functions (flet,
> labels etc...).
> So when you indent e.g a flet clause with emacs-lisp style it is indented
> badly.

But common-lisp-indent-function will indent "if" like:

(if x
    a
    b)

while the Emacs Lisp convention is:

(if x
    a
  b)

Helmut




^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: cl-functions do not honor common-lisp-indent-function
  2012-12-26 16:54                 ` Helmut Eller
@ 2012-12-26 17:09                   ` Thierry Volpiatto
  0 siblings, 0 replies; 17+ messages in thread
From: Thierry Volpiatto @ 2012-12-26 17:09 UTC (permalink / raw)
  To: emacs-devel

Helmut Eller <eller.helmut@gmail.com> writes:

> On Wed, Dec 26 2012, Thierry Volpiatto wrote:
>
>>> When I'm programming Emacs Lisp I use emacs-lisp-mode and I assume that
>>> the default indentation function, i.e. lisp-indentation-function, will
>>> handle all relevant macros.
>> It is not handling all these macros/functions, so what do we do ?
>
> Improve lisp-indentation-function.
>
>>> I fail to see why using common-lisp-indent-function in emacs-lisp-mode
>>> is such a bright idea.
>>
>> Because emacs-lisp-mode we may use common-lisp style functions (flet,
>> labels etc...).
>> So when you indent e.g a flet clause with emacs-lisp style it is indented
>> badly.
>
> But common-lisp-indent-function will indent "if" like:
>
> (if x
>     a
>     b)
>
> while the Emacs Lisp convention is:
>
> (if x
>     a
>   b)

Not a problem for me, one or the other is not bad, just a different
style. (I prefer the common-lisp style for `if')

I understand your point of view, the problem is to indent and fontlock
correctly all the common-lisp style functions used in emacs-lisp-mode,
in one way or the other.
I agree that the best would be to handle this for emacs-lisp-mode
without using an indentation destinated for another mode (lisp).
Unfortunately it is missing, not implemented, so we use the "less bad"
solution, using common-lisp indentation style for all with some tweaking
for the cl-* ones that are not supported in both style.

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




^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: cl-functions do not honor common-lisp-indent-function
  2012-12-26 16:24             ` Helmut Eller
  2012-12-26 16:44               ` Thierry Volpiatto
@ 2012-12-27  4:18               ` Stephen J. Turnbull
  2012-12-27  8:18                 ` Helmut Eller
  1 sibling, 1 reply; 17+ messages in thread
From: Stephen J. Turnbull @ 2012-12-27  4:18 UTC (permalink / raw)
  To: Helmut Eller; +Cc: emacs-devel

Helmut Eller writes:

 > I fail to see why using common-lisp-indent-function in
 > emacs-lisp-mode is such a bright idea.

"You fail" is precisely correct.  Nothing wrong with that, it's not
your job to think like anybody but you.  That's why it should be an
option ("minor mode", eg, cl-shadows-common-lisp-mode).

Others who habitually use cl want *their* Elisp to "look and feel" as
much like Common Lisp as possible, *including any local mods they may
have made to "standard" Common Lisp formatting conventions*.  By the
same token, it's nobody else's job to think like you.  That's why it
should be an option.  I tend to agree with you that it should default
"off", but that's up to the maintainers, and it doesn't matter much.

It is Emacs's job to adapt as well as possible to *both* opinions.
That's certainly possible here.  Add DRY, and the bright idea follows.



^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: cl-functions do not honor common-lisp-indent-function
  2012-12-27  4:18               ` Stephen J. Turnbull
@ 2012-12-27  8:18                 ` Helmut Eller
  0 siblings, 0 replies; 17+ messages in thread
From: Helmut Eller @ 2012-12-27  8:18 UTC (permalink / raw)
  To: emacs-devel

On Thu, Dec 27 2012, Stephen J. Turnbull wrote:

> Helmut Eller writes:
>
>  > I fail to see why using common-lisp-indent-function in
>  > emacs-lisp-mode is such a bright idea.
>
> "You fail" is precisely correct.  Nothing wrong with that, it's not
> your job to think like anybody but you.  That's why it should be an
> option ("minor mode", eg, cl-shadows-common-lisp-mode).
>
> Others who habitually use cl want *their* Elisp to "look and feel" as
> much like Common Lisp as possible, *including any local mods they may
> have made to "standard" Common Lisp formatting conventions*.  By the
> same token, it's nobody else's job to think like you.  That's why it
> should be an option.  I tend to agree with you that it should default
> "off", but that's up to the maintainers, and it doesn't matter much.
>
> It is Emacs's job to adapt as well as possible to *both* opinions.
> That's certainly possible here.  Add DRY, and the bright idea follows.

Apparently we are in wild agreement: common-lisp-indent-function should
not handle cl-* symbols by default.

Helmut




^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: cl-functions do not honor common-lisp-indent-function
  2012-12-26  9:10       ` Stephen J. Turnbull
  2012-12-26 12:57         ` Helmut Eller
@ 2012-12-27 17:24         ` Didier Verna
  2012-12-29  6:43         ` Stefan Monnier
  2 siblings, 0 replies; 17+ messages in thread
From: Didier Verna @ 2012-12-27 17:24 UTC (permalink / raw)
  To: Stephen J. Turnbull; +Cc: Helmut Eller, emacs-devel

Stephen J. Turnbull wrote:

> Helmut Eller writes:
>
>  > Those cl-* symbols have no (predefined) meaning for Common Lisp so
>  > shouldn't be in cl-indent.el; for the same reason there shouldn't be
>  > rules for save-excursion or condition-case.
>
> That is irrelevant.  If the user thinks of these symbols as equivalent
> to "real" Common Lisp standard symbols, then the user has every right
> to ask Emacs to treat them as Common Lisp symbols.  That user should
> not need to know precisely how that is done, or implement it herself.

  cl-indent is meant for providing indentation in *real* Common Lisp
  source files. The cl-* functions will not appear in Common Lisp code
  so cl-indent shouldn't know about them.

  The cl-* functions may however appear in Emacs Lisp code, so indenting
  them properly (that is, in a CL style because these functions provide
  CL functionality to elisp) is a job for (lisp-indent-function). It is
  currently missing.

  Note that I happen to *not* use (lisp-indent-function) at all, but
  always (common-lisp-indent-function), even in Emacs Lisp files. In
  such a situation, I still consider that I'm doing something
  non-standard, and so I wouldn't complain because the cl-* functions
  are not indented properly by cl-indent. I think it's my job, as an
  end-user who's doing something weird, to support them by hacking my
  configuration.

  Of course, if there were also a shortcut such as
  (cl-indent-add-cl-lib-support), that would be nice.

-- 
ELS 2013, June 3/4, Madrid, Spain:  http://els2013.european-lisp-symposium.org

Scientific site:   http://www.lrde.epita.fr/~didier
Music (Jazz) site: http://www.didierverna.com



^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: cl-functions do not honor common-lisp-indent-function
  2012-12-26  9:10       ` Stephen J. Turnbull
  2012-12-26 12:57         ` Helmut Eller
  2012-12-27 17:24         ` Didier Verna
@ 2012-12-29  6:43         ` Stefan Monnier
  2 siblings, 0 replies; 17+ messages in thread
From: Stefan Monnier @ 2012-12-29  6:43 UTC (permalink / raw)
  To: Stephen J. Turnbull; +Cc: Helmut Eller, emacs-devel

> Instead these should be a minor mode which, when enabled,
> automagically looks up every cl-* symbol without the prefix for the
> purposes of source code formatting (including syntax highlighting).

No need for a minor mode.  emacs-lisp-mode's indentation code should do that.


        Stefan



^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2012-12-29  6:43 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-12-24 13:59 cl-functions do not honor common-lisp-indent-function Thierry Volpiatto
2012-12-24 16:18 ` Stefan Monnier
2012-12-26  7:57   ` Thierry Volpiatto
2012-12-26  8:44     ` Helmut Eller
2012-12-26  9:10       ` Stephen J. Turnbull
2012-12-26 12:57         ` Helmut Eller
2012-12-26 13:12           ` Stephen J. Turnbull
2012-12-26 16:24             ` Helmut Eller
2012-12-26 16:44               ` Thierry Volpiatto
2012-12-26 16:54                 ` Helmut Eller
2012-12-26 17:09                   ` Thierry Volpiatto
2012-12-27  4:18               ` Stephen J. Turnbull
2012-12-27  8:18                 ` Helmut Eller
2012-12-26 13:20           ` Thierry Volpiatto
2012-12-26 16:09             ` Helmut Eller
2012-12-27 17:24         ` Didier Verna
2012-12-29  6:43         ` Stefan Monnier

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).