Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
da49096f
Commit
da49096f
authored
Nov 19, 2005
by
Andreas Schwab
Browse files
Handle compressed files.
parent
f0f98146
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
lisp/ChangeLog
lisp/ChangeLog
+4
-0
lisp/emacs-lisp/shadow.el
lisp/emacs-lisp/shadow.el
+5
-2
No files found.
lisp/ChangeLog
View file @
da49096f
2005-11-19 Andreas Schwab <schwab@suse.de>
* emacs-lisp/shadow.el: Handle compressed files.
2005-11-19 Romain Francoise <romain@orebokech.com>
* net/browse-url.el (browse-url-default-browser): Signal an error
...
...
lisp/emacs-lisp/shadow.el
View file @
da49096f
...
...
@@ -104,7 +104,7 @@ See the documentation for `list-load-path-shadows' for further information."
(
setq
true-names
(
append
true-names
(
list
dir
)))
(
setq
dir
(
directory-file-name
(
or
(
car
path
)
"."
)))
(
setq
curr-files
(
if
(
file-accessible-directory-p
dir
)
(
directory-files
dir
nil
".\\.elc?$"
t
)))
(
directory-files
dir
nil
".\\.elc?
\\(\\.gz\\)?
$"
t
)))
(
and
curr-files
(
not
noninteractive
)
(
message
"Checking %d files in %s..."
(
length
curr-files
)
dir
))
...
...
@@ -114,6 +114,8 @@ See the documentation for `list-load-path-shadows' for further information."
(
while
curr-files
(
setq
file
(
car
curr-files
))
(
if
(
string-match
"\\.gz$"
file
)
(
setq
file
(
substring
file
0
-3
)))
(
setq
file
(
substring
file
0
(
if
(
string=
(
substring
file
-1
)
"c"
)
-4
-3
)))
...
...
@@ -209,7 +211,8 @@ buffer called `*Shadows*'. Shadowings are located by calling the
toplevs
)
;; If we can find simple.el in two places,
(
while
tem
(
if
(
file-exists-p
(
expand-file-name
"simple.el"
(
car
tem
)))
(
if
(
or
(
file-exists-p
(
expand-file-name
"simple.el"
(
car
tem
)))
(
file-exists-p
(
expand-file-name
"simple.el.gz"
(
car
tem
))))
(
setq
toplevs
(
cons
(
car
tem
)
toplevs
)))
(
setq
tem
(
cdr
tem
)))
(
if
(
>
(
length
toplevs
)
1
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment