aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1997-01-06 06:51:12 +0000
committerRichard M. Stallman1997-01-06 06:51:12 +0000
commit0dd96d4cbc6495d15002c073570fbc944962a7be (patch)
tree2067f5fbf841583de76209abb9863d6fd74e9cf9
parentcdb9d66596420c686031b92dc4e5a845b5afa34a (diff)
downloademacs-0dd96d4cbc6495d15002c073570fbc944962a7be.tar.gz
emacs-0dd96d4cbc6495d15002c073570fbc944962a7be.zip
(x-handle-args): Stop arg processing
if we encounter "--", and preserve all remaining args.
-rw-r--r--lisp/term/x-win.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/term/x-win.el b/lisp/term/x-win.el
index 1d927d71a18..12a1ec48163 100644
--- a/lisp/term/x-win.el
+++ b/lisp/term/x-win.el
@@ -165,7 +165,8 @@ This function returns ARGS minus the arguments that have been processed."
165 ;; We use ARGS to accumulate the args that we don't handle here, to return. 165 ;; We use ARGS to accumulate the args that we don't handle here, to return.
166 (setq x-invocation-args args 166 (setq x-invocation-args args
167 args nil) 167 args nil)
168 (while x-invocation-args 168 (while (and x-invocation-args
169 (not (equal (car x-invocation-args) "--")))
169 (let* ((this-switch (car x-invocation-args)) 170 (let* ((this-switch (car x-invocation-args))
170 (orig-this-switch this-switch) 171 (orig-this-switch this-switch)
171 completion argval aelt handler) 172 completion argval aelt handler)
@@ -197,7 +198,7 @@ This function returns ARGS minus the arguments that have been processed."
197 (funcall handler this-switch)) 198 (funcall handler this-switch))
198 (funcall handler this-switch)) 199 (funcall handler this-switch))
199 (setq args (cons orig-this-switch args))))) 200 (setq args (cons orig-this-switch args)))))
200 (nreverse args)) 201 (nconc (nreverse args) x-invocation-args))
201 202
202;; 203;;
203;; Standard X cursor shapes, courtesy of Mr. Fox, who wanted ALL of them. 204;; Standard X cursor shapes, courtesy of Mr. Fox, who wanted ALL of them.