changeset 107090:ce00524a181d

Fix 2009-02-20 change to startup.el (Bug#5519). * startup.el (command-line-1): Convert options beginning with a single dash as well (Bug#5519).
author Chong Yidong <cyd@stupidchicken.com>
date Thu, 04 Feb 2010 23:49:36 -0500
parents d9f5c24a36cb
children c2a34eaf2f6a a10fe49a1405
files lisp/ChangeLog lisp/startup.el
diffstat 2 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ChangeLog	Thu Feb 04 23:21:11 2010 -0500
+++ b/lisp/ChangeLog	Thu Feb 04 23:49:36 2010 -0500
@@ -1,3 +1,8 @@
+2010-02-05  Chong Yidong  <cyd@stupidchicken.com>
+
+	* startup.el (command-line-1): Convert options beginning with a
+	single dash as well (Bug#5519).
+
 2010-02-05  Stefan Monnier  <monnier@iro.umontreal.ca>
 
 	Make `initials' completion work for /hh -> /home/horn again (bug#5524).
--- a/lisp/startup.el	Thu Feb 04 23:21:11 2010 -0500
+++ b/lisp/startup.el	Thu Feb 04 23:49:36 2010 -0500
@@ -2103,7 +2103,7 @@
 	      (when (string-match "\\`\\(--[^=]*\\)=" argi)
 		(setq argval (substring argi (match-end 0))
 		      argi (match-string 1 argi)))
-	      (when (string-match "\\`--." orig-argi)
+	      (when (string-match "\\`--?[^-]" orig-argi)
 		(setq completion (try-completion argi longopts))
 		(if (eq completion t)
 		    (setq argi (substring argi 1))