diff options
| author | Dmitry Gutov | 2022-08-15 02:22:59 +0300 |
|---|---|---|
| committer | Dmitry Gutov | 2022-08-15 02:22:59 +0300 |
| commit | ee3a674c7c9e39fe7ff296ce1f9830fc45520de8 (patch) | |
| tree | e8ba1e7be54314f208454e80e3d31044c913f3eb /lisp/select.el | |
| parent | fe0e53d963899a16e0dd1bbc1ba10a6b59f7989e (diff) | |
| parent | 0a8e88fd83db5398d36064a7f87cff5b57da7284 (diff) | |
| download | emacs-scratch/font_lock_large_files.tar.gz emacs-scratch/font_lock_large_files.zip | |
Merge branch 'master' into scratch/font_lock_large_filesscratch/font_lock_large_files
Diffstat (limited to 'lisp/select.el')
| -rw-r--r-- | lisp/select.el | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lisp/select.el b/lisp/select.el index e407c224367..5b9cca80a38 100644 --- a/lisp/select.el +++ b/lisp/select.el | |||
| @@ -673,9 +673,12 @@ two markers or an overlay. Otherwise, it is nil." | |||
| 673 | (let ((str (cond ((stringp value) value) | 673 | (let ((str (cond ((stringp value) value) |
| 674 | ((setq value (xselect--selection-bounds value)) | 674 | ((setq value (xselect--selection-bounds value)) |
| 675 | (with-current-buffer (nth 2 value) | 675 | (with-current-buffer (nth 2 value) |
| 676 | (buffer-substring (nth 0 value) | 676 | (when (and (>= (nth 0 value) (point-min)) |
| 677 | (nth 1 value))))))) | 677 | (<= (nth 1 value) (point-max))) |
| 678 | (xselect--encode-string type str t))) | 678 | (buffer-substring (nth 0 value) |
| 679 | (nth 1 value)))))))) | ||
| 680 | (when str | ||
| 681 | (xselect--encode-string type str t)))) | ||
| 679 | 682 | ||
| 680 | (defun xselect-convert-to-length (_selection _type value) | 683 | (defun xselect-convert-to-length (_selection _type value) |
| 681 | (let ((len (cond ((stringp value) | 684 | (let ((len (cond ((stringp value) |