emacs-devel
[Top][All Lists]
Advanced

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

Re: simple useful functions


From: Andreas Röhler
Subject: Re: simple useful functions
Date: Wed, 03 Nov 2010 09:09:19 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.1.11) Gecko/20100711 Thunderbird/3.0.6

Am 03.11.2010 06:27, schrieb Stephen J. Turnbull:
Tak Ota writes:

  >  Don't you like the simplicity?

Proliferating unrelated functions is a complexity of its own.  Occur
already does this kind of thing;

Hi Stephen,

AFAIU `occur' selects lines, not strings.

Isn't `collect-string' an instructive example how to write simple and effective code in Emacs Lisp?

Andreas


that's where I would look for this
functionality.  Sure, you can add the function, but unless you can
document it for other users in a discoverable way, you should add it
to your init file, not to Emacs. ;-)

  >  How about simply adding collect-string to replace.el instead of
  >  trying to associate it with occur in a clumsy way?

Uh, what "replace" functionality does "collect-string" provide?







reply via email to

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