* byte-decompile-directory ?
@ 2017-05-01 7:59 Julien Cubizolles
2017-05-01 12:37 ` hector
2017-05-01 13:34 ` Drew Adams
0 siblings, 2 replies; 5+ messages in thread
From: Julien Cubizolles @ 2017-05-01 7:59 UTC (permalink / raw)
To: help-gnu-emacs
Does Emacs provide a function to remove all the .elc files from a
directory ?
Julien.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: byte-decompile-directory ?
2017-05-01 7:59 byte-decompile-directory ? Julien Cubizolles
@ 2017-05-01 12:37 ` hector
2017-05-02 14:47 ` Julien Cubizolles
2017-05-01 13:34 ` Drew Adams
1 sibling, 1 reply; 5+ messages in thread
From: hector @ 2017-05-01 12:37 UTC (permalink / raw)
To: help-gnu-emacs
On Mon, May 01, 2017 at 09:59:06AM +0200, Julien Cubizolles wrote:
> Does Emacs provide a function to remove all the .elc files from a
> directory ?
I don't think it does. If it would I wouldn't see the point.
You just need a shell:
rm *.elc
As easy as that. Anyway if you want you can use shell-command:
M-! rm *.elc
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: byte-decompile-directory ?
2017-05-01 12:37 ` hector
@ 2017-05-02 14:47 ` Julien Cubizolles
2017-05-02 15:14 ` Drew Adams
0 siblings, 1 reply; 5+ messages in thread
From: Julien Cubizolles @ 2017-05-02 14:47 UTC (permalink / raw)
To: help-gnu-emacs
hector <hectorlahoz@gmail.com> writes:
> On Mon, May 01, 2017 at 09:59:06AM +0200, Julien Cubizolles wrote:
>> Does Emacs provide a function to remove all the .elc files from a
>> directory ?
>
> I don't think it does. If it would I wouldn't see the point.
> You just need a shell:
>
> rm *.elc
I ended up using
find -name '*.elc' -exec rm {} \;
to remove it from all subdirectories
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: byte-decompile-directory ?
2017-05-02 14:47 ` Julien Cubizolles
@ 2017-05-02 15:14 ` Drew Adams
0 siblings, 0 replies; 5+ messages in thread
From: Drew Adams @ 2017-05-02 15:14 UTC (permalink / raw)
To: Julien Cubizolles, help-gnu-emacs
> I ended up using
> find -name '*.elc' -exec rm {} \; to remove it from all subdirectories
(FWIW, you said directory, not also subdirs.)
In that case, if you want to do it from Emacs, with Dired,
you can do it by using `R' as one of the `ls' switches
(e.g. `C-u C-x d' then `-alFR'), then `% d \ . e l c $`
to mark *.elc and `x' to delete.
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: byte-decompile-directory ?
2017-05-01 7:59 byte-decompile-directory ? Julien Cubizolles
2017-05-01 12:37 ` hector
@ 2017-05-01 13:34 ` Drew Adams
1 sibling, 0 replies; 5+ messages in thread
From: Drew Adams @ 2017-05-01 13:34 UTC (permalink / raw)
To: Julien Cubizolles, help-gnu-emacs
> Does Emacs provide a function to remove all the .elc files from a
> directory ?
Use `% d \ . e l c $` in Dired to flag the files for deletion.
Then use `x' to delete them.
If you use Dired+ you can also use `* . e l c', then `D'.
The first (`% d') matches file names against a regexp.
The second (`* .') matches file-name extensions.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2017-05-02 15:14 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-01 7:59 byte-decompile-directory ? Julien Cubizolles
2017-05-01 12:37 ` hector
2017-05-02 14:47 ` Julien Cubizolles
2017-05-02 15:14 ` Drew Adams
2017-05-01 13:34 ` Drew Adams
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.