emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] /srv/bzr/emacs/trunk r109485: Preserve text properties whe


From: Chong Yidong
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r109485: Preserve text properties when saving primary selection.
Date: Tue, 07 Aug 2012 12:52:15 +0800
User-agent: Bazaar (2.5.0)

------------------------------------------------------------
revno: 109485
fixes bug: http://debbugs.gnu.org/8384
committer: Chong Yidong <address@hidden>
branch nick: trunk
timestamp: Tue 2012-08-07 12:52:15 +0800
message:
  Preserve text properties when saving primary selection.
  
  * lisp/simple.el (deactivate-mark): Preserve text properties when
  saving the primary selection.
modified:
  lisp/ChangeLog
  lisp/simple.el
=== modified file 'lisp/ChangeLog'
--- a/lisp/ChangeLog    2012-08-07 03:57:05 +0000
+++ b/lisp/ChangeLog    2012-08-07 04:52:15 +0000
@@ -1,3 +1,8 @@
+2012-08-07  Chong Yidong  <address@hidden>
+
+       * simple.el (deactivate-mark): Preserve text properties when
+       saving the primary selection (Bug#8384).
+
 2012-08-07  Kevin Ryde  <address@hidden>
 
        * woman.el (woman0-if): Quietly treat ".if v" as false (Bug#12109).

=== modified file 'lisp/simple.el'
--- a/lisp/simple.el    2012-08-04 08:09:24 +0000
+++ b/lisp/simple.el    2012-08-07 04:52:15 +0000
@@ -3960,9 +3960,8 @@
                  (or (x-selection-owner-p 'PRIMARY)
                      (null (x-selection-exists-p 'PRIMARY))))
             (x-set-selection 'PRIMARY
-                             (buffer-substring-no-properties
-                              (region-beginning)
-                              (region-end))))))
+                             (buffer-substring (region-beginning)
+                                               (region-end))))))
     (if (and (null force)
             (or (eq transient-mark-mode 'lambda)
                 (and (eq (car-safe transient-mark-mode) 'only)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]