]> git.eshelyaron.com Git - emacs.git/commitdiff
(sh-builtins): Add some bash builtins.
authorGlenn Morris <rgm@gnu.org>
Sun, 24 Aug 2003 15:26:13 +0000 (15:26 +0000)
committerGlenn Morris <rgm@gnu.org>
Sun, 24 Aug 2003 15:26:13 +0000 (15:26 +0000)
(sh-leading-keywords): Add the bash `time' reserved word.
(sh-variables): Add some bash variables.
(sh-add-completer): Fix nil branch of case statement.

lisp/ChangeLog
lisp/progmodes/sh-script.el

index 2c1b44c69e71a46048a9064cbf1e628075351578..469372f68783b5f5749718d9ef3296a6f4a93094 100644 (file)
@@ -1,3 +1,20 @@
+2003-08-24  Glenn Morris  <gmorris@ast.cam.ac.uk>
+
+       * files.el (file-newest-backup): Use `expand-file-name'.
+
+       * calendar/diary-lib.el (simple-diary-display, make-diary-entry):
+       Allow the diary to pop up a new frame, if needed.
+
+       * mail/sendmail.el (mail-specify-envelope-from): Doc change.    
+       * mail/smtpmail.el (smtpmail-mail-address): Doc change.
+       (smtpmail-send-it): Make treatment of envelope-from consistent with
+       sendmail.el.
+
+       * progmodes/sh-script.el (sh-builtins): Add some bash builtins.
+       (sh-leading-keywords): Add the bash `time' reserved word.
+       (sh-variables): Add some bash variables.
+       (sh-add-completer): Fix nil branch of case statement.
+
 2003-08-24  Masatake YAMATO  <jet@gyve.org>
        
        * progmodes/ld-script.el: New file.
index 341a0d179e7e6e2d432c50153a00c1c32ed941e4..a9c78d9f85b55a5d3503c3846b48a3b1da03fd6f 100644 (file)
@@ -562,8 +562,9 @@ documents - you must insert literal tabs by hand.")
 ;; but it *did* have an asterisk in the docstring!
 (defcustom sh-builtins
   '((bash eval sh-append posix
-         "alias" "bg" "bind" "builtin" "declare" "dirs" "enable" "fc" "fg"
-         "help" "history" "jobs" "kill" "let" "local" "popd" "pushd" "source"
+         "." "alias" "bg" "bind" "builtin" "compgen" "complete"
+          "declare" "dirs" "disown" "enable" "fc" "fg" "help" "history"
+          "jobs" "kill" "let" "local" "popd" "printf" "pushd" "source"
          "suspend" "typeset" "unalias")
 
     ;; The next entry is only used for defining the others
@@ -634,7 +635,10 @@ implemented as aliases.  See `sh-feature'."
 
 
 (defcustom sh-leading-keywords
-  '((csh "else")
+  '((bash eval sh-append sh
+          "time")
+
+    (csh "else")
 
     (es "true" "unwind-protect" "whatis")
 
@@ -695,14 +699,20 @@ See `sh-feature'."
 
 (defvar sh-variables
   '((bash eval sh-append sh
-         "allow_null_glob_expansion" "auto_resume" "BASH" "BASH_VERSION"
-         "cdable_vars" "ENV" "EUID" "FCEDIT" "FIGNORE" "glob_dot_filenames"
-         "histchars" "HISTFILE" "HISTFILESIZE" "history_control" "HISTSIZE"
-         "hostname_completion_file" "HOSTTYPE" "IGNOREEOF" "ignoreeof"
-         "LINENO" "MAIL_WARNING" "noclobber" "nolinks" "notify"
-         "no_exit_on_failed_exec" "NO_PROMPT_VARS" "OLDPWD" "OPTERR" "PPID"
-         "PROMPT_COMMAND" "PS4" "pushd_silent" "PWD" "RANDOM" "REPLY"
-         "SECONDS" "SHLVL" "TMOUT" "UID")
+         "allow_null_glob_expansion" "auto_resume" "BASH" "BASH_ENV"
+         "BASH_VERSINFO" "BASH_VERSION" "cdable_vars" "COMP_CWORD"
+         "COMP_LINE" "COMP_POINT" "COMP_WORDS" "COMPREPLY" "DIRSTACK"
+         "ENV" "EUID" "FCEDIT" "FIGNORE" "FUNCNAME"
+         "glob_dot_filenames" "GLOBIGNORE" "GROUPS" "histchars"
+         "HISTCMD" "HISTCONTROL" "HISTFILE" "HISTFILESIZE"
+         "HISTIGNORE" "history_control" "HISTSIZE"
+         "hostname_completion_file" "HOSTFILE" "HOSTTYPE" "IGNOREEOF"
+         "ignoreeof" "INPUTRC" "LINENO" "MACHTYPE" "MAIL_WARNING"
+         "noclobber" "nolinks" "notify" "no_exit_on_failed_exec"
+         "NO_PROMPT_VARS" "OLDPWD" "OPTERR" "OSTYPE" "PIPESTATUS"
+         "PPID" "POSIXLY_CORRECT" "PROMPT_COMMAND" "PS3" "PS4"
+         "pushd_silent" "PWD" "RANDOM" "REPLY" "SECONDS" "SHELLOPTS"
+         "SHLVL" "TIMEFORMAT" "TMOUT" "UID")
 
     (csh eval sh-append shell
         "argv" "cdpath" "child" "echo" "histchars" "history" "home"
@@ -3203,7 +3213,7 @@ t means to return a list of all possible completions of STRING.
                          process-environment)
                  sh-shell-variables))))
     (case code
-      (nil (try-completion string sh-shell-variables predicate))
+      ((nil) (try-completion string sh-shell-variables predicate))
       (lambda (test-completion string sh-shell-variables predicate))
       (t (all-completions string sh-shell-variables predicate)))))