aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiles Bader2002-06-17 08:10:37 +0000
committerMiles Bader2002-06-17 08:10:37 +0000
commit35068823aee067ff7a6244f2b01b254dba687b01 (patch)
treec43ea40a7a37dc03703cb54d3db96129301da7b5
parente0156c8db531a321f1af80a8d0f26fdaa8ebc2b5 (diff)
downloademacs-35068823aee067ff7a6244f2b01b254dba687b01.tar.gz
emacs-35068823aee067ff7a6244f2b01b254dba687b01.zip
(comint-insert-clicked-input): Insert clicked-on previous input without
properties. Patch from John Paul Wallington <jpw@shootybangbang.com>.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/comint.el7
2 files changed, 8 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 236fc1ff021..e402b87d793 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12002-06-17 John Paul Wallington <jpw@shootybangbang.com>
2
3 * comint.el (comint-insert-clicked-input): Insert clicked-on
4 previous input without properties.
5
12002-06-16 Andrew Choi <akochoi@shaw.ca> 62002-06-16 Andrew Choi <akochoi@shaw.ca>
2 7
3 * term/mac-win.el (scalable-fonts-allowed): Set to t. 8 * term/mac-win.el (scalable-fonts-allowed): Set to t.
diff --git a/lisp/comint.el b/lisp/comint.el
index f864da96496..7aeba47baec 100644
--- a/lisp/comint.el
+++ b/lisp/comint.el
@@ -779,10 +779,9 @@ buffer. The hook `comint-exec-hook' is run after each exec."
779 (process-mark (get-buffer-process (current-buffer)))) 779 (process-mark (get-buffer-process (current-buffer))))
780 (point)) 780 (point))
781 ;; Insert the clicked-upon input 781 ;; Insert the clicked-upon input
782 (insert-buffer-substring 782 (insert (buffer-substring-no-properties
783 (current-buffer) 783 (previous-single-char-property-change (1+ pos) 'field)
784 (previous-single-char-property-change (1+ pos) 'field) 784 (next-single-char-property-change pos 'field))))))
785 (next-single-char-property-change pos 'field)))))
786 785
787 786
788 787