aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorReuben Thomas2017-08-25 13:45:32 +0100
committerReuben Thomas2017-08-25 13:49:06 +0100
commitca30d22fbada85d49de7c7708207b9e3daa4efb8 (patch)
tree92d97a285f57e58145220c09da5bff2de5f45457
parent1bd165811113e07440888839d770fb26ef21a2c9 (diff)
downloademacs-ca30d22fbada85d49de7c7708207b9e3daa4efb8.tar.gz
emacs-ca30d22fbada85d49de7c7708207b9e3daa4efb8.zip
Remove old commented code from sh-script.el
* lisp/progmodes/sh-script.el (sh-abbrevs): Remove commented function and variable, commented since 2001.
-rw-r--r--lisp/progmodes/sh-script.el71
1 files changed, 0 insertions, 71 deletions
diff --git a/lisp/progmodes/sh-script.el b/lisp/progmodes/sh-script.el
index 23e79f6ac59..c16011df0e4 100644
--- a/lisp/progmodes/sh-script.el
+++ b/lisp/progmodes/sh-script.el
@@ -419,44 +419,6 @@ name symbol."
419(define-abbrev-table 'sh-mode-abbrev-table ()) 419(define-abbrev-table 'sh-mode-abbrev-table ())
420 420
421 421
422;; I turned off this feature because it doesn't permit typing commands
423;; in the usual way without help.
424;;(defvar sh-abbrevs
425;; '((csh sh-abbrevs shell
426;; "switch" 'sh-case
427;; "getopts" 'sh-while-getopts)
428
429;; (es sh-abbrevs shell
430;; "function" 'sh-function)
431
432;; (ksh88 sh-abbrevs sh
433;; "select" 'sh-select)
434
435;; (rc sh-abbrevs shell
436;; "case" 'sh-case
437;; "function" 'sh-function)
438
439;; (sh sh-abbrevs shell
440;; "case" 'sh-case
441;; "function" 'sh-function
442;; "until" 'sh-until
443;; "getopts" 'sh-while-getopts)
444
445;; ;; The next entry is only used for defining the others
446;; (shell "for" sh-for
447;; "loop" sh-indexed-loop
448;; "if" sh-if
449;; "tmpfile" sh-tmp-file
450;; "while" sh-while)
451
452;; (zsh sh-abbrevs ksh88
453;; "repeat" 'sh-repeat))
454;; "Abbrev-table used in Shell-Script mode. See `sh-feature'.
455;;;Due to the internal workings of abbrev tables, the shell name symbol is
456;;;actually defined as the table for the like of \\[edit-abbrevs].")
457
458
459
460(defun sh-mode-syntax-table (table &rest list) 422(defun sh-mode-syntax-table (table &rest list)
461 "Copy TABLE and set syntax for successive CHARs according to strings S." 423 "Copy TABLE and set syntax for successive CHARs according to strings S."
462 (setq table (copy-syntax-table table)) 424 (setq table (copy-syntax-table table))
@@ -2512,39 +2474,6 @@ the value thus obtained, and the result is used instead."
2512 2474
2513 2475
2514 2476
2515;; I commented this out because nobody calls it -- rms.
2516;;(defun sh-abbrevs (ancestor &rest list)
2517;; "If it isn't, define the current shell as abbrev table and fill that.
2518;;Abbrev table will inherit all abbrevs from ANCESTOR, which is either an abbrev
2519;;table or a list of (NAME1 EXPANSION1 ...). In addition it will define abbrevs
2520;;according to the remaining arguments NAMEi EXPANSIONi ...
2521;;EXPANSION may be either a string or a skeleton command."
2522;; (or (if (boundp sh-shell)
2523;; (symbol-value sh-shell))
2524;; (progn
2525;; (if (listp ancestor)
2526;; (nconc list ancestor))
2527;; (define-abbrev-table sh-shell ())
2528;; (if (vectorp ancestor)
2529;; (mapatoms (lambda (atom)
2530;; (or (eq atom 0)
2531;; (define-abbrev (symbol-value sh-shell)
2532;; (symbol-name atom)
2533;; (symbol-value atom)
2534;; (symbol-function atom))))
2535;; ancestor))
2536;; (while list
2537;; (define-abbrev (symbol-value sh-shell)
2538;; (car list)
2539;; (if (stringp (car (cdr list)))
2540;; (car (cdr list))
2541;; "")
2542;; (if (symbolp (car (cdr list)))
2543;; (car (cdr list))))
2544;; (setq list (cdr (cdr list)))))
2545;; (symbol-value sh-shell)))
2546
2547
2548(defun sh-append (ancestor &rest list) 2477(defun sh-append (ancestor &rest list)
2549 "Return list composed of first argument (a list) physically appended to rest." 2478 "Return list composed of first argument (a list) physically appended to rest."
2550 (nconc list ancestor)) 2479 (nconc list ancestor))