From: "Eli Zaretskii" <eliz@is.elta.co.il>
Cc: emacs-devel@gnu.org
Subject: Re: PRIMARY selection doesn't work
Date: Sat, 04 May 2002 10:31:53 +0300 [thread overview]
Message-ID: <8962-Sat04May2002103152+0300-eliz@is.elta.co.il> (raw)
In-Reply-To: <200204201749.NAA01838@sbcs.cs.sunysb.edu> (kifer@cs.sunysb.edu)
> From: kifer@cs.sunysb.edu (Michael Kifer)
> Date: Sat, 20 Apr 2002 13:49:27 -0400
>
> EZ> Do you see any change in behavior if you change the value of
> EZ> selection-coding-system? For example, what happens if you type
> EZ> "C-x RET x latin-1 RET" and then mark a region of pure ASCII
> EZ> characters and type "M-w"--can you paste that text into other
> EZ> applications? Please also try with "C-x RET x compound-text RET".
>
> Absolutely -- it starts working!
> Both latin-1 and compound-text work.
Please see if the patch below solves the problem if you revert
selection-coding-system to compound-text-with-extensions. Please try
that both with pure ASCII text and some non-ASCII text in the
selection.
TIA
Index: src/xselect.c
===================================================================
RCS file: /cvs/emacs/src/xselect.c,v
retrieving revision 1.113
diff -c -p -r1.113 xselect.c
*** src/xselect.c 4 Mar 2002 23:40:59 -0000 1.113
--- src/xselect.c 4 May 2002 07:29:54 -0000
*************** lisp_data_to_selection_data (display, ob
*** 1765,1775 ****
*data_ret = x_encode_text (obj, Vnext_selection_coding_system, 1,
(int *) size_ret, &stringp);
*nofree_ret = (*data_ret == XSTRING (obj)->data);
! if (EQ (Vnext_selection_coding_system,
! Qcompound_text_with_extensions))
! type = QCOMPOUND_TEXT;
! else if (NILP (type))
! type = (stringp ? QSTRING : QCOMPOUND_TEXT);
Vlast_coding_system_used = (*nofree_ret
? Qraw_text
: Vnext_selection_coding_system);
--- 1765,1780 ----
*data_ret = x_encode_text (obj, Vnext_selection_coding_system, 1,
(int *) size_ret, &stringp);
*nofree_ret = (*data_ret == XSTRING (obj)->data);
! if (NILP (type))
! {
! if (stringp && *nofree_ret)
! type = QSTRING;
! else if (EQ (Vnext_selection_coding_system,
! Qcompound_text_with_extensions))
! type = QCOMPOUND_TEXT;
! else
! type = (stringp ? QSTRING : QCOMPOUND_TEXT);
! }
Vlast_coding_system_used = (*nofree_ret
? Qraw_text
: Vnext_selection_coding_system);
next prev parent reply other threads:[~2002-05-04 7:31 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-04-12 3:17 PRIMARY selection doesn't work Michael Kifer
2002-04-12 8:55 ` Eli Zaretskii
2002-04-12 16:32 ` Michael Kifer
2002-04-18 6:48 ` Eli Zaretskii
2002-04-18 16:43 ` Michael Kifer
2002-04-20 13:27 ` Eli Zaretskii
2002-04-20 17:49 ` Michael Kifer
2002-04-20 18:10 ` Eli Zaretskii
2002-05-04 7:31 ` Eli Zaretskii [this message]
[not found] <200204201813.OAA02541@sbcs.cs.sunysb.edu>
2002-04-20 20:06 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8962-Sat04May2002103152+0300-eliz@is.elta.co.il \
--to=eliz@is.elta.co.il \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).