Preserve text properties when saving primary selection.
* lisp/simple.el (deactivate-mark): Preserve text properties when saving the primary selection. Fixes: debbugs:8384
This commit is contained in:
parent
c7feb5c081
commit
5fb50dd302
2 changed files with 7 additions and 3 deletions
|
@ -1,3 +1,8 @@
|
|||
2012-08-07 Chong Yidong <cyd@gnu.org>
|
||||
|
||||
* simple.el (deactivate-mark): Preserve text properties when
|
||||
saving the primary selection (Bug#8384).
|
||||
|
||||
2012-08-07 Kevin Ryde <user42@zip.com.au>
|
||||
|
||||
* woman.el (woman0-if): Quietly treat ".if v" as false (Bug#12109).
|
||||
|
|
|
@ -3960,9 +3960,8 @@ run `deactivate-mark-hook'."
|
|||
(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)
|
||||
|
|
Loading…
Add table
Reference in a new issue