emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/lisp/progmodes/sh-script.el


From: Richard M. Stallman
Subject: [Emacs-diffs] Changes to emacs/lisp/progmodes/sh-script.el
Date: Mon, 22 Sep 2003 11:39:47 -0400

Index: emacs/lisp/progmodes/sh-script.el
diff -c emacs/lisp/progmodes/sh-script.el:1.131 
emacs/lisp/progmodes/sh-script.el:1.132
*** emacs/lisp/progmodes/sh-script.el:1.131     Fri Sep 19 13:10:57 2003
--- emacs/lisp/progmodes/sh-script.el   Mon Sep 22 11:39:47 2003
***************
*** 393,400 ****
  
  
  
! (defvar sh-mode-syntax-table
!   '((sh eval sh-mode-syntax-table ()
        ?\# "<"
        ?\n ">#"
        ?\" "\"\""
--- 393,407 ----
  
  
  
! (defun sh-mode-syntax-table (table &rest list)
!   "Copy TABLE and set syntax for successive CHARs according to strings S."
!   (setq table (copy-syntax-table table))
!   (while list
!     (modify-syntax-entry (pop list) (pop list) table))
!   table)
! 
! (defvar sh-mode-default-syntax-table
!   (sh-mode-syntax-table ()
        ?\# "<"
        ?\n ">#"
        ?\" "\"\""
***************
*** 409,417 ****
        ?, "_"
        ?< "."
        ?> ".")
!     (csh eval identity sh)
!     (rc eval identity sh))
  
    "Syntax-table used in Shell-Script mode.  See `sh-feature'.")
  
  (defvar sh-mode-map
--- 416,425 ----
        ?, "_"
        ?< "."
        ?> ".")
!   "Default syntax table for shell mode.")
  
+ (defvar sh-mode-syntax-table-input
+   '((sh . nil))
    "Syntax-table used in Shell-Script mode.  See `sh-feature'.")
  
  (defvar sh-mode-map
***************
*** 480,487 ****
  (defcustom sh-require-final-newline
    '((csh . t)
      (pdksh . t)
!     (rc eval . require-final-newline)
!     (sh eval . require-final-newline))
    "*Value of `require-final-newline' in Shell-Script mode buffers.
  See `sh-feature'."
    :type '(repeat (cons (symbol :tag "Shell")
--- 488,495 ----
  (defcustom sh-require-final-newline
    '((csh . t)
      (pdksh . t)
!     (rc . require-final-newline)
!     (sh . require-final-newline))
    "*Value of `require-final-newline' in Shell-Script mode buffers.
  See `sh-feature'."
    :type '(repeat (cons (symbol :tag "Shell")
***************
*** 561,621 ****
  ;; customized this out of sheer bravado.  not for the faint of heart.
  ;; but it *did* have an asterisk in the docstring!
  (defcustom sh-builtins
!   '((bash eval sh-append posix
          "." "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
!     (bourne eval sh-append shell
            "eval" "export" "getopts" "newgrp" "pwd" "read" "readonly"
            "times" "ulimit")
  
!     (csh eval sh-append shell
         "alias" "chdir" "glob" "history" "limit" "nice" "nohup" "rehash"
         "setenv" "source" "time" "unalias" "unhash")
  
!     (dtksh eval identity wksh)
  
      (es "access" "apids" "cd" "echo" "eval" "false" "let" "limit" "local"
        "newpgrp" "result" "time" "umask" "var" "vars" "wait" "whatis")
  
!     (jsh eval sh-append sh
         "bg" "fg" "jobs" "kill" "stop" "suspend")
  
!     (jcsh eval sh-append csh
          "bg" "fg" "jobs" "kill" "notify" "stop" "suspend")
  
!     (ksh88 eval sh-append bourne
           "alias" "bg" "false" "fc" "fg" "jobs" "kill" "let" "print" "time"
           "typeset" "unalias" "whence")
  
!     (oash eval sh-append sh
          "checkwin" "dateline" "error" "form" "menu" "newwin" "oadeinit"
          "oaed" "oahelp" "oainit" "pp" "ppfile" "scan" "scrollok" "wattr"
          "wclear" "werase" "win" "wmclose" "wmmessage" "wmopen" "wmove"
          "wmtitle" "wrefresh")
  
!     (pdksh eval sh-append ksh88
           "bind")
  
!     (posix eval sh-append sh
           "command")
  
      (rc "builtin" "cd" "echo" "eval" "limit" "newpgrp" "shift" "umask" "wait"
        "whatis")
  
!     (sh eval sh-append bourne
        "hash" "test" "type")
  
      ;; The next entry is only used for defining the others
      (shell "cd" "echo" "eval" "set" "shift" "umask" "unset" "wait")
  
!     (wksh eval sh-append ksh88
          "Xt[A-Z][A-Za-z]*")
  
!     (zsh eval sh-append ksh88
         "autoload" "bindkey" "builtin" "chdir" "compctl" "declare" "dirs"
         "disable" "disown" "echotc" "enable" "functions" "getln" "hash"
         "history" "integer" "limit" "local" "log" "popd" "pushd" "r"
--- 569,629 ----
  ;; customized this out of sheer bravado.  not for the faint of heart.
  ;; but it *did* have an asterisk in the docstring!
  (defcustom sh-builtins
!   '((bash sh-append posix
          "." "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
!     (bourne sh-append shell
            "eval" "export" "getopts" "newgrp" "pwd" "read" "readonly"
            "times" "ulimit")
  
!     (csh sh-append shell
         "alias" "chdir" "glob" "history" "limit" "nice" "nohup" "rehash"
         "setenv" "source" "time" "unalias" "unhash")
  
!     (dtksh sh-append wksh)
  
      (es "access" "apids" "cd" "echo" "eval" "false" "let" "limit" "local"
        "newpgrp" "result" "time" "umask" "var" "vars" "wait" "whatis")
  
!     (jsh sh-append sh
         "bg" "fg" "jobs" "kill" "stop" "suspend")
  
!     (jcsh sh-append csh
          "bg" "fg" "jobs" "kill" "notify" "stop" "suspend")
  
!     (ksh88 sh-append bourne
           "alias" "bg" "false" "fc" "fg" "jobs" "kill" "let" "print" "time"
           "typeset" "unalias" "whence")
  
!     (oash sh-append sh
          "checkwin" "dateline" "error" "form" "menu" "newwin" "oadeinit"
          "oaed" "oahelp" "oainit" "pp" "ppfile" "scan" "scrollok" "wattr"
          "wclear" "werase" "win" "wmclose" "wmmessage" "wmopen" "wmove"
          "wmtitle" "wrefresh")
  
!     (pdksh sh-append ksh88
           "bind")
  
!     (posix sh-append sh
           "command")
  
      (rc "builtin" "cd" "echo" "eval" "limit" "newpgrp" "shift" "umask" "wait"
        "whatis")
  
!     (sh sh-append bourne
        "hash" "test" "type")
  
      ;; The next entry is only used for defining the others
      (shell "cd" "echo" "eval" "set" "shift" "umask" "unset" "wait")
  
!     (wksh sh-append ksh88
          "Xt[A-Z][A-Za-z]*")
  
!     (zsh sh-append ksh88
         "autoload" "bindkey" "builtin" "chdir" "compctl" "declare" "dirs"
         "disable" "disown" "echotc" "enable" "functions" "getln" "hash"
         "history" "integer" "limit" "local" "log" "popd" "pushd" "r"
***************
*** 635,641 ****
  
  
  (defcustom sh-leading-keywords
!   '((bash eval sh-append sh
            "time")
  
      (csh "else")
--- 643,649 ----
  
  
  (defcustom sh-leading-keywords
!   '((bash sh-append sh
            "time")
  
      (csh "else")
***************
*** 658,690 ****
  
  
  (defcustom sh-other-keywords
!   '((bash eval sh-append bourne
          "bye" "logout" "select")
  
      ;; The next entry is only used for defining the others
!     (bourne eval sh-append sh
            "function")
  
!     (csh eval sh-append shell
         "breaksw" "default" "end" "endif" "endsw" "foreach" "goto"
         "if" "logout" "onintr" "repeat" "switch" "then" "while")
  
      (es "break" "catch" "exec" "exit" "fn" "for" "forever" "fork" "if"
        "return" "throw" "while")
  
!     (ksh88 eval sh-append bourne
           "select")
  
      (rc "break" "case" "exec" "exit" "fn" "for" "if" "in" "return" "switch"
        "while")
  
!     (sh eval sh-append shell
        "done" "esac" "fi" "for" "in" "return")
  
      ;; The next entry is only used for defining the others
      (shell "break" "case" "continue" "exec" "exit")
  
!     (zsh eval sh-append bash
         "select"))
    "*List of keywords not in `sh-leading-keywords'.
  See `sh-feature'."
--- 666,698 ----
  
  
  (defcustom sh-other-keywords
!   '((bash sh-append bourne
          "bye" "logout" "select")
  
      ;; The next entry is only used for defining the others
!     (bourne sh-append sh
            "function")
  
!     (csh sh-append shell
         "breaksw" "default" "end" "endif" "endsw" "foreach" "goto"
         "if" "logout" "onintr" "repeat" "switch" "then" "while")
  
      (es "break" "catch" "exec" "exit" "fn" "for" "forever" "fork" "if"
        "return" "throw" "while")
  
!     (ksh88 sh-append bourne
           "select")
  
      (rc "break" "case" "exec" "exit" "fn" "for" "if" "in" "return" "switch"
        "while")
  
!     (sh sh-append shell
        "done" "esac" "fi" "for" "in" "return")
  
      ;; The next entry is only used for defining the others
      (shell "break" "case" "continue" "exec" "exit")
  
!     (zsh sh-append bash
         "select"))
    "*List of keywords not in `sh-leading-keywords'.
  See `sh-feature'."
***************
*** 698,704 ****
  
  
  (defvar sh-variables
!   '((bash eval sh-append sh
          "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"
--- 706,712 ----
  
  
  (defvar sh-variables
!   '((bash sh-append sh
          "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"
***************
*** 714,744 ****
          "pushd_silent" "PWD" "RANDOM" "REPLY" "SECONDS" "SHELLOPTS"
          "SHLVL" "TIMEFORMAT" "TMOUT" "UID")
  
!     (csh eval sh-append shell
         "argv" "cdpath" "child" "echo" "histchars" "history" "home"
         "ignoreeof" "mail" "noclobber" "noglob" "nonomatch" "path" "prompt"
         "shell" "status" "time" "verbose")
  
!     (es eval sh-append shell
        "apid" "cdpath" "CDPATH" "history" "home" "ifs" "noexport" "path"
        "pid" "prompt" "signals")
  
!     (jcsh eval sh-append csh
          "notify")
  
!     (ksh88 eval sh-append sh
           "ENV" "ERRNO" "FCEDIT" "FPATH" "HISTFILE" "HISTSIZE" "LINENO"
           "OLDPWD" "PPID" "PS3" "PS4" "PWD" "RANDOM" "REPLY" "SECONDS"
           "TMOUT")
  
!     (oash eval sh-append sh
          "FIELD" "FIELD_MAX" "LAST_KEY" "OALIB" "PP_ITEM" "PP_NUM")
  
!     (rc eval sh-append shell
        "apid" "apids" "cdpath" "CDPATH" "history" "home" "ifs" "path" "pid"
        "prompt" "status")
  
!     (sh eval sh-append shell
        "CDPATH" "IFS" "OPTARG" "OPTIND" "PS1" "PS2")
  
      ;; The next entry is only used for defining the others
--- 722,752 ----
          "pushd_silent" "PWD" "RANDOM" "REPLY" "SECONDS" "SHELLOPTS"
          "SHLVL" "TIMEFORMAT" "TMOUT" "UID")
  
!     (csh sh-append shell
         "argv" "cdpath" "child" "echo" "histchars" "history" "home"
         "ignoreeof" "mail" "noclobber" "noglob" "nonomatch" "path" "prompt"
         "shell" "status" "time" "verbose")
  
!     (es sh-append shell
        "apid" "cdpath" "CDPATH" "history" "home" "ifs" "noexport" "path"
        "pid" "prompt" "signals")
  
!     (jcsh sh-append csh
          "notify")
  
!     (ksh88 sh-append sh
           "ENV" "ERRNO" "FCEDIT" "FPATH" "HISTFILE" "HISTSIZE" "LINENO"
           "OLDPWD" "PPID" "PS3" "PS4" "PWD" "RANDOM" "REPLY" "SECONDS"
           "TMOUT")
  
!     (oash sh-append sh
          "FIELD" "FIELD_MAX" "LAST_KEY" "OALIB" "PP_ITEM" "PP_NUM")
  
!     (rc sh-append shell
        "apid" "apids" "cdpath" "CDPATH" "history" "home" "ifs" "path" "pid"
        "prompt" "status")
  
!     (sh sh-append shell
        "CDPATH" "IFS" "OPTARG" "OPTIND" "PS1" "PS2")
  
      ;; The next entry is only used for defining the others
***************
*** 747,753 ****
           "LINES" "LOGNAME" "MAIL" "MAILCHECK" "MAILPATH" "PAGER" "PATH"
           "SHELL" "TERM" "TERMCAP" "TERMINFO" "VISUAL")
  
!     (tcsh eval sh-append csh
          "addsuffix" "ampm" "autocorrect" "autoexpand" "autolist"
          "autologout" "chase_symlinks" "correct" "dextract" "edit" "el"
          "fignore" "gid" "histlit" "HOST" "HOSTTYPE" "HPATH"
--- 755,761 ----
           "LINES" "LOGNAME" "MAIL" "MAILCHECK" "MAILPATH" "PAGER" "PATH"
           "SHELL" "TERM" "TERMCAP" "TERMINFO" "VISUAL")
  
!     (tcsh sh-append csh
          "addsuffix" "ampm" "autocorrect" "autoexpand" "autolist"
          "autologout" "chase_symlinks" "correct" "dextract" "edit" "el"
          "fignore" "gid" "histlit" "HOST" "HOSTTYPE" "HPATH"
***************
*** 758,764 ****
          "tperiod" "tty" "uid" "version" "visiblebell" "watch" "who"
          "wordchars")
  
!     (zsh eval sh-append ksh88
         "BAUD" "bindcmds" "cdpath" "DIRSTACKSIZE" "fignore" "FIGNORE" "fpath"
         "HISTCHARS" "hostcmds" "hosts" "HOSTS" "LISTMAX" "LITHISTSIZE"
         "LOGCHECK" "mailpath" "manpath" "NULLCMD" "optcmds" "path" "POSTEDIT"
--- 766,772 ----
          "tperiod" "tty" "uid" "version" "visiblebell" "watch" "who"
          "wordchars")
  
!     (zsh sh-append ksh88
         "BAUD" "bindcmds" "cdpath" "DIRSTACKSIZE" "fignore" "FIGNORE" "fpath"
         "HISTCHARS" "hostcmds" "hosts" "HOSTS" "LISTMAX" "LITHISTSIZE"
         "LOGCHECK" "mailpath" "manpath" "NULLCMD" "optcmds" "path" "POSTEDIT"
***************
*** 787,803 ****
  
  
  (defvar sh-font-lock-keywords
!   '((csh eval sh-append shell
         '("\\${?[#?]?\\([A-Za-z_][A-Za-z0-9_]*\\|0\\)" 1
           font-lock-variable-name-face))
  
!     (es eval sh-append executable-font-lock-keywords
        '("\\$#?\\([A-Za-z_][A-Za-z0-9_]*\\|[0-9]+\\)" 1
          font-lock-variable-name-face))
  
!     (rc eval identity es)
  
!     (sh eval sh-append shell
        ;; Variable names.
        '("\\$\\({#?\\)?\\([A-Za-z_][A-Za-z0-9_]*\\|address@hidden)" 2
          font-lock-variable-name-face)
--- 795,811 ----
  
  
  (defvar sh-font-lock-keywords
!   '((csh sh-append shell
         '("\\${?[#?]?\\([A-Za-z_][A-Za-z0-9_]*\\|0\\)" 1
           font-lock-variable-name-face))
  
!     (es sh-append executable-font-lock-keywords
        '("\\$#?\\([A-Za-z_][A-Za-z0-9_]*\\|[0-9]+\\)" 1
          font-lock-variable-name-face))
  
!     (rc sh-append es)
  
!     (sh sh-append shell
        ;; Variable names.
        '("\\$\\({#?\\)?\\([A-Za-z_][A-Za-z0-9_]*\\|address@hidden)" 2
          font-lock-variable-name-face)
***************
*** 807,821 ****
          (1 font-lock-keyword-face) (2 font-lock-function-name-face nil t)))
  
      ;; The next entry is only used for defining the others
!     (shell eval sh-append executable-font-lock-keywords
             ;; Using font-lock-string-face here confuses sh-get-indent-info.
             '("\\\\$" 0 font-lock-warning-face)
           '("\\\\[^A-Za-z0-9]" 0 font-lock-string-face)
           '("\\${?\\([A-Za-z_][A-Za-z0-9_]*\\|[0-9]+\\|[$*_]\\)" 1
             font-lock-variable-name-face))
!     (rpm eval sh-append rpm2
         '("%{?\\(\\sw+\\)"  1 font-lock-keyword-face))
!     (rpm2 eval sh-append shell
          '("^\\(\\sw+\\):"  1 font-lock-variable-name-face)))
    "Default expressions to highlight in Shell Script modes.  See 
`sh-feature'.")
  
--- 815,829 ----
          (1 font-lock-keyword-face) (2 font-lock-function-name-face nil t)))
  
      ;; The next entry is only used for defining the others
!     (shell sh-append executable-font-lock-keywords
             ;; Using font-lock-string-face here confuses sh-get-indent-info.
             '("\\\\$" 0 font-lock-warning-face)
           '("\\\\[^A-Za-z0-9]" 0 font-lock-string-face)
           '("\\${?\\([A-Za-z_][A-Za-z0-9_]*\\|[0-9]+\\|[$*_]\\)" 1
             font-lock-variable-name-face))
!     (rpm sh-append rpm2
         '("%{?\\(\\sw+\\)"  1 font-lock-keyword-face))
!     (rpm2 sh-append shell
          '("^\\(\\sw+\\):"  1 font-lock-variable-name-face)))
    "Default expressions to highlight in Shell Script modes.  See 
`sh-feature'.")
  
***************
*** 1478,1493 ****
        (setq sh-shell-file
            (executable-set-magic shell (sh-feature sh-shell-arg)
                                  no-query-flag insert-flag)))
!   (setq require-final-newline (sh-feature sh-require-final-newline)
! ;;;   local-abbrev-table (sh-feature sh-abbrevs)
        comment-start-skip "#+[\t ]*"
        mode-line-process (format "[%s]" sh-shell)
        sh-shell-variables nil
        sh-shell-variables-initialized nil
        imenu-generic-expression (sh-feature sh-imenu-generic-expression)
        imenu-case-fold-search nil)
!   (set-syntax-table (or (sh-feature sh-mode-syntax-table)
!                       (standard-syntax-table)))
    (dolist (var (sh-feature sh-variables))
      (sh-remember-variable var))
    (make-local-variable 'indent-line-function)
--- 1486,1508 ----
        (setq sh-shell-file
            (executable-set-magic shell (sh-feature sh-shell-arg)
                                  no-query-flag insert-flag)))
!   (let ((tem (sh-feature sh-require-final-newline)))
!     (unless (eq tem 'require-final-newline)
!       (setq require-final-newline tem)))
!   (setq
        comment-start-skip "#+[\t ]*"
+ ;;;   local-abbrev-table (sh-feature sh-abbrevs)
        mode-line-process (format "[%s]" sh-shell)
        sh-shell-variables nil
        sh-shell-variables-initialized nil
        imenu-generic-expression (sh-feature sh-imenu-generic-expression)
        imenu-case-fold-search nil)
!   (make-local-variable 'sh-mode-syntax-table)
!   (let ((tem (sh-feature sh-mode-syntax-table-input)))
!     (setq sh-mode-syntax-table
!         (if tem (apply 'sh-mode-syntax-table tem)
!           sh-mode-default-syntax-table)))
!   (set-syntax-table sh-mode-syntax-table)
    (dolist (var (sh-feature sh-variables))
      (sh-remember-variable var))
    (make-local-variable 'indent-line-function)
***************
*** 1513,1519 ****
  
  
  
! (defun sh-feature (list &optional function)
    "Index ALIST by the current shell.
  If ALIST isn't a list where every element is a cons, it is returned as is.
  Else indexing follows an inheritance logic which works in two ways:
--- 1528,1534 ----
  
  
  
! (defun sh-feature (alist &optional function)
    "Index ALIST by the current shell.
  If ALIST isn't a list where every element is a cons, it is returned as is.
  Else indexing follows an inheritance logic which works in two ways:
***************
*** 1522,1566 ****
      the alist contains no value for the current shell.
      The ultimate default is always `sh'.
  
!   - If the value thus looked up is a list starting with `eval' its `cdr' is
!     first evaluated.  If that is also a list and the first argument is a
!     symbol in ALIST it is not evaluated, but rather recursively looked up in
!     ALIST to allow the function called to define the value for one shell to be
!     derived from another shell.  While calling the function, is the car of the
!     alist element is the current shell.
      The value thus determined is physically replaced into the alist.
  
  Optional FUNCTION is applied to the determined value and the result is cached
  in ALIST."
!   (or (if (consp list)
!         (let ((l list))
            (while (and l (consp (car l)))
              (setq l (cdr l)))
!           (if l list)))
        (if function
!         (cdr (assoc (setq function (cons sh-shell function)) list)))
        (let ((sh-shell sh-shell)
            elt val)
        (while (and sh-shell
!                   (not (setq elt (assq sh-shell list))))
          (setq sh-shell (cdr (assq sh-shell sh-ancestor-alist))))
        ;; If the shell is not known, treat it as sh.
        (unless elt
!         (setq elt (assq 'sh list)))
        (if (and (consp (setq val (cdr elt)))
!                (eq (car val) 'eval))
            (setcdr elt
                    (setq val
!                         (eval (if (consp (setq val (cdr val)))
!                                   (let ((sh-shell (car (cdr val))))
!                                     (if (assq sh-shell list)
!                                         (setcar (cdr val)
!                                                 (list 'quote
!                                                       (sh-feature list))))
!                                     val)
!                                 val)))))
        (if function
!           (nconc list
                   (list (cons function
                               (setq sh-shell (car function)
                                     val (funcall (cdr function) val))))))
--- 1537,1577 ----
      the alist contains no value for the current shell.
      The ultimate default is always `sh'.
  
!   - If the value thus looked up is a list starting with `sh-append',
!     we call the function `sh-append' with the rest of the list as
!     arguments, and use the value.  However, the next element of the
!     list is not used as-is; instead, we look it up recursively
!     in ALIST to allow the function called to define the value for
!     one shell to be derived from another shell.
      The value thus determined is physically replaced into the alist.
  
  Optional FUNCTION is applied to the determined value and the result is cached
  in ALIST."
!   (or (if (consp alist)
!         (let ((l alist))
            (while (and l (consp (car l)))
              (setq l (cdr l)))
!           (if l alist)))
        (if function
!         (cdr (assoc (setq function (cons sh-shell function)) alist)))
        (let ((sh-shell sh-shell)
            elt val)
        (while (and sh-shell
!                   (not (setq elt (assq sh-shell alist))))
          (setq sh-shell (cdr (assq sh-shell sh-ancestor-alist))))
        ;; If the shell is not known, treat it as sh.
        (unless elt
!         (setq elt (assq 'sh alist)))
        (if (and (consp (setq val (cdr elt)))
!                (eq (car val) 'sh-append))
            (setcdr elt
                    (setq val
!                         (apply 'sh-append
!                                (let ((sh-shell (car (cdr val))))
!                                  (sh-feature alist))
!                                (cddr val)))))
        (if function
!           (nconc alist
                   (list (cons function
                               (setq sh-shell (car function)
                                     val (funcall (cdr function) val))))))
***************
*** 1600,1612 ****
  ;;      (setq list (cdr (cdr list)))))
  ;;      (symbol-value sh-shell)))
  
- 
- (defun sh-mode-syntax-table (table &rest list)
-   "Copy TABLE and set syntax for successive CHARs according to strings S."
-   (setq table (copy-syntax-table table))
-   (while list
-     (modify-syntax-entry (pop list) (pop list) table))
-   table)
  
  (defun sh-append (ancestor &rest list)
    "Return list composed of first argument (a list) physically appended to 
rest."
--- 1611,1616 ----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]