aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Innes1999-05-02 09:38:50 +0000
committerAndrew Innes1999-05-02 09:38:50 +0000
commit7e3a77161ef2c49d8cd74f82066095cfade73ee9 (patch)
tree2963a9928c05af27a2c2847366ba4f37867e5376
parente51d4f9c1cb870c3ba84d1fee5bf0c0ba8318354 (diff)
downloademacs-7e3a77161ef2c49d8cd74f82066095cfade73ee9.tar.gz
emacs-7e3a77161ef2c49d8cd74f82066095cfade73ee9.zip
(hexlify-command): Apply shell-quote-argument after
expanding hexl-program in case exec-directory contains a space. (dehexlify-command): Ditto.
-rw-r--r--lisp/hexl.el10
1 files changed, 8 insertions, 2 deletions
diff --git a/lisp/hexl.el b/lisp/hexl.el
index 40096800d0e..e4c80c68c79 100644
--- a/lisp/hexl.el
+++ b/lisp/hexl.el
@@ -77,13 +77,19 @@ and \"-de\" when dehexlifying a buffer."
77 :group 'hexl) 77 :group 'hexl)
78 78
79(defcustom hexlify-command 79(defcustom hexlify-command
80 (format "%s%s %s" exec-directory hexl-program hexl-options) 80 (format "%s %s"
81 (shell-quote-argument
82 (expand-file-name hexl-program exec-directory))
83 hexl-options)
81 "The command to use to hexlify a buffer." 84 "The command to use to hexlify a buffer."
82 :type 'string 85 :type 'string
83 :group 'hexl) 86 :group 'hexl)
84 87
85(defcustom dehexlify-command 88(defcustom dehexlify-command
86 (format "%s%s -de %s" exec-directory hexl-program hexl-options) 89 (format "%s -de %s"
90 (shell-quote-argument
91 (expand-file-name hexl-program exec-directory))
92 hexl-options)
87 "The command to use to unhexlify a buffer." 93 "The command to use to unhexlify a buffer."
88 :type 'string 94 :type 'string
89 :group 'hexl) 95 :group 'hexl)