emacs-devel
[Top][All Lists]
Advanced

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

Re: [ELPA] New package: transient


From: Yuan Fu
Subject: Re: [ELPA] New package: transient
Date: Wed, 29 Apr 2020 10:17:50 -0400


> On Apr 29, 2020, at 9:32 AM, Stefan Monnier <address@hidden> wrote:
> 
> FWIW, I completely agree with this.
> Emacs's own "core" library should follow the "prefix" convention.
> The resulting "structuring" of the names would help discoverability
> 
> This was a major motivation for the `seq` and `map` packages, and maybe
> we should keep doing that with more things (e.g. add a `list` package
> where all the list functions get a new name using the `list` prefix, or
> add a `process` package were all the process related primitives are
> given a "process-"prefix, ...).
> 
> 
>        Stefan
> 

It would be nice to organize all the file-related functions better. Currently 
all the file-xx, file-name-xx, directory-xx names are not the easiest to find. 
I still could find them easily despite having used them for many times. 

It would be also nice if we can add some common shortcuts like

(defun file-content (file)
  (with-temp-buffer
    (insert-file-contents file)
    (buffer-substring-no-properties)))

That should prevents people from writing 

(find-file file)
(buffer-string)


Yuan






reply via email to

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