mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-25 05:52:42 -08:00
Portable escape SWITCHES in 'package-review-diff-command'
* lisp/emacs-lisp/package.el (package-review-diff-command): Use 'shell-quote-argument' to quote arguments instead of assuming a POSIX shell.
This commit is contained in:
parent
0c31ea113f
commit
3c125e2414
1 changed files with 8 additions and 7 deletions
|
|
@ -710,13 +710,14 @@ case you are concerned about moving files between file systems."
|
|||
|
||||
(defcustom package-review-diff-command
|
||||
(cons diff-command
|
||||
'("-u" ;unified patch formatting
|
||||
"-N" ;treat absent files as empty
|
||||
"-x" "'*.elc'" ;ignore byte compiled files
|
||||
"-x" "'*-autoloads.el'" ;ignore the autoloads file
|
||||
"-x" "'*-pkg.el'" ;ignore the package description
|
||||
"-x" "'*.info'" ;ignore compiled Info files
|
||||
))
|
||||
(mapcar #'shell-quote-argument
|
||||
'("-u" ;unified patch formatting
|
||||
"-N" ;treat absent files as empty
|
||||
"-x" "*.elc" ;ignore byte compiled files
|
||||
"-x" "*-autoloads.el" ;ignore the autoloads file
|
||||
"-x" "*-pkg.el" ;ignore the package description
|
||||
"-x" "*.info" ;ignore compiled Info files
|
||||
)))
|
||||
"Configuration of how `package-review' should generate a Diff.
|
||||
The structure of the value must be (COMMAND . OPTIONS), where
|
||||
`diff-command' is rebound to be COMMAND and OPTIONS are command-line
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue