unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Tak Ota <Takaaki.Ota@am.sony.com>
Cc: eliz@gnu.org, handa@m17n.org, jasonr@gnu.org,
	monnier@iro.umontreal.ca, emacs-devel@gnu.org
Subject: Re: Unicode support for the MS Windows clipboard [new patch]
Date: Wed, 08 Sep 2004 14:11:05 -0700 (PDT)	[thread overview]
Message-ID: <20040908.141105.01368032.Takaaki.Ota@am.sony.com> (raw)
In-Reply-To: <m3llfwe4jx.fsf_-_@seneca.benny.turtle-trading.net>

I have confirmed both mingw build and MSVC build work fine in copying
and pasting unicode characters back and forth between emacs and
windoze application.  If there is no issues about this patch could
someone check it into CVS please.  Thanks.

-Tak


Mon, 30 Aug 2004 22:47:46 +0200: Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de> wrote:

> Hi all,
> 
> Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de> writes:
> > I will fix the atexit() bit and see what I can do in terms of docs.
> 
> See attached patch. 
> 
> I have kept the documentation rather high-level, because users
> shouldn't need to do anything, the defaults are fine.  A more detailed
> documentation would have to go into the ELisp manual IMO.
> 
> benny
> 
> 
> 2004-08-30  Benjamin Riefenstahl  <Benjamin.Riefenstahl@epost.de>
> 
> 	* w32select.c: Summary: Thorough rework to implement Unicode
>         clipboard operations and delayed rendering.
> 
>         Drop last_clipboard_text and related code, keep track of
>         ownership via clipboard_owner instead.  Drop old #if0
>         sections.
> 
> 	(DEFAULT_LCID, ANSICP, OEMCP, QUNICODE, QANSICP, QOEMCP)
> 	(clipboard_owner, modifying_clipboard, cfg_coding_system)
> 	(cfg_codepage, cfg_lcid, cfg_clipboard_type, current_text)
> 	(current_coding_system, current_requires_encoding)
> 	(current_num_nls, current_clipboard_type, current_lcid): New
> 	static variables.
> 
> 	(convert_to_handle_as_ascii, convert_to_handle_as_coded)
>         (render, render_all, run_protected, lisp_error_handler)
>         (owner_callback, create_owner, setup_config)
>         (enum_locale_callback, cp_from_locale, coding_from_cp): New
>         local functions.
> 
>         (term_w32select, globals_of_w32select): New global functions.
> 
> 	(Fw32_set_clipboard_data): Ignore parameter FRAME, use
> 	clipboard_owner instead.  Use delayed rendering and provide
> 	all text formats.  Provide CF_LOCALE if necessary.
> 
> 	(Fw32_get_clipboard_data): Handle CF_UNICODETEXT and
> 	CF_LOCALE.  Fall back to CF_TEXT, if CF_UNICODETEXT is not
> 	available.  Force DOS line-ends for decoding.
> 
> 	(Fx_selection_exists_p): Handle CF_UNICODETEXT.
> 
> 	(syms_of_w32select): Init and register new variables.
> 
>         * w32.h: Add prototypes for globals_of_w32select and
>         term_w32select.  Make the neighboring K&R declarations into
>         prototypes, too.
> 
>         * emacs.c: Include w32.h to get function prototypes.
>         (main): Call globals_of_w32select.
> 
>         * w32.c (term_ntproc): Call term_w32select. 
> 
>         * mule-cmds.el (set-locale-environment): Remove call to
>         set-selection-coding-system on Windows.
> 
>         * s/ms-w32.h: Guard MSC-specific #pragmas with an #ifdef.
> 
> 

  parent reply	other threads:[~2004-09-08 21:11 UTC|newest]

Thread overview: 72+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-26 18:01 [Patch] Unicode support for the MS Windows clipboard Benjamin Riefenstahl
2004-05-27  7:58 ` Jason Rumney
2004-05-27 10:12   ` Benjamin Riefenstahl
2004-05-27 15:43     ` Jason Rumney
2004-05-27 17:46       ` Stefan Monnier
2004-05-27 21:30         ` Jason Rumney
2004-05-27  8:05 ` [Patch] " Eli Zaretskii
2004-05-27  9:45   ` Benjamin Riefenstahl
2004-05-28  7:44     ` Jason Rumney
2004-05-28  9:20     ` Eli Zaretskii
2004-05-29 14:46       ` Benjamin Riefenstahl
2004-05-28 13:26     ` Benjamin Riefenstahl
2004-05-28 14:48       ` Jason Rumney
2004-05-29  0:15         ` Kenichi Handa
2004-05-29 12:21       ` Eli Zaretskii
2004-05-29 14:52         ` Benjamin Riefenstahl
2004-05-29 17:40           ` Eli Zaretskii
2004-06-03  9:17       ` Benjamin Riefenstahl
2004-06-03 13:21         ` Kenichi Handa
2004-06-04 13:01         ` Eli Zaretskii
2004-07-26 19:17         ` Benjamin Riefenstahl
2004-07-26 19:35           ` Jason Rumney
2004-07-27 22:43             ` Benjamin Riefenstahl
2004-07-28  4:45               ` Eli Zaretskii
2004-07-28  8:02                 ` Jason Rumney
2004-07-28 18:57                   ` Eli Zaretskii
2004-07-28 11:30                 ` Benjamin Riefenstahl
2004-07-28 12:38                   ` Benjamin Riefenstahl
2004-07-28 13:03                     ` Jason Rumney
2004-07-28 13:44                       ` Benjamin Riefenstahl
2004-07-26 19:45           ` Jason Rumney
2004-07-27 11:17             ` Benjamin Riefenstahl
2004-07-27  5:07           ` Eli Zaretskii
2004-07-27 12:20             ` Benjamin Riefenstahl
2004-07-27  7:41           ` Jason Rumney
2004-07-27 11:04             ` Benjamin Riefenstahl
2004-07-27 12:24             ` Benjamin Riefenstahl
2004-07-27 13:15               ` Jason Rumney
2004-07-28  1:12               ` Tak Ota
2004-07-28 11:20                 ` Benjamin Riefenstahl
2004-07-28 11:35                   ` Jason Rumney
2004-07-28 12:08                     ` Benjamin Riefenstahl
2004-07-28 16:57                       ` Tak Ota
2004-07-28 17:34                       ` Tak Ota
2004-07-28 16:26                     ` Tak Ota
2004-07-28 18:42               ` Tak Ota
2004-07-28 21:51                 ` Tak Ota
2004-07-29 11:42                   ` Benjamin Riefenstahl
2004-07-29 16:38                     ` Tak Ota
2004-08-27 17:06               ` Tak Ota
2004-08-29 13:33                 ` Benjamin Riefenstahl
2004-08-30 20:47                   ` Unicode support for the MS Windows clipboard [new patch] Benjamin Riefenstahl
2004-08-31  4:05                     ` Eli Zaretskii
2004-09-12 19:50                       ` Benjamin Riefenstahl
2004-09-13 19:55                         ` Eli Zaretskii
2004-09-08 21:11                     ` Tak Ota [this message]
2004-09-10 13:47                     ` Kim F. Storm
2004-09-10 15:34                       ` Jason Rumney
2004-09-10 17:46                         ` Benjamin Riefenstahl
2004-09-12  9:09                           ` Richard Stallman
2004-09-12 14:11                             ` Benjamin Riefenstahl
2004-11-08 17:24                     ` Benjamin Riefenstahl
2004-11-15 21:41                       ` Tak Ota
2004-11-21 19:17                         ` Benjamin Riefenstahl
2005-02-08  0:49                       ` Tak Ota
2005-02-08  9:04                         ` Jason Rumney
2005-02-15 18:19                           ` Tak Ota
2005-02-16  9:52                             ` Jason Rumney
2005-02-16 17:09                             ` Benjamin Riefenstahl
2004-05-28 15:18     ` Unicode support for the MS Windows clipboard Stefan Monnier
2004-05-29 12:23       ` Eli Zaretskii
2004-05-27 17:48   ` [Patch] " Stefan Monnier

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=20040908.141105.01368032.Takaaki.Ota@am.sony.com \
    --to=takaaki.ota@am.sony.com \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=handa@m17n.org \
    --cc=jasonr@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /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).