aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Moellmann2000-05-15 20:18:15 +0000
committerGerd Moellmann2000-05-15 20:18:15 +0000
commit119b42eb55ed58a855a95b302527f49606d4f604 (patch)
tree9514c0d66bed39058844f0ed1e52e64b6f5635f8
parent0e57ab653ea1cca11ef1da2606e8fc7bfda37d00 (diff)
downloademacs-119b42eb55ed58a855a95b302527f49606d4f604.tar.gz
emacs-119b42eb55ed58a855a95b302527f49606d4f604.zip
(sh-while-getopts) <sh>: Handle case that
user-specified option string is empty.
-rw-r--r--lisp/ChangeLog7
-rw-r--r--lisp/progmodes/sh-script.el3
2 files changed, 9 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 3364548719c..1d3ff0f0182 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,10 @@
12000-05-15 Gerd Moellmann <gerd@gnu.org>
2
3 * progmodes/sh-script.el (sh-while-getopts) <sh>: Handle case that
4 user-specified option string is empty.
5
6 * mouse.el (mouse-yank-at-click): Doc fix.
7
12000-05-15 Eli Zaretskii <eliz@is.elta.co.il> 82000-05-15 Eli Zaretskii <eliz@is.elta.co.il>
2 9
3 * term/internal.el (IT-character-translations): More updates of 10 * term/internal.el (IT-character-translations): More updates of
diff --git a/lisp/progmodes/sh-script.el b/lisp/progmodes/sh-script.el
index f1956f609e2..fc9284f1f9b 100644
--- a/lisp/progmodes/sh-script.el
+++ b/lisp/progmodes/sh-script.el
@@ -3943,7 +3943,8 @@ option followed by a colon `:' if the option accepts an argument."
3943 (while (search-backward ":" v1 t) 3943 (while (search-backward ":" v1 t)
3944 (replace-match " ARG] [+-" t t))) 3944 (replace-match " ARG] [+-" t t)))
3945 (if (eq (preceding-char) ?-) -5) 3945 (if (eq (preceding-char) ?-) -5)
3946 "] [--] ARGS...\"" \n 3946 (if (length v1) "] ")
3947 "[--] ARGS...\"" \n
3947 "exit 2" > \n 3948 "exit 2" > \n
3948 "esac" > 3949 "esac" >
3949 \n "done" 3950 \n "done"