[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Defining functions on the fly
From: |
Andreas Röhler |
Subject: |
Re: Defining functions on the fly |
Date: |
Mon, 15 Jun 2015 13:21:18 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 |
Am 15.06.2015 um 11:57 schrieb Pascal J. Bourguignon:
[ ... ]
Just call your function (named as you wish) from the several modes, DO
NOT DUPLICATE THEM!
It's not about duplication, but derivation. The original DTRT in most cases.
Point of interest are the exceptions - see for example in Elixir
https://github.com/elixir-lang/emacs-elixir/issues/185
"\"foo\"" |> String.strip(?")
Where the doublquote after question mark makes Emacs think it's a string-start
- which isn't.
So have to tweak some routines when loading it.
BTW this seems an occasion to use eieio and inheritance, right?
- Re: Defining functions on the fly, (continued)
- Message not available
- Re: Defining functions on the fly, Stefan Monnier, 2015/06/16
- Message not available
- Re: Defining functions on the fly, Stefan Monnier, 2015/06/16
- Re: Defining functions on the fly, Andreas Röhler, 2015/06/17
- Message not available
- Re: Defining functions on the fly, Stefan Monnier, 2015/06/17
- Re: Defining functions on the fly, Andreas Röhler, 2015/06/17
Re: Defining functions on the fly, Pascal J. Bourguignon, 2015/06/15
- Re: Defining functions on the fly,
Andreas Röhler <=
Re: Defining functions on the fly, Gene, 2015/06/15
Re: Defining functions on the fly, Andreas Röhler, 2015/06/16