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
3191b52f
Commit
3191b52f
authored
May 11, 2013
by
Glenn Morris
Browse files
* cus-dep.el (custom-make-dependencies): Only use safe local variables.
Treat cc-provide like provide.
parent
e065ba74
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
lisp/ChangeLog
lisp/ChangeLog
+5
-0
lisp/cus-dep.el
lisp/cus-dep.el
+2
-1
No files found.
lisp/ChangeLog
View file @
3191b52f
2013-05-11 Glenn Morris <rgm@gnu.org>
* cus-dep.el (custom-make-dependencies): Only use safe local variables.
Treat cc-provide like provide.
2013-05-11 Kevin Ryde <user42@zip.com.au>
* cus-dep.el (custom-make-dependencies):
...
...
lisp/cus-dep.el
View file @
3191b52f
...
...
@@ -42,6 +42,7 @@ ldefs-boot\\|cus-load\\|finder-inf\\|esh-groups\\|subdirs\\)\\.el$\\)"
"
Batch
function
to
extract
custom
dependencies
from
.
el
files.
Usage:
emacs
-batch
-l
.
/cus-dep.el
-f
custom-make-dependencies
DIRS
"
(let ((enable-local-eval nil)
(enable-local-variables :safe)
subdir)
(with-temp-buffer
;; Use up command-line-args-left else Emacs can try to open
...
...
@@ -70,7 +71,7 @@ Usage: emacs -batch -l ./cus-dep.el -f custom-make-dependencies DIRS"
(load-file-name file))
(if (save-excursion
(re-search-forward
(concat "
(
provide[
\t\n]+\\
(
'\\
|(quote[ \t\n]\\)[ \t\n]*"
(concat "
(
\\
(
cc-\\
)
?
provide[
\t\n]+\\
(
'\\
|(quote[ \t\n]\\)[ \t\n]*"
(regexp-quote name) "[ \t\n)]")
nil t))
(setq name (intern name)))
...
...
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