summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1997-01-06 06:51:12 +0000
committerRichard M. Stallman <rms@gnu.org>1997-01-06 06:51:12 +0000
commit0dd96d4cbc6495d15002c073570fbc944962a7be (patch)
tree2067f5fbf841583de76209abb9863d6fd74e9cf9
parentcdb9d66596420c686031b92dc4e5a845b5afa34a (diff)
downloademacs-0dd96d4cbc6495d15002c073570fbc944962a7be.tar.gz
(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."
;; We use ARGS to accumulate the args that we don't handle here, to return.
(setq x-invocation-args args
args nil)
- (while x-invocation-args
+ (while (and x-invocation-args
+ (not (equal (car x-invocation-args) "--")))
(let* ((this-switch (car x-invocation-args))
(orig-this-switch this-switch)
completion argval aelt handler)
@@ -197,7 +198,7 @@ This function returns ARGS minus the arguments that have been processed."
(funcall handler this-switch))
(funcall handler this-switch))
(setq args (cons orig-this-switch args)))))
- (nreverse args))
+ (nconc (nreverse args) x-invocation-args))
;;
;; Standard X cursor shapes, courtesy of Mr. Fox, who wanted ALL of them.