help-gnu-emacs
[Top][All Lists]
Advanced

[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?











reply via email to

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