unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* bug in xselect-convert-to-string
@ 2004-05-02 19:01 Luc Teirlinck
  2004-05-03  0:17 ` Kenichi Handa
  0 siblings, 1 reply; 2+ messages in thread
From: Luc Teirlinck @ 2004-05-02 19:01 UTC (permalink / raw)


Trying to yank text with read-only properties into say, a gnome
terminal, yields an error.   The following patch fixes this.  It seems
like an obvious change to make, but I post the patch before
installing, just to make sure that there are no objections.  If not, I
will install.

===File ~/select-diff=======================================
*** select.el.~1.21.~	Tue Sep  2 07:36:12 2003
--- select.el	Sun May  2 13:00:26 2004
***************
*** 177,182 ****
--- 177,183 ----
  	    (setq coding (coding-system-base coding))
  	  (setq coding 'raw-text))
  	;; Suppress producing escape sequences for compositions.
+ 	(let ((inhibit-read-only t))
  	  (remove-text-properties 0 (length str) '(composition nil) str)
  	  (cond
  	   ((eq type 'TEXT)
***************
*** 216,222 ****
  
  	 (t
  	  (error "Unknow selection type: %S" type))
! 	 ))
  
        (setq next-selection-coding-system nil)
        (cons type str))))
--- 217,223 ----
  
  	   (t
  	    (error "Unknow selection type: %S" type))
! 	   )))
  
        (setq next-selection-coding-system nil)
        (cons type str))))
============================================================

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-05-03  0:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-05-02 19:01 bug in xselect-convert-to-string Luc Teirlinck
2004-05-03  0:17 ` Kenichi Handa

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).