From: Gerd Moellmann Date: Mon, 15 May 2000 20:18:15 +0000 (+0000) Subject: (sh-while-getopts) : Handle case that X-Git-Tag: emacs-pretest-21.0.90~3951 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=119b42eb55ed58a855a95b302527f49606d4f604;p=emacs.git (sh-while-getopts) : Handle case that user-specified option string is empty. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 3364548719c..1d3ff0f0182 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,10 @@ +2000-05-15 Gerd Moellmann + + * progmodes/sh-script.el (sh-while-getopts) : Handle case that + user-specified option string is empty. + + * mouse.el (mouse-yank-at-click): Doc fix. + 2000-05-15 Eli Zaretskii * 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." (while (search-backward ":" v1 t) (replace-match " ARG] [+-" t t))) (if (eq (preceding-char) ?-) -5) - "] [--] ARGS...\"" \n + (if (length v1) "] ") + "[--] ARGS...\"" \n "exit 2" > \n "esac" > \n "done"