diff options
| author | Chong Yidong | 2010-12-15 10:05:38 +0800 |
|---|---|---|
| committer | Chong Yidong | 2010-12-15 10:05:38 +0800 |
| commit | 5614fd56080d50dc3e1b32382a39d2c21fe060eb (patch) | |
| tree | ecc8c5233863754ae5c3f4da42f4b733e49de0a6 | |
| parent | e7b07d2f05d660cd2553fd83b15824430517c87b (diff) | |
| download | emacs-5614fd56080d50dc3e1b32382a39d2c21fe060eb.tar.gz emacs-5614fd56080d50dc3e1b32382a39d2c21fe060eb.zip | |
Delete long unused functions and variables in rect.el.
lisp/rect.el (operate-on-rectangle-lines, string-rectangle-string):
Delete unused variables.
(move-to-column-force): Remove function obsolete since 21.2.
| -rw-r--r-- | lisp/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/eshell/em-rebind.el | 1 | ||||
| -rw-r--r-- | lisp/mail/rmail.el | 2 | ||||
| -rw-r--r-- | lisp/rect.el | 38 | ||||
| -rw-r--r-- | lisp/vc/cvs-status.el | 1 |
5 files changed, 13 insertions, 35 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index ed8358a0d61..9d49d3e0b71 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2010-12-15 Chong Yidong <cyd@stupidchicken.com> | ||
| 2 | |||
| 3 | * rect.el (operate-on-rectangle-lines, string-rectangle-string): | ||
| 4 | Delete unused variables. | ||
| 5 | (move-to-column-force): Remove function obsolete since 21.2. | ||
| 6 | |||
| 1 | 2010-12-14 Michael Albinus <michael.albinus@gmx.de> | 7 | 2010-12-14 Michael Albinus <michael.albinus@gmx.de> |
| 2 | 8 | ||
| 3 | * net/tramp.el (tramp-temp-buffer-file-name): Make it permanent-local. | 9 | * net/tramp.el (tramp-temp-buffer-file-name): Make it permanent-local. |
diff --git a/lisp/eshell/em-rebind.el b/lisp/eshell/em-rebind.el index 9b208d64803..587ca0684be 100644 --- a/lisp/eshell/em-rebind.el +++ b/lisp/eshell/em-rebind.el | |||
| @@ -91,7 +91,6 @@ This is default behavior of shells like bash." | |||
| 91 | '(beginning-of-line-text | 91 | '(beginning-of-line-text |
| 92 | beginning-of-line | 92 | beginning-of-line |
| 93 | move-to-column | 93 | move-to-column |
| 94 | move-to-column-force | ||
| 95 | move-to-left-margin | 94 | move-to-left-margin |
| 96 | move-to-tab-stop | 95 | move-to-tab-stop |
| 97 | forward-char | 96 | forward-char |
diff --git a/lisp/mail/rmail.el b/lisp/mail/rmail.el index 139b7cf926a..7b896e579bc 100644 --- a/lisp/mail/rmail.el +++ b/lisp/mail/rmail.el | |||
| @@ -4380,7 +4380,7 @@ If prefix argument REVERSE is non-nil, sorts in reverse order. | |||
| 4380 | 4380 | ||
| 4381 | ;;;### (autoloads (rmail-summary-by-senders rmail-summary-by-topic | 4381 | ;;;### (autoloads (rmail-summary-by-senders rmail-summary-by-topic |
| 4382 | ;;;;;; rmail-summary-by-regexp rmail-summary-by-recipients rmail-summary-by-labels | 4382 | ;;;;;; rmail-summary-by-regexp rmail-summary-by-recipients rmail-summary-by-labels |
| 4383 | ;;;;;; rmail-summary) "rmailsum" "rmailsum.el" "d855683972baef7111d4508dffbb54b6") | 4383 | ;;;;;; rmail-summary) "rmailsum" "rmailsum.el" "666a5db1021cdcba6e68a18a553d65f1") |
| 4384 | ;;; Generated autoloads from rmailsum.el | 4384 | ;;; Generated autoloads from rmailsum.el |
| 4385 | 4385 | ||
| 4386 | (autoload 'rmail-summary "rmailsum" "\ | 4386 | (autoload 'rmail-summary "rmailsum" "\ |
diff --git a/lisp/rect.el b/lisp/rect.el index 66584089910..aedddebe4fa 100644 --- a/lisp/rect.el +++ b/lisp/rect.el | |||
| @@ -27,10 +27,8 @@ | |||
| 27 | ;; This package provides the operations on rectangles that are documented | 27 | ;; This package provides the operations on rectangles that are documented |
| 28 | ;; in the Emacs manual. | 28 | ;; in the Emacs manual. |
| 29 | 29 | ||
| 30 | ;; ### NOTE: this file has been almost completely rewritten by Didier Verna | 30 | ;; ### NOTE: this file was almost completely rewritten by Didier Verna |
| 31 | ;; <didier@xemacs.org> in July 1999. The purpose of this rewrite is to be less | 31 | ;; <didier@xemacs.org> in July 1999. |
| 32 | ;; intrusive and fill lines with whitespaces only when needed. A few functions | ||
| 33 | ;; are untouched though, as noted above their definition. | ||
| 34 | 32 | ||
| 35 | ;;; Global key bindings | 33 | ;;; Global key bindings |
| 36 | 34 | ||
| @@ -43,23 +41,7 @@ | |||
| 43 | 41 | ||
| 44 | ;;; Code: | 42 | ;;; Code: |
| 45 | 43 | ||
| 46 | ;;;###autoload | 44 | ;; FIXME: this function should be replaced by `apply-on-rectangle' |
| 47 | (defun move-to-column-force (column &optional flag) | ||
| 48 | "If COLUMN is within a multi-column character, replace it by spaces and tab. | ||
| 49 | As for `move-to-column', passing anything but nil or t in FLAG will move to | ||
| 50 | the desired column only if the line is long enough." | ||
| 51 | (move-to-column column (or flag t))) | ||
| 52 | |||
| 53 | ;;;###autoload | ||
| 54 | (make-obsolete 'move-to-column-force 'move-to-column "21.2") | ||
| 55 | |||
| 56 | ;; not used any more --dv | ||
| 57 | ;; extract-rectangle-line stores lines into this list | ||
| 58 | ;; to accumulate them for extract-rectangle and delete-extract-rectangle. | ||
| 59 | (defvar operate-on-rectangle-lines) | ||
| 60 | |||
| 61 | ;; ### NOTE: this function is untouched, but not used anymore apart from | ||
| 62 | ;; `delete-whitespace-rectangle'. `apply-on-rectangle' is used instead. --dv | ||
| 63 | (defun operate-on-rectangle (function start end coerce-tabs) | 45 | (defun operate-on-rectangle (function start end coerce-tabs) |
| 64 | "Call FUNCTION for each line of rectangle with corners at START, END. | 46 | "Call FUNCTION for each line of rectangle with corners at START, END. |
| 65 | If COERCE-TABS is non-nil, convert multi-column characters | 47 | If COERCE-TABS is non-nil, convert multi-column characters |
| @@ -107,7 +89,6 @@ Point is at the end of the segment of this line within the rectangle." | |||
| 107 | (forward-line 1))) | 89 | (forward-line 1))) |
| 108 | (- endcol startcol))) | 90 | (- endcol startcol))) |
| 109 | 91 | ||
| 110 | ;; The replacement for `operate-on-rectangle' -- dv | ||
| 111 | (defun apply-on-rectangle (function start end &rest args) | 92 | (defun apply-on-rectangle (function start end &rest args) |
| 112 | "Call FUNCTION for each line of rectangle with corners at START, END. | 93 | "Call FUNCTION for each line of rectangle with corners at START, END. |
| 113 | FUNCTION is called with two arguments: the start and end columns of the | 94 | FUNCTION is called with two arguments: the start and end columns of the |
| @@ -151,9 +132,9 @@ the function is called." | |||
| 151 | (setcdr lines (cons (filter-buffer-substring pt (point) t) (cdr lines)))) | 132 | (setcdr lines (cons (filter-buffer-substring pt (point) t) (cdr lines)))) |
| 152 | )) | 133 | )) |
| 153 | 134 | ||
| 154 | ;; ### NOTE: this is actually the only function that needs to do complicated | 135 | ;; This is actually the only function that needs to do complicated |
| 155 | ;; stuff like what's happening in `operate-on-rectangle', because the buffer | 136 | ;; stuff like what's happening in `operate-on-rectangle', because the |
| 156 | ;; might be read-only. --dv | 137 | ;; buffer might be read-only. |
| 157 | (defun extract-rectangle-line (startcol endcol lines) | 138 | (defun extract-rectangle-line (startcol endcol lines) |
| 158 | (let (start end begextra endextra line) | 139 | (let (start end begextra endextra line) |
| 159 | (move-to-column startcol) | 140 | (move-to-column startcol) |
| @@ -186,7 +167,6 @@ the function is called." | |||
| 186 | (defconst spaces-strings | 167 | (defconst spaces-strings |
| 187 | '["" " " " " " " " " " " " " " " " "]) | 168 | '["" " " " " " " " " " " " " " " " "]) |
| 188 | 169 | ||
| 189 | ;; this one is untouched --dv | ||
| 190 | (defun spaces-string (n) | 170 | (defun spaces-string (n) |
| 191 | "Return a string with N spaces." | 171 | "Return a string with N spaces." |
| 192 | (if (<= n 8) (aref spaces-strings n) | 172 | (if (<= n 8) (aref spaces-strings n) |
| @@ -253,14 +233,12 @@ even beep.)" | |||
| 253 | (barf-if-buffer-read-only) | 233 | (barf-if-buffer-read-only) |
| 254 | (signal 'text-read-only (list (current-buffer))))))) | 234 | (signal 'text-read-only (list (current-buffer))))))) |
| 255 | 235 | ||
| 256 | ;; this one is untouched --dv | ||
| 257 | ;;;###autoload | 236 | ;;;###autoload |
| 258 | (defun yank-rectangle () | 237 | (defun yank-rectangle () |
| 259 | "Yank the last killed rectangle with upper left corner at point." | 238 | "Yank the last killed rectangle with upper left corner at point." |
| 260 | (interactive "*") | 239 | (interactive "*") |
| 261 | (insert-rectangle killed-rectangle)) | 240 | (insert-rectangle killed-rectangle)) |
| 262 | 241 | ||
| 263 | ;; this one is untoutched --dv | ||
| 264 | ;;;###autoload | 242 | ;;;###autoload |
| 265 | (defun insert-rectangle (rectangle) | 243 | (defun insert-rectangle (rectangle) |
| 266 | "Insert text of RECTANGLE with upper left corner at point. | 244 | "Insert text of RECTANGLE with upper left corner at point. |
| @@ -323,10 +301,6 @@ With a prefix (or a FILL) argument, also fill too short lines." | |||
| 323 | (interactive "*r\nP") | 301 | (interactive "*r\nP") |
| 324 | (apply-on-rectangle 'delete-whitespace-rectangle-line start end fill)) | 302 | (apply-on-rectangle 'delete-whitespace-rectangle-line start end fill)) |
| 325 | 303 | ||
| 326 | ;; not used any more --dv | ||
| 327 | ;; string-rectangle uses this variable to pass the string | ||
| 328 | ;; to string-rectangle-line. | ||
| 329 | (defvar string-rectangle-string) | ||
| 330 | (defvar string-rectangle-history nil) | 304 | (defvar string-rectangle-history nil) |
| 331 | (defun string-rectangle-line (startcol endcol string delete) | 305 | (defun string-rectangle-line (startcol endcol string delete) |
| 332 | (move-to-column startcol t) | 306 | (move-to-column startcol t) |
diff --git a/lisp/vc/cvs-status.el b/lisp/vc/cvs-status.el index b0e66c055ac..140f299b610 100644 --- a/lisp/vc/cvs-status.el +++ b/lisp/vc/cvs-status.el | |||
| @@ -223,7 +223,6 @@ The tree will be printed no closer than column COLUMN." | |||
| 223 | (let* ((eol (save-excursion (end-of-line) (current-column))) | 223 | (let* ((eol (save-excursion (end-of-line) (current-column))) |
| 224 | (column (max (+ eol 2) column))) | 224 | (column (max (+ eol 2) column))) |
| 225 | (if (null tags) column | 225 | (if (null tags) column |
| 226 | ;;(move-to-column-force column) | ||
| 227 | (let* ((rev (cvs-car tags)) | 226 | (let* ((rev (cvs-car tags)) |
| 228 | (name (funcall printer (cvs-car rev))) | 227 | (name (funcall printer (cvs-car rev))) |
| 229 | (rest (append (cvs-cdr name) (cvs-cdr tags))) | 228 | (rest (append (cvs-cdr name) (cvs-cdr tags))) |