emacs-devel
[Top][All Lists]
Advanced

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

Re: [PATCHv3 0/3] Add `notes' function, take three


From: Michal Nazarewicz
Subject: Re: [PATCHv3 0/3] Add `notes' function, take three
Date: Fri, 21 Jun 2013 19:13:26 +0200
User-agent: Notmuch/0.15.2+55~geb6e9d8 (http://notmuchmail.org) Emacs/24.3.50.3 (x86_64-unknown-linux-gnu)

On Fri, Jun 21 2013, Stefan Monnier wrote:
>> Change to kill-buffer allowed an advice to be replaced with a hook,
>
> OK
>
>> and after looking more closely at remember.el, I think notes might be
>> a good fit for it.
>
> Indeed.  Why even define a separate notes-file?

I wanted to keep it as an option for people who would like to use
remember to store data in notes file which then gets processed somehow
(I've never used remember before now, so I'm not sure what that could
involve) while use notes for some random data.  As far as *I'm*
concerned, I can leave w/o notes-file and just remember-data-file.

> And why not use (find-file-noselect notes-file), maybe followed by
> a rename-buffer?

I'll take a look at it.

>> Stefan, are you still not convinced, and prefer to have it in ELPA
>> after all?
>
> No, I think remember.el is a good place for it.  It would also be good
> to use the "remember-" prefix.

Will do.

>> The second patch is actually unrelated, but something I've noticed
>> while playing with notes.
>
> Good point.  I think we should turn get-file-buffer into an alias for
> find-buffer-visiting.

$ grep find-buffer-visiting $(grep -Rl get-file-buffer **/*.el) |wc -l
43

so it seems that in most cases code sticks to either of the two
functions, and some of the above occurrences are XEmacs compatibility
functions, comments, and situations where it would seem that the code
could be easily converted to stick to find-buffer-visiting.

So yeah, I guess it is doable.

-- 
Best regards,                                         _     _
.o. | Liege of Serenely Enlightened Majesty of      o' \,=./ `o
..o | Computer Science,  Michał “mina86” Nazarewicz    (o o)
ooo +----<email/xmpp: address@hidden>--------------ooO--(_)--Ooo--

Attachment: signature.asc
Description: PGP signature


reply via email to

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