Mercurial > emacs
comparison lisp/format.el @ 49588:37645a051842
Trailing whitespace deleted.
author | Juanma Barranquero <lekktu@gmail.com> |
---|---|
date | Tue, 04 Feb 2003 11:26:42 +0000 |
parents | 22a18a9dae2a |
children | 9d852ed73287 d7ddb3e565de |
comparison
equal
deleted
inserted
replaced
49587:e82b3fe06d4c | 49588:37645a051842 |
---|---|
256 (begin (point)) | 256 (begin (point)) |
257 (end (+ (point) length))) | 257 (end (+ (point) length))) |
258 (unwind-protect | 258 (unwind-protect |
259 (progn | 259 (progn |
260 ;; Don't record undo information for the decoding. | 260 ;; Don't record undo information for the decoding. |
261 | 261 |
262 (if (null format) | 262 (if (null format) |
263 ;; Figure out which format it is in, remember list in `format'. | 263 ;; Figure out which format it is in, remember list in `format'. |
264 (let ((try format-alist)) | 264 (let ((try format-alist)) |
265 (while try | 265 (while try |
266 (let* ((f (car try)) | 266 (let* ((f (car try)) |
294 (setq do (cdr do)))) | 294 (setq do (cdr do)))) |
295 ;; Encode in the opposite order. | 295 ;; Encode in the opposite order. |
296 (setq format (reverse format))) | 296 (setq format (reverse format))) |
297 (if visit-flag | 297 (if visit-flag |
298 (setq buffer-file-format format))) | 298 (setq buffer-file-format format))) |
299 | 299 |
300 (set-buffer-modified-p mod)) | 300 (set-buffer-modified-p mod)) |
301 | 301 |
302 ;; Return new length of region | 302 ;; Return new length of region |
303 (- end begin))) | 303 (- end begin))) |
304 | 304 |
484 (if (null p) (error "format-delq-cons: not an element")) | 484 (if (null p) (error "format-delq-cons: not an element")) |
485 (setq p (cdr p))) | 485 (setq p (cdr p))) |
486 ;; Now (cdr p) is the cons to delete | 486 ;; Now (cdr p) is the cons to delete |
487 (setcdr p (cdr cons)) | 487 (setcdr p (cdr cons)) |
488 list))) | 488 list))) |
489 | 489 |
490 (defun format-make-relatively-unique (a b) | 490 (defun format-make-relatively-unique (a b) |
491 "Delete common elements of lists A and B, return as pair. | 491 "Delete common elements of lists A and B, return as pair. |
492 Compares using `equal'." | 492 Compares using `equal'." |
493 (let* ((acopy (copy-sequence a)) | 493 (let* ((acopy (copy-sequence a)) |
494 (bcopy (copy-sequence b)) | 494 (bcopy (copy-sequence b)) |