diff options
| author | Karoly Lorentey | 2006-04-10 14:52:24 +0000 |
|---|---|---|
| committer | Karoly Lorentey | 2006-04-10 14:52:24 +0000 |
| commit | e349ae3b6b6db99d11321622fadff88bc42c1125 (patch) | |
| tree | 7a24a5dad70d4b3695f227681fc37e179551d24a /lisp/emulation | |
| parent | 2518de51d20e848711c712f5030e8c207a4e2840 (diff) | |
| parent | 4f07f2e8a5458758dcf2bfbdf9b0cf8c91a8572e (diff) | |
| download | emacs-e349ae3b6b6db99d11321622fadff88bc42c1125.tar.gz emacs-e349ae3b6b6db99d11321622fadff88bc42c1125.zip | |
Merged from
Patches applied:
* emacs@sv.gnu.org/emacs--devo--0--patch-188
Update from CVS
* emacs@sv.gnu.org/emacs--devo--0--patch-189
Merge from gnus--rel--5.10
* emacs@sv.gnu.org/emacs--devo--0--patch-190
Update from CVS
* emacs@sv.gnu.org/emacs--devo--0--patch-191
Undo incorrect merge of etc/images/README from Gnus 5.10
* emacs@sv.gnu.org/emacs--devo--0--patch-192
Update from CVS
* emacs@sv.gnu.org/emacs--devo--0--patch-193
Update from CVS
* emacs@sv.gnu.org/emacs--devo--0--patch-194
Update from CVS
* emacs@sv.gnu.org/emacs--devo--0--patch-195
Update from CVS
* emacs@sv.gnu.org/emacs--devo--0--patch-196
Merge from gnus--rel--5.10
* emacs@sv.gnu.org/emacs--devo--0--patch-197
Update from CVS
* emacs@sv.gnu.org/emacs--devo--0--patch-198
Merge from gnus--rel--5.10
* emacs@sv.gnu.org/emacs--devo--0--patch-199
Update from CVS
* emacs@sv.gnu.org/emacs--devo--0--patch-200
Update from CVS
* emacs@sv.gnu.org/emacs--devo--0--patch-201
Update from CVS
* emacs@sv.gnu.org/emacs--devo--0--patch-202
Update from CVS
* emacs@sv.gnu.org/emacs--devo--0--patch-203
Merge from gnus--rel--5.10
* emacs@sv.gnu.org/emacs--devo--0--patch-204
Update from CVS
* emacs@sv.gnu.org/emacs--devo--0--patch-205
Update from CVS
* emacs@sv.gnu.org/emacs--devo--0--patch-206
Update from CVS
* emacs@sv.gnu.org/gnus--rel--5.10--patch-73
Update from CVS
* emacs@sv.gnu.org/gnus--rel--5.10--patch-74
Update from CVS
* emacs@sv.gnu.org/gnus--rel--5.10--patch-75
Update from CVS
* emacs@sv.gnu.org/gnus--rel--5.10--patch-76
Update from CVS: README: Addition from 5.10.6 tar ball.
* emacs@sv.gnu.org/gnus--rel--5.10--patch-77
Update from CVS
* emacs@sv.gnu.org/gnus--rel--5.10--patch-78
Update from CVS
* emacs@sv.gnu.org/gnus--rel--5.10--patch-79
Update from CVS
* emacs@sv.gnu.org/gnus--rel--5.10--patch-80
Update from CVS
git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-547
Diffstat (limited to 'lisp/emulation')
| -rw-r--r-- | lisp/emulation/cua-base.el | 8 | ||||
| -rw-r--r-- | lisp/emulation/cua-gmrk.el | 4 | ||||
| -rw-r--r-- | lisp/emulation/cua-rect.el | 10 |
3 files changed, 11 insertions, 11 deletions
diff --git a/lisp/emulation/cua-base.el b/lisp/emulation/cua-base.el index e99a280c555..3ea0cd6b6d9 100644 --- a/lisp/emulation/cua-base.el +++ b/lisp/emulation/cua-base.el | |||
| @@ -769,7 +769,7 @@ Save a copy in register 0 if `cua-delete-copy-to-register-0' is non-nil." | |||
| 769 | (let ((start (mark)) (end (point))) | 769 | (let ((start (mark)) (end (point))) |
| 770 | (or (<= start end) | 770 | (or (<= start end) |
| 771 | (setq start (prog1 end (setq end start)))) | 771 | (setq start (prog1 end (setq end start)))) |
| 772 | (setq cua--last-deleted-region-text (buffer-substring start end)) | 772 | (setq cua--last-deleted-region-text (filter-buffer-substring start end)) |
| 773 | (if cua-delete-copy-to-register-0 | 773 | (if cua-delete-copy-to-register-0 |
| 774 | (set-register ?0 cua--last-deleted-region-text)) | 774 | (set-register ?0 cua--last-deleted-region-text)) |
| 775 | (delete-region start end) | 775 | (delete-region start end) |
| @@ -858,7 +858,7 @@ If global mark is active, copy from register or one character." | |||
| 858 | (if regtxt | 858 | (if regtxt |
| 859 | (cua--insert-at-global-mark regtxt) | 859 | (cua--insert-at-global-mark regtxt) |
| 860 | (when (not (eobp)) | 860 | (when (not (eobp)) |
| 861 | (cua--insert-at-global-mark (buffer-substring (point) (+ (point) count))) | 861 | (cua--insert-at-global-mark (filter-buffer-substring (point) (+ (point) count))) |
| 862 | (forward-char count)))) | 862 | (forward-char count)))) |
| 863 | (buffer-read-only | 863 | (buffer-read-only |
| 864 | (message "Cannot paste into a read-only buffer")) | 864 | (message "Cannot paste into a read-only buffer")) |
| @@ -875,7 +875,7 @@ If global mark is active, copy from register or one character." | |||
| 875 | (setq paste-lines (cua--delete-rectangle)) | 875 | (setq paste-lines (cua--delete-rectangle)) |
| 876 | (if (= paste-lines 1) | 876 | (if (= paste-lines 1) |
| 877 | (setq paste-lines nil))) ;; paste all | 877 | (setq paste-lines nil))) ;; paste all |
| 878 | (if (string= (buffer-substring (point) (mark)) | 878 | (if (string= (filter-buffer-substring (point) (mark)) |
| 879 | (car kill-ring)) | 879 | (car kill-ring)) |
| 880 | (current-kill 1)) | 880 | (current-kill 1)) |
| 881 | (cua-delete-region))) | 881 | (cua-delete-region))) |
| @@ -950,7 +950,7 @@ of text." | |||
| 950 | (setq s (car u) e (cdr u))))))) | 950 | (setq s (car u) e (cdr u))))))) |
| 951 | (setq cua--repeat-replace-text | 951 | (setq cua--repeat-replace-text |
| 952 | (cond ((and s e (<= s e) (= s (mark t))) | 952 | (cond ((and s e (<= s e) (= s (mark t))) |
| 953 | (buffer-substring-no-properties s e)) | 953 | (filter-buffer-substring s e nil t)) |
| 954 | ((and (null s) (eq u elt)) ;; nothing inserted | 954 | ((and (null s) (eq u elt)) ;; nothing inserted |
| 955 | "") | 955 | "") |
| 956 | (t | 956 | (t |
diff --git a/lisp/emulation/cua-gmrk.el b/lisp/emulation/cua-gmrk.el index c3e6727ab65..842ee9ce0e3 100644 --- a/lisp/emulation/cua-gmrk.el +++ b/lisp/emulation/cua-gmrk.el | |||
| @@ -143,7 +143,7 @@ With prefix argument, don't jump to global mark when cancelling it." | |||
| 143 | (let ((src-buf (current-buffer))) | 143 | (let ((src-buf (current-buffer))) |
| 144 | (save-excursion | 144 | (save-excursion |
| 145 | (if (equal (marker-buffer cua--global-mark-marker) src-buf) | 145 | (if (equal (marker-buffer cua--global-mark-marker) src-buf) |
| 146 | (let ((text (buffer-substring-no-properties start end))) | 146 | (let ((text (filter-buffer-substring start end nil t))) |
| 147 | (goto-char (marker-position cua--global-mark-marker)) | 147 | (goto-char (marker-position cua--global-mark-marker)) |
| 148 | (insert text)) | 148 | (insert text)) |
| 149 | (set-buffer (marker-buffer cua--global-mark-marker)) | 149 | (set-buffer (marker-buffer cua--global-mark-marker)) |
| @@ -167,7 +167,7 @@ With prefix argument, don't jump to global mark when cancelling it." | |||
| 167 | (if (and (< start (marker-position cua--global-mark-marker)) | 167 | (if (and (< start (marker-position cua--global-mark-marker)) |
| 168 | (< (marker-position cua--global-mark-marker) end)) | 168 | (< (marker-position cua--global-mark-marker) end)) |
| 169 | (message "Can't move region into itself") | 169 | (message "Can't move region into itself") |
| 170 | (let ((text (buffer-substring-no-properties start end)) | 170 | (let ((text (filter-buffer-substring start end nil t)) |
| 171 | (p1 (copy-marker start)) | 171 | (p1 (copy-marker start)) |
| 172 | (p2 (copy-marker end))) | 172 | (p2 (copy-marker end))) |
| 173 | (goto-char (marker-position cua--global-mark-marker)) | 173 | (goto-char (marker-position cua--global-mark-marker)) |
diff --git a/lisp/emulation/cua-rect.el b/lisp/emulation/cua-rect.el index 53056d667fb..43a66fd0e3e 100644 --- a/lisp/emulation/cua-rect.el +++ b/lisp/emulation/cua-rect.el | |||
| @@ -631,7 +631,7 @@ If command is repeated at same position, delete the rectangle." | |||
| 631 | (if (not (cua--rectangle-virtual-edges)) | 631 | (if (not (cua--rectangle-virtual-edges)) |
| 632 | (cua--rectangle-operation nil nil nil nil nil ; do not tabify | 632 | (cua--rectangle-operation nil nil nil nil nil ; do not tabify |
| 633 | '(lambda (s e l r) | 633 | '(lambda (s e l r) |
| 634 | (setq rect (cons (buffer-substring-no-properties s e) rect)))) | 634 | (setq rect (cons (filter-buffer-substring s e nil t) rect)))) |
| 635 | (cua--rectangle-operation nil 1 nil nil nil ; do not tabify | 635 | (cua--rectangle-operation nil 1 nil nil nil ; do not tabify |
| 636 | '(lambda (s e l r v) | 636 | '(lambda (s e l r v) |
| 637 | (let ((copy t) (bs 0) (as 0) row) | 637 | (let ((copy t) (bs 0) (as 0) row) |
| @@ -649,7 +649,7 @@ If command is repeated at same position, delete the rectangle." | |||
| 649 | (setq as (- r (max (current-column) l)) | 649 | (setq as (- r (max (current-column) l)) |
| 650 | e (point))) | 650 | e (point))) |
| 651 | (setq row (if (and copy (> e s)) | 651 | (setq row (if (and copy (> e s)) |
| 652 | (buffer-substring-no-properties s e) | 652 | (filter-buffer-substring s e nil t) |
| 653 | "")) | 653 | "")) |
| 654 | (when (> bs 0) | 654 | (when (> bs 0) |
| 655 | (setq row (concat (make-string bs ?\s) row))) | 655 | (setq row (concat (make-string bs ?\s) row))) |
| @@ -1127,12 +1127,12 @@ The length of STRING need not be the same as the rectangle width." | |||
| 1127 | '(lambda (s e l r) | 1127 | '(lambda (s e l r) |
| 1128 | (cond | 1128 | (cond |
| 1129 | ((re-search-forward "0x\\([0-9a-fA-F]+\\)" e t) | 1129 | ((re-search-forward "0x\\([0-9a-fA-F]+\\)" e t) |
| 1130 | (let* ((txt (buffer-substring-no-properties (match-beginning 1) (match-end 1))) | 1130 | (let* ((txt (filter-buffer-substring (match-beginning 1) (match-end 1) nil t)) |
| 1131 | (n (string-to-number txt 16)) | 1131 | (n (string-to-number txt 16)) |
| 1132 | (fmt (format "0x%%0%dx" (length txt)))) | 1132 | (fmt (format "0x%%0%dx" (length txt)))) |
| 1133 | (replace-match (format fmt (+ n increment))))) | 1133 | (replace-match (format fmt (+ n increment))))) |
| 1134 | ((re-search-forward "\\( *-?[0-9]+\\)" e t) | 1134 | ((re-search-forward "\\( *-?[0-9]+\\)" e t) |
| 1135 | (let* ((txt (buffer-substring-no-properties (match-beginning 1) (match-end 1))) | 1135 | (let* ((txt (filter-buffer-substring (match-beginning 1) (match-end 1) nil t)) |
| 1136 | (prefix (if (= (aref txt 0) ?0) "0" "")) | 1136 | (prefix (if (= (aref txt 0) ?0) "0" "")) |
| 1137 | (n (string-to-number txt 10)) | 1137 | (n (string-to-number txt 10)) |
| 1138 | (fmt (format "%%%s%dd" prefix (length txt)))) | 1138 | (fmt (format "%%%s%dd" prefix (length txt)))) |
| @@ -1213,7 +1213,7 @@ The numbers are formatted according to the FORMAT string." | |||
| 1213 | (when replace | 1213 | (when replace |
| 1214 | (goto-char (point-min)) | 1214 | (goto-char (point-min)) |
| 1215 | (while (not (eobp)) | 1215 | (while (not (eobp)) |
| 1216 | (setq z (cons (buffer-substring (point) (line-end-position)) z)) | 1216 | (setq z (cons (filter-buffer-substring (point) (line-end-position)) z)) |
| 1217 | (forward-line 1)))) | 1217 | (forward-line 1)))) |
| 1218 | (if (not cua--debug) | 1218 | (if (not cua--debug) |
| 1219 | (kill-buffer auxbuf)) | 1219 | (kill-buffer auxbuf)) |