1998-04-22 13:39:59 +00:00
|
|
|
|
/* 16-bit Windows Selection processing for emacs on MS-Windows
|
2011-01-15 18:21:30 -08:00
|
|
|
|
|
2012-01-05 01:46:05 -08:00
|
|
|
|
Copyright (C) 1996-1997, 2001-2012 Free Software Foundation, Inc.
|
2002-05-17 13:17:21 +00:00
|
|
|
|
|
1997-04-14 10:59:48 +00:00
|
|
|
|
This file is part of GNU Emacs.
|
|
|
|
|
|
2008-05-14 07:50:26 +00:00
|
|
|
|
GNU Emacs is free software: you can redistribute it and/or modify
|
1997-04-14 10:59:48 +00:00
|
|
|
|
it under the terms of the GNU General Public License as published by
|
2008-05-14 07:50:26 +00:00
|
|
|
|
the Free Software Foundation, either version 3 of the License, or
|
|
|
|
|
(at your option) any later version.
|
1997-04-14 10:59:48 +00:00
|
|
|
|
|
|
|
|
|
GNU Emacs is distributed in the hope that it will be useful,
|
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
2008-05-14 07:50:26 +00:00
|
|
|
|
along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
|
1997-04-14 10:59:48 +00:00
|
|
|
|
|
|
|
|
|
/* These functions work by using WinOldAp interface. WinOldAp
|
|
|
|
|
(WINOLDAP.MOD) is a Microsoft Windows extension supporting
|
|
|
|
|
"old" (character-mode) application access to Dynamic Data Exchange,
|
|
|
|
|
menus, and the Windows clipboard. */
|
|
|
|
|
|
|
|
|
|
/* Written by Dale P. Smith <dpsm@en.com> */
|
Remove support for DJGPP v1.x (bug#5813).
src/:
w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
s/msdos.h:
unexec.c (make_hdr, copy_text_and_data):
sysdep.c (wait_for_termination, sys_subshell):
msdos.c (dos_set_window_size, msdos_set_cursor_shape)
(IT_set_terminal_modes):
(__write, _rename, gethostname, gettimeofday, alarm, fork, kill)
(dos_ttraw, dos_ttcooked, run_msdos_command, abort): Remove DJGPP
v1.x code and tests of the value of __DJGPP__.
(nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
compatibility code.
lread.c:
gmalloc.c (memalign):
fileio.c (Fcopy_file, check_executable, Ffile_modes):
emacs.c (main):
dosfns.c (init_dosfns):
dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
msdos/:
sed3.inp:
sed2.inp:
sed1.inp:
mainmake: Files removed.
2010-04-01 17:59:46 +03:00
|
|
|
|
/* Adapted to DJGPP by Eli Zaretskii <eliz@gnu.org> */
|
1997-04-14 10:59:48 +00:00
|
|
|
|
|
|
|
|
|
#ifdef MSDOS
|
|
|
|
|
|
|
|
|
|
#include <config.h>
|
|
|
|
|
#include <dpmi.h>
|
|
|
|
|
#include <go32.h>
|
|
|
|
|
#include <sys/farptr.h>
|
|
|
|
|
#include "lisp.h"
|
|
|
|
|
#include "dispextern.h" /* frame.h seems to want this */
|
|
|
|
|
#include "frame.h" /* Need this to get the X window of selected_frame */
|
|
|
|
|
#include "blockinput.h"
|
2002-03-01 01:06:01 +00:00
|
|
|
|
#include "character.h"
|
2012-06-16 14:24:15 +02:00
|
|
|
|
#include "buffer.h"
|
1998-07-09 14:02:15 +00:00
|
|
|
|
#include "coding.h"
|
2002-06-24 07:56:18 +00:00
|
|
|
|
#include "composite.h"
|
1997-04-14 10:59:48 +00:00
|
|
|
|
|
|
|
|
|
/* If ever some function outside this file will need to call any
|
|
|
|
|
clipboard-related function, the following prototypes and constants
|
|
|
|
|
should be put on a header file. Right now, nobody else uses them. */
|
|
|
|
|
|
|
|
|
|
#define CF_TEXT 0x01
|
|
|
|
|
#define CF_BITMAP 0x02
|
|
|
|
|
#define CF_METAFILE 0x03
|
|
|
|
|
#define CF_SYLK 0x04
|
|
|
|
|
#define CF_DIF 0x05
|
|
|
|
|
#define CF_TIFF 0x06
|
|
|
|
|
#define CF_OEMTEXT 0x07
|
|
|
|
|
#define CF_DIBBITMAP 0x08
|
|
|
|
|
#define CF_WINWRITE 0x80
|
|
|
|
|
#define CF_DSPTEXT 0x81
|
|
|
|
|
#define CF_DSPBITMAP 0x82
|
|
|
|
|
|
|
|
|
|
unsigned identify_winoldap_version (void);
|
|
|
|
|
unsigned open_clipboard (void);
|
|
|
|
|
unsigned empty_clipboard (void);
|
1998-07-09 14:02:15 +00:00
|
|
|
|
unsigned set_clipboard_data (unsigned, void *, unsigned, int);
|
1997-04-14 10:59:48 +00:00
|
|
|
|
unsigned get_clipboard_data_size (unsigned);
|
1998-07-09 14:02:15 +00:00
|
|
|
|
unsigned get_clipboard_data (unsigned, void *, unsigned, int);
|
1997-04-14 10:59:48 +00:00
|
|
|
|
unsigned close_clipboard (void);
|
|
|
|
|
unsigned clipboard_compact (unsigned);
|
|
|
|
|
|
|
|
|
|
Lisp_Object QCLIPBOARD, QPRIMARY;
|
|
|
|
|
|
|
|
|
|
/* The segment address and the size of the buffer in low
|
|
|
|
|
memory used to move data between us and WinOldAp module. */
|
|
|
|
|
static struct {
|
|
|
|
|
unsigned long size;
|
|
|
|
|
unsigned short rm_segment;
|
|
|
|
|
} clipboard_xfer_buf_info;
|
1999-02-04 15:53:37 +00:00
|
|
|
|
|
|
|
|
|
/* The last text we put into the clipboard. This is used to prevent
|
|
|
|
|
passing back our own text from the clipboard, instead of using the
|
|
|
|
|
kill ring. The former is undesirable because the clipboard data
|
|
|
|
|
could be MULEtilated by inappropriately chosen
|
|
|
|
|
(next-)selection-coding-system. For this reason, we must store the
|
|
|
|
|
text *after* it was encoded/Unix-to-DOS-converted. */
|
|
|
|
|
static unsigned char *last_clipboard_text;
|
|
|
|
|
|
|
|
|
|
/* The size of allocated storage for storing the clipboard data. */
|
|
|
|
|
static size_t clipboard_storage_size;
|
1997-04-14 10:59:48 +00:00
|
|
|
|
|
|
|
|
|
/* C functions to access the Windows 3.1x clipboard from DOS apps.
|
|
|
|
|
|
|
|
|
|
The information was obtained from the Microsoft Knowledge Base,
|
|
|
|
|
article Q67675 and can be found at:
|
|
|
|
|
http://www.microsoft.com/kb/developr/win_dk/q67675.htm */
|
|
|
|
|
|
|
|
|
|
/* See also Ralf Brown's Interrupt List.
|
|
|
|
|
|
|
|
|
|
I also seem to remember reading about this in Dr. Dobbs Journal a
|
|
|
|
|
while ago, but if you knew my memory... :-)
|
|
|
|
|
|
|
|
|
|
Dale P. Smith <dpsm@en.com> */
|
|
|
|
|
|
|
|
|
|
/* Return the WinOldAp support version, or 0x1700 if not supported. */
|
|
|
|
|
unsigned
|
2010-07-07 18:28:47 +03:00
|
|
|
|
identify_winoldap_version (void)
|
1997-04-14 10:59:48 +00:00
|
|
|
|
{
|
|
|
|
|
__dpmi_regs regs;
|
|
|
|
|
|
|
|
|
|
/* Calls Int 2Fh/AX=1700h
|
|
|
|
|
Return Values AX == 1700H: Clipboard functions not available
|
|
|
|
|
<> 1700H: AL = Major version number
|
|
|
|
|
AH = Minor version number */
|
|
|
|
|
regs.x.ax = 0x1700;
|
2011-09-09 03:06:52 +02:00
|
|
|
|
__dpmi_int (0x2f, ®s);
|
1997-04-14 10:59:48 +00:00
|
|
|
|
return regs.x.ax;
|
|
|
|
|
}
|
|
|
|
|
|
2011-12-14 23:24:10 -08:00
|
|
|
|
/* Open the clipboard, return non-zero if successful. */
|
1997-04-14 10:59:48 +00:00
|
|
|
|
unsigned
|
2010-07-07 18:28:47 +03:00
|
|
|
|
open_clipboard (void)
|
1997-04-14 10:59:48 +00:00
|
|
|
|
{
|
|
|
|
|
__dpmi_regs regs;
|
|
|
|
|
|
|
|
|
|
/* Is WINOLDAP supported? */
|
|
|
|
|
/* Kludge alert!! If WinOldAp is not supported, we return a 0,
|
|
|
|
|
which is the same as ``Clipboard already open''. Currently,
|
|
|
|
|
this is taken as an error by all the functions that use
|
|
|
|
|
`open_clipboard', but if somebody someday will use that ``open''
|
|
|
|
|
clipboard, they will have interesting time debugging it... */
|
|
|
|
|
if (identify_winoldap_version () == 0x1700)
|
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
|
|
/* Calls Int 2Fh/AX=1701h
|
|
|
|
|
Return Values AX == 0: Clipboard already open
|
|
|
|
|
<> 0: Clipboard opened */
|
|
|
|
|
regs.x.ax = 0x1701;
|
2011-09-09 03:06:52 +02:00
|
|
|
|
__dpmi_int (0x2f, ®s);
|
1997-04-14 10:59:48 +00:00
|
|
|
|
return regs.x.ax;
|
|
|
|
|
}
|
|
|
|
|
|
2011-12-14 23:24:10 -08:00
|
|
|
|
/* Empty clipboard, return non-zero if successful. */
|
1997-04-14 10:59:48 +00:00
|
|
|
|
unsigned
|
2010-07-07 18:28:47 +03:00
|
|
|
|
empty_clipboard (void)
|
1997-04-14 10:59:48 +00:00
|
|
|
|
{
|
|
|
|
|
__dpmi_regs regs;
|
2002-05-17 13:17:21 +00:00
|
|
|
|
|
1997-04-14 10:59:48 +00:00
|
|
|
|
/* Calls Int 2Fh/AX=1702h
|
|
|
|
|
Return Values AX == 0: Error occurred
|
|
|
|
|
<> 0: OK, Clipboard emptied */
|
|
|
|
|
regs.x.ax = 0x1702;
|
2011-09-09 03:06:52 +02:00
|
|
|
|
__dpmi_int (0x2f, ®s);
|
1997-04-14 10:59:48 +00:00
|
|
|
|
return regs.x.ax;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Ensure we have a buffer in low memory with enough memory for data
|
|
|
|
|
of size WANT_SIZE. Return the linear address of the buffer. */
|
|
|
|
|
static unsigned long
|
2010-07-07 18:28:47 +03:00
|
|
|
|
alloc_xfer_buf (unsigned want_size)
|
1997-04-14 10:59:48 +00:00
|
|
|
|
{
|
|
|
|
|
__dpmi_regs regs;
|
|
|
|
|
|
|
|
|
|
/* If the usual DJGPP transfer buffer is large enough, use that. */
|
|
|
|
|
if (want_size <= _go32_info_block.size_of_transfer_buffer)
|
|
|
|
|
return __tb & 0xfffff;
|
|
|
|
|
|
1998-04-22 13:39:59 +00:00
|
|
|
|
/* Don't even try to allocate more than 1MB of memory: DOS cannot
|
|
|
|
|
possibly handle that (it will overflow the BX register below). */
|
|
|
|
|
if (want_size > 0xfffff)
|
|
|
|
|
return 0;
|
|
|
|
|
|
1997-04-14 10:59:48 +00:00
|
|
|
|
/* Need size rounded up to the nearest paragraph, and in
|
|
|
|
|
paragraph units (1 paragraph = 16 bytes). */
|
|
|
|
|
clipboard_xfer_buf_info.size = (want_size + 15) >> 4;
|
|
|
|
|
|
|
|
|
|
/* The NT DPMI host crashes us if we free DOS memory via the
|
|
|
|
|
DPMI service. Work around by calling DOS allocate/free block. */
|
|
|
|
|
regs.h.ah = 0x48;
|
|
|
|
|
regs.x.bx = clipboard_xfer_buf_info.size;
|
|
|
|
|
__dpmi_int (0x21, ®s);
|
|
|
|
|
if (regs.x.flags & 1)
|
|
|
|
|
{
|
|
|
|
|
clipboard_xfer_buf_info.size = 0;
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
clipboard_xfer_buf_info.rm_segment = regs.x.ax;
|
|
|
|
|
return (((int)clipboard_xfer_buf_info.rm_segment) << 4) & 0xfffff;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Free our clipboard buffer. We always free it after use, because
|
|
|
|
|
keeping it leaves less free conventional memory for subprocesses.
|
|
|
|
|
The clipboard buffer tends to be large in size, because for small
|
|
|
|
|
clipboard data sizes we use the DJGPP transfer buffer. */
|
|
|
|
|
static void
|
2010-07-07 18:28:47 +03:00
|
|
|
|
free_xfer_buf (void)
|
1997-04-14 10:59:48 +00:00
|
|
|
|
{
|
|
|
|
|
/* If the size is 0, we used DJGPP transfer buffer, so don't free. */
|
|
|
|
|
if (clipboard_xfer_buf_info.size)
|
|
|
|
|
{
|
|
|
|
|
__dpmi_regs regs;
|
|
|
|
|
|
|
|
|
|
/* The NT DPMI host crashes us if we free DOS memory via
|
|
|
|
|
the DPMI service. Work around by calling DOS free block. */
|
|
|
|
|
regs.h.ah = 0x49;
|
|
|
|
|
regs.x.es = clipboard_xfer_buf_info.rm_segment;
|
|
|
|
|
__dpmi_int (0x21, ®s);
|
|
|
|
|
clipboard_xfer_buf_info.size = 0;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2011-12-14 23:24:10 -08:00
|
|
|
|
/* Copy data into the clipboard, return zero if successful. */
|
1997-04-14 10:59:48 +00:00
|
|
|
|
unsigned
|
2010-07-07 18:28:47 +03:00
|
|
|
|
set_clipboard_data (unsigned Format, void *Data, unsigned Size, int Raw)
|
1997-04-14 10:59:48 +00:00
|
|
|
|
{
|
|
|
|
|
__dpmi_regs regs;
|
|
|
|
|
unsigned truelen;
|
|
|
|
|
unsigned long xbuf_addr, buf_offset;
|
|
|
|
|
unsigned char *dp = Data, *dstart = dp;
|
|
|
|
|
|
1998-07-13 14:29:35 +00:00
|
|
|
|
if (Format != CF_OEMTEXT)
|
2000-08-17 06:11:09 +00:00
|
|
|
|
return 3;
|
1997-04-14 10:59:48 +00:00
|
|
|
|
|
|
|
|
|
/* need to know final size after '\r' chars are inserted (the
|
1998-07-13 14:29:35 +00:00
|
|
|
|
standard CF_OEMTEXT clipboard format uses CRLF line endings,
|
1997-04-14 10:59:48 +00:00
|
|
|
|
while Emacs uses just LF internally). */
|
1999-01-06 10:14:25 +00:00
|
|
|
|
truelen = Size + 1; /* +1 for the terminating null */
|
1998-07-09 14:02:15 +00:00
|
|
|
|
|
|
|
|
|
if (!Raw)
|
1997-04-14 10:59:48 +00:00
|
|
|
|
{
|
1998-07-09 14:02:15 +00:00
|
|
|
|
/* avoid using strchr because it recomputes the length everytime */
|
|
|
|
|
while ((dp = memchr (dp, '\n', Size - (dp - dstart))) != 0)
|
|
|
|
|
{
|
|
|
|
|
truelen++;
|
|
|
|
|
dp++;
|
|
|
|
|
}
|
1997-04-14 10:59:48 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (clipboard_compact (truelen) < truelen)
|
2000-08-17 06:11:09 +00:00
|
|
|
|
return 1;
|
1997-04-14 10:59:48 +00:00
|
|
|
|
|
|
|
|
|
if ((xbuf_addr = alloc_xfer_buf (truelen)) == 0)
|
2000-08-17 06:11:09 +00:00
|
|
|
|
return 1;
|
1997-04-14 10:59:48 +00:00
|
|
|
|
|
1998-07-09 14:02:15 +00:00
|
|
|
|
/* Move the buffer into the low memory, convert LF into CR-LF if needed. */
|
|
|
|
|
if (Raw)
|
1999-02-02 13:43:14 +00:00
|
|
|
|
{
|
|
|
|
|
dosmemput (Data, Size, xbuf_addr);
|
|
|
|
|
|
|
|
|
|
/* Terminate with a null, otherwise Windows does strange things
|
|
|
|
|
when the text size is an integral multiple of 32 bytes. */
|
|
|
|
|
_farpokeb (_dos_ds, xbuf_addr + Size, '\0');
|
|
|
|
|
}
|
1998-07-09 14:02:15 +00:00
|
|
|
|
else
|
1997-04-14 10:59:48 +00:00
|
|
|
|
{
|
1998-07-09 14:02:15 +00:00
|
|
|
|
dp = Data;
|
|
|
|
|
buf_offset = xbuf_addr;
|
|
|
|
|
_farsetsel (_dos_ds);
|
|
|
|
|
while (Size--)
|
|
|
|
|
{
|
1999-01-06 10:14:25 +00:00
|
|
|
|
/* Don't allow them to put binary data into the clipboard, since
|
|
|
|
|
it will cause yanked data to be truncated at the first null. */
|
|
|
|
|
if (*dp == '\0')
|
|
|
|
|
return 2;
|
1998-07-09 14:02:15 +00:00
|
|
|
|
if (*dp == '\n')
|
|
|
|
|
_farnspokeb (buf_offset++, '\r');
|
|
|
|
|
_farnspokeb (buf_offset++, *dp++);
|
|
|
|
|
}
|
1997-04-14 10:59:48 +00:00
|
|
|
|
|
1999-02-02 13:43:14 +00:00
|
|
|
|
/* Terminate with a null, otherwise Windows does strange things
|
|
|
|
|
when the text size is an integral multiple of 32 bytes. */
|
|
|
|
|
_farnspokeb (buf_offset, '\0');
|
|
|
|
|
}
|
1999-01-06 10:14:25 +00:00
|
|
|
|
|
1999-02-04 15:53:37 +00:00
|
|
|
|
/* Stash away the data we are about to put into the clipboard, so we
|
|
|
|
|
could later check inside get_clipboard_data whether the clipboard
|
|
|
|
|
still holds our data. */
|
|
|
|
|
if (clipboard_storage_size < truelen)
|
|
|
|
|
{
|
|
|
|
|
clipboard_storage_size = truelen + 100;
|
|
|
|
|
last_clipboard_text =
|
|
|
|
|
(char *) xrealloc (last_clipboard_text, clipboard_storage_size);
|
|
|
|
|
}
|
|
|
|
|
if (last_clipboard_text)
|
|
|
|
|
dosmemget (xbuf_addr, truelen, last_clipboard_text);
|
|
|
|
|
|
1997-04-14 10:59:48 +00:00
|
|
|
|
/* Calls Int 2Fh/AX=1703h with:
|
|
|
|
|
DX = WinOldAp-Supported Clipboard format
|
|
|
|
|
ES:BX = Pointer to data
|
|
|
|
|
SI:CX = Size of data in bytes
|
|
|
|
|
Return Values AX == 0: Error occurred
|
|
|
|
|
<> 0: OK. Data copied into the Clipboard. */
|
|
|
|
|
regs.x.ax = 0x1703;
|
|
|
|
|
regs.x.dx = Format;
|
|
|
|
|
regs.x.si = truelen >> 16;
|
|
|
|
|
regs.x.cx = truelen & 0xffff;
|
|
|
|
|
regs.x.es = xbuf_addr >> 4;
|
|
|
|
|
regs.x.bx = xbuf_addr & 15;
|
2011-09-09 03:06:52 +02:00
|
|
|
|
__dpmi_int (0x2f, ®s);
|
1997-04-14 10:59:48 +00:00
|
|
|
|
|
|
|
|
|
free_xfer_buf ();
|
|
|
|
|
|
1999-02-04 15:53:37 +00:00
|
|
|
|
/* If the above failed, invalidate the local copy of the clipboard. */
|
|
|
|
|
if (regs.x.ax == 0)
|
|
|
|
|
*last_clipboard_text = '\0';
|
|
|
|
|
|
2000-08-17 06:11:09 +00:00
|
|
|
|
/* Zero means success, otherwise (1, 2, or 3) it's an error. */
|
|
|
|
|
return regs.x.ax > 0 ? 0 : 3;
|
1997-04-14 10:59:48 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Return the size of the clipboard data of format FORMAT. */
|
|
|
|
|
unsigned
|
2010-07-07 18:28:47 +03:00
|
|
|
|
get_clipboard_data_size (unsigned Format)
|
1997-04-14 10:59:48 +00:00
|
|
|
|
{
|
|
|
|
|
__dpmi_regs regs;
|
|
|
|
|
|
|
|
|
|
/* Calls Int 2Fh/AX=1704h with:
|
|
|
|
|
DX = WinOldAp-Supported Clipboard format
|
|
|
|
|
Return Values DX:AX == Size of the data in bytes, including any
|
|
|
|
|
headers.
|
|
|
|
|
== 0 If data in this format is not in
|
|
|
|
|
the clipboard. */
|
|
|
|
|
regs.x.ax = 0x1704;
|
|
|
|
|
regs.x.dx = Format;
|
2011-09-09 03:06:52 +02:00
|
|
|
|
__dpmi_int (0x2f, ®s);
|
1997-04-14 10:59:48 +00:00
|
|
|
|
return ( (((unsigned)regs.x.dx) << 16) | regs.x.ax);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Get clipboard data, return its length.
|
|
|
|
|
Warning: this doesn't check whether DATA has enough space to hold
|
|
|
|
|
SIZE bytes. */
|
|
|
|
|
unsigned
|
2010-07-07 18:28:47 +03:00
|
|
|
|
get_clipboard_data (unsigned Format, void *Data, unsigned Size, int Raw)
|
1997-04-14 10:59:48 +00:00
|
|
|
|
{
|
|
|
|
|
__dpmi_regs regs;
|
|
|
|
|
unsigned long xbuf_addr;
|
|
|
|
|
unsigned char *dp = Data;
|
|
|
|
|
|
1998-07-13 14:29:35 +00:00
|
|
|
|
if (Format != CF_OEMTEXT)
|
1997-04-14 10:59:48 +00:00
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
|
|
if (Size == 0)
|
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
|
|
if ((xbuf_addr = alloc_xfer_buf (Size)) == 0)
|
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
|
|
/* Calls Int 2Fh/AX=1705h with:
|
|
|
|
|
DX = WinOldAp-Supported Clipboard format
|
|
|
|
|
ES:BX = Pointer to data buffer to hold data
|
|
|
|
|
Return Values AX == 0: Error occurred (or data in this format is not
|
|
|
|
|
in the clipboard)
|
|
|
|
|
<> 0: OK */
|
|
|
|
|
regs.x.ax = 0x1705;
|
|
|
|
|
regs.x.dx = Format;
|
|
|
|
|
regs.x.es = xbuf_addr >> 4;
|
|
|
|
|
regs.x.bx = xbuf_addr & 15;
|
2011-09-09 03:06:52 +02:00
|
|
|
|
__dpmi_int (0x2f, ®s);
|
1997-04-14 10:59:48 +00:00
|
|
|
|
if (regs.x.ax != 0)
|
|
|
|
|
{
|
1999-02-04 15:53:37 +00:00
|
|
|
|
unsigned char null_char = '\0';
|
|
|
|
|
unsigned long xbuf_beg = xbuf_addr;
|
|
|
|
|
|
|
|
|
|
/* If last_clipboard_text is NULL, we don't want to slow down
|
|
|
|
|
the next loop by an additional test. */
|
|
|
|
|
register unsigned char *lcdp =
|
|
|
|
|
last_clipboard_text == NULL ? &null_char : last_clipboard_text;
|
2002-05-17 13:17:21 +00:00
|
|
|
|
|
1998-07-09 14:02:15 +00:00
|
|
|
|
/* Copy data from low memory, remove CR
|
|
|
|
|
characters before LF if needed. */
|
1997-04-14 10:59:48 +00:00
|
|
|
|
_farsetsel (_dos_ds);
|
|
|
|
|
while (Size--)
|
|
|
|
|
{
|
|
|
|
|
register unsigned char c = _farnspeekb (xbuf_addr++);
|
|
|
|
|
|
1999-02-04 15:53:37 +00:00
|
|
|
|
if (*lcdp == c)
|
|
|
|
|
lcdp++;
|
|
|
|
|
|
1998-07-09 14:02:15 +00:00
|
|
|
|
if ((*dp++ = c) == '\r' && !Raw && _farnspeekb (xbuf_addr) == '\n')
|
1997-04-14 10:59:48 +00:00
|
|
|
|
{
|
|
|
|
|
dp--;
|
|
|
|
|
*dp++ = '\n';
|
|
|
|
|
xbuf_addr++;
|
1999-02-04 15:53:37 +00:00
|
|
|
|
if (*lcdp == '\n')
|
|
|
|
|
lcdp++;
|
1997-04-14 10:59:48 +00:00
|
|
|
|
}
|
|
|
|
|
/* Windows reportedly rounds up the size of clipboard data
|
1999-03-03 14:51:07 +00:00
|
|
|
|
(passed in SIZE) to a multiple of 32, and removes trailing
|
|
|
|
|
spaces from each line without updating SIZE. We therefore
|
|
|
|
|
bail out when we see the first null character. */
|
|
|
|
|
else if (c == '\0')
|
1999-01-06 10:14:25 +00:00
|
|
|
|
break;
|
1997-04-14 10:59:48 +00:00
|
|
|
|
}
|
1999-02-04 15:53:37 +00:00
|
|
|
|
|
|
|
|
|
/* If the text in clipboard is identical to what we put there
|
|
|
|
|
last time set_clipboard_data was called, pretend there's no
|
|
|
|
|
data in the clipboard. This is so we don't pass our own text
|
1999-03-03 14:51:07 +00:00
|
|
|
|
from the clipboard (which might be troublesome if the killed
|
|
|
|
|
text includes null characters). */
|
1999-02-04 15:53:37 +00:00
|
|
|
|
if (last_clipboard_text &&
|
|
|
|
|
xbuf_addr - xbuf_beg == (long)(lcdp - last_clipboard_text))
|
|
|
|
|
dp = (unsigned char *)Data + 1;
|
1997-04-14 10:59:48 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
free_xfer_buf ();
|
|
|
|
|
|
1999-01-06 10:14:25 +00:00
|
|
|
|
return (unsigned) (dp - (unsigned char *)Data - 1);
|
1997-04-14 10:59:48 +00:00
|
|
|
|
}
|
|
|
|
|
|
2011-12-14 23:24:10 -08:00
|
|
|
|
/* Close clipboard, return non-zero if successful. */
|
1997-04-14 10:59:48 +00:00
|
|
|
|
unsigned
|
2010-07-07 18:28:47 +03:00
|
|
|
|
close_clipboard (void)
|
1997-04-14 10:59:48 +00:00
|
|
|
|
{
|
|
|
|
|
__dpmi_regs regs;
|
|
|
|
|
|
|
|
|
|
/* Calls Int 2Fh/AX=1708h
|
|
|
|
|
Return Values AX == 0: Error occurred
|
|
|
|
|
<> 0: OK */
|
|
|
|
|
regs.x.ax = 0x1708;
|
2011-09-09 03:06:52 +02:00
|
|
|
|
__dpmi_int (0x2f, ®s);
|
1997-04-14 10:59:48 +00:00
|
|
|
|
return regs.x.ax;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Compact clipboard data so that at least SIZE bytes is available. */
|
|
|
|
|
unsigned
|
2010-07-07 18:28:47 +03:00
|
|
|
|
clipboard_compact (unsigned Size)
|
1997-04-14 10:59:48 +00:00
|
|
|
|
{
|
|
|
|
|
__dpmi_regs regs;
|
|
|
|
|
|
|
|
|
|
/* Calls Int 2Fh/AX=1709H with:
|
|
|
|
|
SI:CX = Desired memory size in bytes.
|
|
|
|
|
Return Values DX:AX == Number of bytes of largest block of free memory.
|
|
|
|
|
== 0 if error or no memory */
|
|
|
|
|
regs.x.ax = 0x1709;
|
|
|
|
|
regs.x.si = Size >> 16;
|
|
|
|
|
regs.x.cx = Size & 0xffff;
|
2011-09-09 03:06:52 +02:00
|
|
|
|
__dpmi_int (0x2f, ®s);
|
1997-04-14 10:59:48 +00:00
|
|
|
|
return ((unsigned)regs.x.dx << 16) | regs.x.ax;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static char no_mem_msg[] =
|
|
|
|
|
"(Not enough DOS memory to put saved text into clipboard.)";
|
1999-01-06 10:14:25 +00:00
|
|
|
|
static char binary_msg[] =
|
|
|
|
|
"(Binary characters in saved text; clipboard data not set.)";
|
2000-08-17 06:11:09 +00:00
|
|
|
|
static char system_error_msg[] =
|
|
|
|
|
"(Clipboard interface failure; clipboard data not set.)";
|
1997-04-14 10:59:48 +00:00
|
|
|
|
|
1998-04-22 13:39:59 +00:00
|
|
|
|
DEFUN ("w16-set-clipboard-data", Fw16_set_clipboard_data, Sw16_set_clipboard_data, 1, 2, 0,
|
2001-12-11 06:23:50 +00:00
|
|
|
|
doc: /* This sets the clipboard data to the given text. */)
|
2010-07-08 14:25:08 -07:00
|
|
|
|
(Lisp_Object string, Lisp_Object frame)
|
1997-04-14 10:59:48 +00:00
|
|
|
|
{
|
1999-01-06 10:14:25 +00:00
|
|
|
|
unsigned ok = 1, put_status = 0;
|
2010-08-13 12:21:31 +03:00
|
|
|
|
int nbytes, no_crlf_conversion;
|
1998-07-09 14:02:15 +00:00
|
|
|
|
unsigned char *src, *dst = NULL;
|
1997-04-14 10:59:48 +00:00
|
|
|
|
|
2001-11-02 20:46:55 +00:00
|
|
|
|
CHECK_STRING (string);
|
2002-02-22 14:09:07 +00:00
|
|
|
|
|
1997-04-14 10:59:48 +00:00
|
|
|
|
if (NILP (frame))
|
|
|
|
|
frame = Fselected_frame ();
|
|
|
|
|
|
2001-11-02 20:46:55 +00:00
|
|
|
|
CHECK_LIVE_FRAME (frame);
|
1997-04-14 10:59:48 +00:00
|
|
|
|
if ( !FRAME_MSDOS_P (XFRAME (frame)))
|
|
|
|
|
goto done;
|
2002-02-22 14:09:07 +00:00
|
|
|
|
|
1997-04-14 10:59:48 +00:00
|
|
|
|
BLOCK_INPUT;
|
|
|
|
|
|
2008-08-30 12:32:59 +00:00
|
|
|
|
if (!open_clipboard ())
|
|
|
|
|
goto error;
|
|
|
|
|
|
2002-07-15 00:01:34 +00:00
|
|
|
|
nbytes = SBYTES (string);
|
|
|
|
|
src = SDATA (string);
|
1998-07-09 14:02:15 +00:00
|
|
|
|
|
2008-08-23 16:49:32 +00:00
|
|
|
|
/* Do we need to encode this text? */
|
|
|
|
|
for (dst = src; dst < src + nbytes; dst++)
|
|
|
|
|
{
|
|
|
|
|
if (*dst == '\0' || *dst >= 0x80)
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
if (dst >= src + nbytes)
|
1998-07-09 14:02:15 +00:00
|
|
|
|
{
|
2008-08-23 16:49:32 +00:00
|
|
|
|
/* No multibyte characters in text. We need not encode it, but we
|
1998-07-09 14:02:15 +00:00
|
|
|
|
will have to convert it to DOS CR-LF style. */
|
|
|
|
|
no_crlf_conversion = 0;
|
2008-08-23 16:49:32 +00:00
|
|
|
|
Vlast_coding_system_used = Qraw_text;
|
2008-08-30 12:32:59 +00:00
|
|
|
|
dst = NULL; /* so we don't try to free a random pointer */
|
1998-07-09 14:02:15 +00:00
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
/* We must encode contents of STRING according to what
|
|
|
|
|
clipboard-coding-system specifies. */
|
|
|
|
|
struct coding_system coding;
|
2008-08-23 16:49:32 +00:00
|
|
|
|
Lisp_Object coding_system =
|
|
|
|
|
NILP (Vnext_selection_coding_system) ?
|
|
|
|
|
Vselection_coding_system : Vnext_selection_coding_system;
|
1998-07-09 14:02:15 +00:00
|
|
|
|
|
2008-08-23 16:49:32 +00:00
|
|
|
|
setup_coding_system (Fcheck_coding_system (coding_system), &coding);
|
|
|
|
|
coding.dst_bytes = nbytes * 4;
|
2012-07-05 10:32:41 +04:00
|
|
|
|
coding.destination = xmalloc (coding.dst_bytes);
|
1998-09-01 13:26:41 +00:00
|
|
|
|
Vnext_selection_coding_system = Qnil;
|
1998-07-09 14:02:15 +00:00
|
|
|
|
coding.mode |= CODING_MODE_LAST_BLOCK;
|
2008-08-23 16:49:32 +00:00
|
|
|
|
dst = coding.destination;
|
|
|
|
|
encode_coding_object (&coding, string, 0, 0,
|
|
|
|
|
SCHARS (string), nbytes, Qnil);
|
1998-07-09 14:02:15 +00:00
|
|
|
|
no_crlf_conversion = 1;
|
1999-02-03 14:53:47 +00:00
|
|
|
|
nbytes = coding.produced;
|
2008-08-23 16:49:32 +00:00
|
|
|
|
Vlast_coding_system_used = CODING_ID_NAME (coding.id);
|
1999-02-03 16:40:32 +00:00
|
|
|
|
src = dst;
|
1998-07-09 14:02:15 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
ok = empty_clipboard ()
|
1999-01-06 10:14:25 +00:00
|
|
|
|
&& ((put_status
|
1999-02-03 16:40:32 +00:00
|
|
|
|
= set_clipboard_data (CF_OEMTEXT, src, nbytes, no_crlf_conversion))
|
1999-01-06 10:14:25 +00:00
|
|
|
|
== 0);
|
1998-07-09 14:02:15 +00:00
|
|
|
|
|
|
|
|
|
if (!no_crlf_conversion)
|
1997-04-14 10:59:48 +00:00
|
|
|
|
close_clipboard ();
|
2002-02-22 14:09:07 +00:00
|
|
|
|
|
1998-04-22 10:26:10 +00:00
|
|
|
|
if (ok) goto unblock;
|
1997-04-14 10:59:48 +00:00
|
|
|
|
|
|
|
|
|
error:
|
2002-02-22 14:09:07 +00:00
|
|
|
|
|
1997-04-14 10:59:48 +00:00
|
|
|
|
ok = 0;
|
|
|
|
|
|
1998-04-22 10:26:10 +00:00
|
|
|
|
unblock:
|
2008-06-02 06:09:17 +00:00
|
|
|
|
xfree (dst);
|
1998-04-22 10:26:10 +00:00
|
|
|
|
UNBLOCK_INPUT;
|
|
|
|
|
|
1997-04-14 10:59:48 +00:00
|
|
|
|
/* Notify user if the text is too large to fit into DOS memory.
|
|
|
|
|
(This will happen somewhere after 600K bytes (470K in DJGPP v1.x),
|
|
|
|
|
depending on user system configuration.) If we just silently
|
|
|
|
|
fail the function, people might wonder why their text sometimes
|
|
|
|
|
doesn't make it to the clipboard. */
|
1999-01-06 10:14:25 +00:00
|
|
|
|
if (put_status)
|
1997-04-14 10:59:48 +00:00
|
|
|
|
{
|
1999-01-06 10:14:25 +00:00
|
|
|
|
switch (put_status)
|
|
|
|
|
{
|
|
|
|
|
case 1:
|
|
|
|
|
message2 (no_mem_msg, sizeof (no_mem_msg) - 1, 0);
|
|
|
|
|
break;
|
|
|
|
|
case 2:
|
|
|
|
|
message2 (binary_msg, sizeof (binary_msg) - 1, 0);
|
|
|
|
|
break;
|
2000-08-17 06:11:09 +00:00
|
|
|
|
case 3:
|
|
|
|
|
message2 (system_error_msg, sizeof (system_error_msg) - 1, 0);
|
|
|
|
|
break;
|
1999-01-06 10:14:25 +00:00
|
|
|
|
}
|
2006-11-25 14:30:18 +00:00
|
|
|
|
sit_for (make_number (2), 0, 2);
|
1997-04-14 10:59:48 +00:00
|
|
|
|
}
|
2002-02-22 14:09:07 +00:00
|
|
|
|
|
1997-04-14 10:59:48 +00:00
|
|
|
|
done:
|
|
|
|
|
|
1999-01-06 10:14:25 +00:00
|
|
|
|
return (ok && put_status == 0 ? string : Qnil);
|
1997-04-14 10:59:48 +00:00
|
|
|
|
}
|
|
|
|
|
|
1998-04-22 13:39:59 +00:00
|
|
|
|
DEFUN ("w16-get-clipboard-data", Fw16_get_clipboard_data, Sw16_get_clipboard_data, 0, 1, 0,
|
2001-12-11 06:23:50 +00:00
|
|
|
|
doc: /* This gets the clipboard data in text format. */)
|
2010-07-08 14:25:08 -07:00
|
|
|
|
(Lisp_Object frame)
|
1997-04-14 10:59:48 +00:00
|
|
|
|
{
|
|
|
|
|
unsigned data_size, truelen;
|
2008-08-30 12:32:59 +00:00
|
|
|
|
unsigned char *htext = NULL;
|
1997-04-14 10:59:48 +00:00
|
|
|
|
Lisp_Object ret = Qnil;
|
2010-08-13 12:21:31 +03:00
|
|
|
|
int require_decoding = 0;
|
1998-07-09 14:02:15 +00:00
|
|
|
|
|
1997-04-14 10:59:48 +00:00
|
|
|
|
if (NILP (frame))
|
|
|
|
|
frame = Fselected_frame ();
|
|
|
|
|
|
2001-11-02 20:46:55 +00:00
|
|
|
|
CHECK_LIVE_FRAME (frame);
|
1997-04-14 10:59:48 +00:00
|
|
|
|
if ( !FRAME_MSDOS_P (XFRAME (frame)))
|
|
|
|
|
goto done;
|
2002-02-22 14:09:07 +00:00
|
|
|
|
|
1997-04-14 10:59:48 +00:00
|
|
|
|
BLOCK_INPUT;
|
2002-02-22 14:09:07 +00:00
|
|
|
|
|
1997-04-14 10:59:48 +00:00
|
|
|
|
if (!open_clipboard ())
|
1998-04-22 10:26:10 +00:00
|
|
|
|
goto unblock;
|
1997-04-14 10:59:48 +00:00
|
|
|
|
|
1998-07-13 14:29:35 +00:00
|
|
|
|
if ((data_size = get_clipboard_data_size (CF_OEMTEXT)) == 0 ||
|
2012-07-05 10:32:41 +04:00
|
|
|
|
(htext = xmalloc (data_size)) == 0)
|
1997-04-14 10:59:48 +00:00
|
|
|
|
goto closeclip;
|
|
|
|
|
|
|
|
|
|
/* need to know final size after '\r' chars are removed because
|
|
|
|
|
we can't change the string size manually, and doing an extra
|
|
|
|
|
copy is silly */
|
1998-07-13 14:29:35 +00:00
|
|
|
|
if ((truelen = get_clipboard_data (CF_OEMTEXT, htext, data_size, 0)) == 0)
|
1997-04-14 10:59:48 +00:00
|
|
|
|
goto closeclip;
|
|
|
|
|
|
1998-07-09 14:02:15 +00:00
|
|
|
|
/* Do we need to decode it? */
|
2002-02-22 14:09:07 +00:00
|
|
|
|
{
|
|
|
|
|
/* If the clipboard data contains any 8-bit Latin-1 code, we
|
|
|
|
|
need to decode it. */
|
|
|
|
|
int i;
|
|
|
|
|
|
|
|
|
|
for (i = 0; i < truelen; i++)
|
|
|
|
|
{
|
|
|
|
|
if (htext[i] >= 0x80)
|
|
|
|
|
{
|
2008-08-23 16:49:32 +00:00
|
|
|
|
require_decoding = 1;
|
2002-02-22 14:09:07 +00:00
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2008-08-23 16:49:32 +00:00
|
|
|
|
if (require_decoding)
|
1998-07-09 14:02:15 +00:00
|
|
|
|
{
|
|
|
|
|
struct coding_system coding;
|
2008-08-23 16:49:32 +00:00
|
|
|
|
Lisp_Object coding_system = Vnext_selection_coding_system;
|
1998-07-09 14:02:15 +00:00
|
|
|
|
|
2008-08-23 16:49:32 +00:00
|
|
|
|
truelen = get_clipboard_data (CF_OEMTEXT, htext, data_size, 1);
|
|
|
|
|
if (NILP (coding_system))
|
|
|
|
|
coding_system = Vselection_coding_system;
|
|
|
|
|
setup_coding_system (Fcheck_coding_system (coding_system), &coding);
|
|
|
|
|
coding.source = htext;
|
1998-07-09 14:02:15 +00:00
|
|
|
|
coding.mode |= CODING_MODE_LAST_BLOCK;
|
2008-08-23 16:49:32 +00:00
|
|
|
|
/* We explicitly disable composition handling because selection
|
2002-06-24 00:36:20 +00:00
|
|
|
|
data should not contain any composition sequence. */
|
2008-08-23 16:49:32 +00:00
|
|
|
|
coding.mode &= CODING_ANNOTATION_MASK;
|
|
|
|
|
decode_coding_object (&coding, Qnil, 0, 0, truelen, truelen, Qt);
|
|
|
|
|
ret = coding.dst_object;
|
|
|
|
|
Vlast_coding_system_used = CODING_ID_NAME (coding.id);
|
1998-07-09 14:02:15 +00:00
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
ret = make_unibyte_string ((char *) htext, truelen);
|
|
|
|
|
Vlast_coding_system_used = Qraw_text;
|
|
|
|
|
}
|
|
|
|
|
|
1997-04-14 10:59:48 +00:00
|
|
|
|
xfree (htext);
|
2008-08-23 16:49:32 +00:00
|
|
|
|
Vnext_selection_coding_system = Qnil;
|
1997-04-14 10:59:48 +00:00
|
|
|
|
|
|
|
|
|
closeclip:
|
|
|
|
|
close_clipboard ();
|
1998-04-22 10:26:10 +00:00
|
|
|
|
|
|
|
|
|
unblock:
|
|
|
|
|
UNBLOCK_INPUT;
|
2002-05-17 13:17:21 +00:00
|
|
|
|
|
1997-04-14 10:59:48 +00:00
|
|
|
|
done:
|
2002-05-17 13:17:21 +00:00
|
|
|
|
|
1997-04-14 10:59:48 +00:00
|
|
|
|
return (ret);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Support checking for a clipboard selection. */
|
|
|
|
|
|
|
|
|
|
DEFUN ("x-selection-exists-p", Fx_selection_exists_p, Sx_selection_exists_p,
|
2012-02-11 11:38:41 +02:00
|
|
|
|
0, 2, 0,
|
|
|
|
|
doc: /* Whether there is an owner for the given X selection.
|
|
|
|
|
SELECTION should be the name of the selection in question, typically
|
|
|
|
|
one of the symbols `PRIMARY', `SECONDARY', or `CLIPBOARD'. (X expects
|
|
|
|
|
these literal upper-case names.) The symbol nil is the same as
|
|
|
|
|
`PRIMARY', and t is the same as `SECONDARY'.
|
|
|
|
|
|
|
|
|
|
TERMINAL should be a terminal object or a frame specifying the X
|
|
|
|
|
server to query. If omitted or nil, that stands for the selected
|
|
|
|
|
frame's display, or the first available X display. */)
|
|
|
|
|
(Lisp_Object selection, Lisp_Object terminal)
|
1997-04-14 10:59:48 +00:00
|
|
|
|
{
|
2001-11-02 20:46:55 +00:00
|
|
|
|
CHECK_SYMBOL (selection);
|
1997-04-14 10:59:48 +00:00
|
|
|
|
|
|
|
|
|
/* Return nil for SECONDARY selection. For PRIMARY (or nil)
|
|
|
|
|
selection, check if there is some text on the kill-ring;
|
|
|
|
|
for CLIPBOARD, check if the clipboard currently has valid
|
|
|
|
|
text format contents.
|
|
|
|
|
|
|
|
|
|
The test for killed text on the kill-ring emulates the Emacs
|
|
|
|
|
behavior on X, where killed text is also put into X selection
|
|
|
|
|
by the X interface code. (On MSDOS, killed text is only put
|
|
|
|
|
into the clipboard if we run under Windows, so we cannot check
|
|
|
|
|
the clipboard alone.) */
|
|
|
|
|
if ((EQ (selection, Qnil) || EQ (selection, QPRIMARY))
|
2010-05-07 16:51:16 +03:00
|
|
|
|
&& ! NILP (Fsymbol_value (Fintern_soft (build_string ("kill-ring"),
|
|
|
|
|
Qnil))))
|
1997-04-14 10:59:48 +00:00
|
|
|
|
return Qt;
|
|
|
|
|
|
|
|
|
|
if (EQ (selection, QCLIPBOARD))
|
|
|
|
|
{
|
|
|
|
|
Lisp_Object val = Qnil;
|
|
|
|
|
|
|
|
|
|
if (open_clipboard ())
|
|
|
|
|
{
|
1998-07-13 14:29:35 +00:00
|
|
|
|
if (get_clipboard_data_size (CF_OEMTEXT))
|
1997-04-14 10:59:48 +00:00
|
|
|
|
val = Qt;
|
|
|
|
|
close_clipboard ();
|
|
|
|
|
}
|
|
|
|
|
return val;
|
|
|
|
|
}
|
|
|
|
|
return Qnil;
|
|
|
|
|
}
|
|
|
|
|
|
2002-05-17 13:17:21 +00:00
|
|
|
|
void
|
2010-07-07 18:28:47 +03:00
|
|
|
|
syms_of_win16select (void)
|
1997-04-14 10:59:48 +00:00
|
|
|
|
{
|
1998-04-22 13:39:59 +00:00
|
|
|
|
defsubr (&Sw16_set_clipboard_data);
|
|
|
|
|
defsubr (&Sw16_get_clipboard_data);
|
1997-04-14 10:59:48 +00:00
|
|
|
|
defsubr (&Sx_selection_exists_p);
|
|
|
|
|
|
Move all DEFVAR'd globals into a structure -- threading infrastructure
* globals.h: New file.
* xterm.h (Vx_pixel_size_width_font_regexp): Remove declaration.
* window.h (Vinitial_window_system, Vminibuf_scroll_window)
(Vwindow_system_version): Remove declaration.
* w32term.h (Vw32_enable_palette)
(Vx_pixel_size_width_font_regexp): Remove declaration.
* w32menu.c (Voverriding_local_map)
(Voverriding_local_map_menu_flag): Remove declaration.
* w32inevt.c (Vw32_alt_is_meta, Vw32_apps_modifier)
(Vw32_capslock_is_shiftlock, Vw32_enable_caps_lock)
(Vw32_enable_num_lock, Vw32_lwindow_modifier)
(Vw32_pass_lwindow_to_system, Vw32_pass_rwindow_to_system)
(Vw32_phantom_key_code, Vw32_recognize_altgr)
(Vw32_rwindow_modifier, Vw32_scroll_lock_modifier)
(w32_use_full_screen_buffer): Remove declaration.
* w32.c (Vsystem_configuration, Vw32_downcase_file_names)
(Vw32_generate_fake_inodes, Vw32_get_true_file_attributes)
(w32_num_mouse_buttons, w32_pipe_read_delay): Remove declaration.
* termopts.h (Vtruncate_partial_width_windows, inverse_video)
(no_redraw_on_reenter, visible_bell): Remove declaration.
* sysdep.c (Vsystem_name): Remove declaration.
* syntax.h (parse_sexp_lookup_properties): Remove declaration.
* menu.h (Vmenu_updating_frame): Remove declaration.
* macros.h (Vexecuting_kbd_macro, executing_kbd_macro_index):
Remove declaration.
* lisp.h (Vafter_init_time, Vafter_load_alist)
(Vauto_save_list_file_name, Vbefore_init_time, Vcommand_history)
(Vcompletion_regexp_list, Vcurrent_load_list)
(Vcurrent_prefix_arg, Vdata_directory, Vdebug_on_error)
(Vdoc_directory, Vdoc_file_name, Vdynamic_library_alist)
(Vexec_directory, Vexec_path, Vexec_suffixes)
(Vface_font_rescale_alist, Vface_ignored_fonts, Vfeatures)
(Vhelp_form, Vhistory_length, Vinhibit_field_text_motion)
(Vinhibit_quit, Vinhibit_read_only, Vinhibit_redisplay)
(Vinstallation_directory, Vinvocation_directory)
(Vinvocation_name, Vload_file_rep_suffixes, Vload_history)
(Vload_suffixes, Vmark_even_if_inactive, Vmemory_full)
(Vmessage_log_max, Vobarray, Vprint_length, Vprint_level)
(Vpurify_flag, Vquit_flag, Vsaved_region_selection)
(Vscalable_fonts_allowed, Vselect_active_regions)
(Vshell_file_name, Vstandard_input, Vstandard_output)
(Vsystem_name, Vtemporary_file_directory, Vthrow_on_input)
(Vtop_level, Vtty_erase_char, Vundo_outer_limit)
(Vuser_login_name, Vwindow_scroll_functions)
(Vwindow_system_version, Vx_no_window_manager)
(Vx_resource_class, Vx_resource_name, baud_rate)
(completion_ignore_case, debug_on_next_call, gc_cons_threshold)
(history_delete_duplicates, inhibit_x_resources)
(last_nonmenu_event, load_in_progress, max_specpdl_size)
(minibuffer_auto_raise, print_escape_newlines, scroll_margin)
(use_dialog_box, use_file_dialog): Remove declaration. Include
globals.h.
* keymap.h (Voverriding_local_map)
(Voverriding_local_map_menu_flag, meta_prefix_char): Remove
declaration.
* keyboard.h (Vdouble_click_time, Vfunction_key_map)
(Vinput_method_function, Vkey_translation_map)
(Vlucid_menu_bar_dirty_flag, Vthis_original_command)
(do_mouse_tracking, extra_keyboard_modifiers)
(num_nonmacro_input_events): Remove declaration.
* intervals.h (Vchar_property_alias_alist)
(Vdefault_text_properties, Vinhibit_point_motion_hooks)
(Vtext_property_default_nonsticky): Remove declaration.
* gtkutil.h (x_gtk_file_dialog_help_text)
(x_gtk_show_hidden_files, x_gtk_use_old_file_dialog)
(x_gtk_whole_detached_tool_bar): Remove declaration.
* frame.h (Vdefault_frame_alist, Vframe_alpha_lower_limit)
(Vmenu_bar_mode, Vmouse_highlight, Vterminal_frame)
(Vtool_bar_mode, Vx_resource_class, Vx_resource_name)
(focus_follows_mouse): Remove declaration.
* fontset.h (Valternate_fontname_alist, Vfontset_alias_alist)
(Vignore_relative_composition, Votf_script_alist)
(Vuse_default_ascent, Vvertical_centering_font_regexp): Remove
declaration.
* font.h (Vfont_log): Remove declaration.
* dosfns.h (Vdos_display_scancodes, Vdos_version)
(Vdos_windows_version, dos_codepage, dos_country_code)
(dos_decimal_point, dos_hyper_key, dos_keyboard_layout)
(dos_keypad_mode, dos_super_key, dos_timezone_offset): Remove
declaration.
* disptab.h (Vglyph_table, Vstandard_display_table): Remove
declaration.
* dispextern.h (Vface_remapping_alist, Vglyphless_char_display)
(Vmouse_autoselect_window, Voverflow_newline_into_fringe)
(Vshow_trailing_whitespace, Vtool_bar_button_margin)
(Vtool_bar_style, cursor_in_echo_area, display_hourglass_p)
(inverse_video, mode_line_in_non_selected_windows)
(tool_bar_button_relief, tool_bar_max_label_size)
(underline_minimum_offset)
(unibyte_display_via_language_environment, x_stretch_cursor_p):
Remove declaration.
* composite.h (Vauto_composition_function)
(Vcomposition_function_table): Remove declaration.
* commands.h (Vexecuting_kbd_macro)
(Vminibuffer_local_completion_map)
(Vminibuffer_local_filename_completion_map)
(Vminibuffer_local_filename_must_match_map)
(Vminibuffer_local_map, Vminibuffer_local_must_match_map)
(Vminibuffer_local_ns_map, Vthis_command)
(Vunread_command_events, cursor_in_echo_area)
(last_command_event, last_nonmenu_event, unread_command_char):
Remove declaration.
* coding.h (Vcoding_system_for_read, Vcoding_system_for_write)
(Vdefault_file_name_coding_system)
(Vdefault_process_coding_system, Vfile_name_coding_system)
(Vlast_coding_system_used, Vlocale_coding_system)
(Vselect_safe_coding_system_function)
(Vtranslation_table_for_input, coding_system_require_warning)
(eol_mnemonic_dos, eol_mnemonic_mac, eol_mnemonic_undecided)
(eol_mnemonic_unix, inherit_process_coding_system): Remove
declaration.
* charset.h (Vcharset_list, Vcurrent_iso639_language): Remove
declaration.
* character.h (Vauto_fill_chars, Vchar_direction_table)
(Vchar_script_table, Vchar_width_table, Vprintable_chars)
(Vscript_representative_chars, Vtranslation_table_vector)
(Vunicode_category_table): Remove declaration.
* ccl.h (Vfont_ccl_encoder_alist): Remove declaration.
* buffer.h (Vafter_change_functions, Vbefore_change_functions)
(Vdeactivate_mark, Vfirst_change_hook, Vtransient_mark_mode)
(inhibit_modification_hooks): Remove declaration.
* xterm.c (syms_of_xterm): Update.
(Vx_alt_keysym, Vx_hyper_keysym, Vx_keysym_table)
(Vx_meta_keysym, Vx_super_keysym, Vx_toolkit_scroll_bars)
(x_mouse_click_focus_ignore_position)
(x_underline_at_descent_line)
(x_use_underline_position_properties): Remove.
* xsmfns.c (syms_of_xsmfns): Update.
(Vx_session_id, Vx_session_previous_id): Remove.
* xsettings.c (syms_of_xsettings): Update.
(Vxft_settings, use_system_font): Remove.
* xselect.c (syms_of_xselect): Update.
(Vselection_converter_alist, Vx_lost_selection_functions)
(Vx_sent_selection_functions, x_selection_timeout): Remove.
* xfns.c (syms_of_xfns): Update.
(Vgtk_version_string, Vmotif_version_string)
(Vx_cursor_fore_pixel, Vx_hourglass_pointer_shape)
(Vx_max_tooltip_size, Vx_mode_pointer_shape)
(Vx_no_window_manager, Vx_nontext_pointer_shape)
(Vx_pixel_size_width_font_regexp, Vx_pointer_shape)
(Vx_sensitive_text_pointer_shape)
(Vx_window_horizontal_drag_shape, x_gtk_file_dialog_help_text)
(x_gtk_show_hidden_files, x_gtk_use_old_file_dialog)
(x_gtk_use_system_tooltips, x_gtk_whole_detached_tool_bar):
Remove.
* xfaces.c (syms_of_xfaces): Update.
(Vface_default_stipple, Vface_font_rescale_alist)
(Vface_ignored_fonts, Vface_new_frame_defaults)
(Vface_remapping_alist, Vfont_list_limit)
(Vscalable_fonts_allowed, Vtty_defined_color_alist): Remove.
* xdisp.c (syms_of_xdisp): Update.
(Vauto_resize_tool_bars, Vblink_cursor_alist)
(Vdisplay_pixels_per_inch, Vfontification_functions)
(Vframe_title_format, Vglobal_mode_string)
(Vglyphless_char_display, Vhourglass_delay, Vhscroll_step)
(Vicon_title_format, Vinhibit_redisplay)
(Vline_number_display_limit, Vline_prefix)
(Vmax_mini_window_height, Vmenu_bar_update_hook)
(Vmenu_updating_frame, Vmessage_log_max)
(Vmouse_autoselect_window, Vnobreak_char_display)
(Voverlay_arrow_position, Voverlay_arrow_string)
(Voverlay_arrow_variable_list, Vredisplay_end_trigger_functions)
(Vresize_mini_windows, Vshow_trailing_whitespace)
(Vtool_bar_border, Vtool_bar_button_margin, Vtool_bar_style)
(Vtruncate_partial_width_windows, Vvoid_text_area_pointer)
(Vwindow_scroll_functions, Vwindow_size_change_functions)
(Vwindow_text_change_functions, Vwrap_prefix)
(auto_raise_tool_bar_buttons_p, automatic_hscrolling_p)
(debug_end_pos, display_hourglass_p, emacs_scroll_step)
(highlight_nonselected_windows, hscroll_margin)
(inhibit_eval_during_redisplay, inhibit_free_realized_faces)
(inhibit_menubar_update, inhibit_try_cursor_movement)
(inhibit_try_window_id, inhibit_try_window_reusing)
(line_number_display_limit_width)
(make_cursor_line_fully_visible_p, message_truncate_lines)
(mode_line_inverse_video, multiple_frames, overline_margin)
(scroll_conservatively, scroll_margin, tool_bar_button_relief)
(tool_bar_max_label_size, underline_minimum_offset)
(unibyte_display_via_language_environment, x_stretch_cursor_p):
Remove.
* window.c (syms_of_window): Update.
(Vminibuf_scroll_window, Vother_window_scroll_buffer)
(Vrecenter_redisplay, Vscroll_preserve_screen_position)
(Vtemp_buffer_show_function, Vwindow_configuration_change_hook)
(Vwindow_point_insertion_type, auto_window_vscroll_p)
(mode_line_in_non_selected_windows, next_screen_context_lines)
(window_min_height, window_min_width): Remove.
(scroll_margin): Remove declaration.
* w32term.c (syms_of_w32term): Update.
(Vw32_capslock_is_shiftlock, Vw32_grab_focus_on_raise)
(Vw32_recognize_altgr, Vw32_swap_mouse_buttons)
(Vx_toolkit_scroll_bars, w32_num_mouse_buttons)
(w32_use_visible_system_caret, x_underline_at_descent_line)
(x_use_underline_position_properties): Remove.
(Vcommand_line_args, Vsystem_name, extra_keyboard_modifiers):
Remove declaration.
* w32select.c (syms_of_w32select): Update.
(Vnext_selection_coding_system, Vselection_coding_system): Remove.
* w32proc.c (syms_of_ntproc): Update.
(Vw32_downcase_file_names, Vw32_generate_fake_inodes)
(Vw32_get_true_file_attributes, Vw32_quote_process_args)
(Vw32_start_process_inherit_error_mode)
(Vw32_start_process_share_console)
(Vw32_start_process_show_window, w32_pipe_read_delay): Remove.
(Vsystem_name): Remove declaration.
* w32font.c (syms_of_w32font): Update.
(Vw32_charset_info_alist): Remove.
* w32fns.c (globals_of_w32fns, syms_of_w32fns): Update.
(Vw32_alt_is_meta, Vw32_apps_modifier, Vw32_bdf_filename_alist)
(Vw32_color_map, Vw32_enable_caps_lock, Vw32_enable_num_lock)
(Vw32_enable_palette, Vw32_lwindow_modifier)
(Vw32_pass_alt_to_system, Vw32_pass_lwindow_to_system)
(Vw32_pass_rwindow_to_system, Vw32_phantom_key_code)
(Vw32_rwindow_modifier, Vw32_scroll_lock_modifier)
(Vx_cursor_fore_pixel, Vx_hourglass_pointer_shape)
(Vx_max_tooltip_size, Vx_mode_pointer_shape)
(Vx_no_window_manager, Vx_nontext_pointer_shape)
(Vx_pixel_size_width_font_regexp, Vx_pointer_shape)
(Vx_sensitive_text_pointer_shape)
(Vx_window_horizontal_drag_shape, w32_ansi_code_page)
(w32_enable_synthesized_fonts, w32_mouse_button_tolerance)
(w32_mouse_move_interval)
(w32_pass_extra_mouse_buttons_to_system)
(w32_pass_multimedia_buttons_to_system, w32_quit_key)
(w32_strict_fontnames, w32_strict_painting): Remove.
(Vhourglass_delay, Vmenu_bar_mode, Vtool_bar_mode)
(Vw32_recognize_altgr, Vwindow_system_version)
(w32_num_mouse_buttons, w32_use_visible_system_caret): Remove
declaration.
* w32console.c (syms_of_ntterm): Update.
(w32_use_full_screen_buffer): Remove.
(Vtty_defined_color_alist): Remove declaration.
* w16select.c (syms_of_win16select): Update.
(Vnext_selection_coding_system, Vselection_coding_system): Remove.
* undo.c (syms_of_undo): Update.
(Vundo_outer_limit, Vundo_outer_limit_function)
(undo_inhibit_record_point, undo_limit, undo_strong_limit):
Remove.
* textprop.c (syms_of_textprop): Update.
(Vchar_property_alias_alist, Vdefault_text_properties)
(Vinhibit_point_motion_hooks, Vtext_property_default_nonsticky):
Remove.
* terminal.c (syms_of_terminal): Update.
(Vdelete_terminal_functions, Vring_bell_function): Remove.
* term.c (syms_of_term): Update.
(Vresume_tty_functions, Vsuspend_tty_functions)
(no_redraw_on_reenter, system_uses_terminfo, visible_cursor):
Remove.
* syntax.c (syms_of_syntax): Update.
(Vfind_word_boundary_function_table, multibyte_syntax_as_symbol)
(open_paren_in_column_0_is_defun_start)
(parse_sexp_ignore_comments, parse_sexp_lookup_properties)
(words_include_escapes): Remove.
* search.c (syms_of_search): Update.
(Vinhibit_changing_match_data, Vsearch_spaces_regexp): Remove.
* process.c (syms_of_process): Update.
(Vprocess_adaptive_read_buffering, Vprocess_connection_type)
(delete_exited_processes): Remove.
* print.c (syms_of_print): Update.
(Vfloat_output_format, Vprint_charset_text_property)
(Vprint_circle, Vprint_continuous_numbering, Vprint_gensym)
(Vprint_length, Vprint_level, Vprint_number_table)
(Vstandard_output, print_escape_multibyte)
(print_escape_newlines, print_escape_nonascii, print_quoted):
Remove.
* msdos.c (syms_of_msdos): Update.
(Vdos_unsupported_char_glyph): Remove.
(unibyte_display_via_language_environment): Remove declaration.
* minibuf.c (syms_of_minibuf): Update.
(Vcompletion_regexp_list, Vhistory_add_new_input)
(Vhistory_length, Vminibuffer_completing_file_name)
(Vminibuffer_completion_confirm)
(Vminibuffer_completion_predicate, Vminibuffer_completion_table)
(Vminibuffer_exit_hook, Vminibuffer_help_form)
(Vminibuffer_history_position, Vminibuffer_history_variable)
(Vminibuffer_prompt_properties, Vminibuffer_setup_hook)
(Vread_buffer_function, Vread_expression_map)
(completion_ignore_case, enable_recursive_minibuffers)
(history_delete_duplicates, minibuffer_allow_text_properties)
(minibuffer_auto_raise, read_buffer_completion_ignore_case):
Remove.
* marker.c (syms_of_marker): Update.
(byte_debug_flag): Remove.
* macros.c (syms_of_macros): Update.
(Vexecuting_kbd_macro, executing_kbd_macro_index): Remove.
* lread.c (syms_of_lread): Update.
(Vafter_load_alist, Vbyte_boolean_vars)
(Vbytecomp_version_regexp, Vcurrent_load_list)
(Veval_buffer_list, Vload_file_name, Vload_file_rep_suffixes)
(Vload_history, Vload_path, Vload_read_function)
(Vload_source_file_function, Vload_suffixes, Vobarray)
(Vold_style_backquotes, Vpreloaded_file_list, Vread_circle)
(Vread_symbol_positions_list, Vread_with_symbol_positions)
(Vsource_directory, Vstandard_input, Vuser_init_file, Vvalues)
(force_load_messages, load_convert_to_unibyte)
(load_dangerous_libraries, load_force_doc_strings)
(load_in_progress): Remove.
* keymap.c (syms_of_keymap): Update.
(Vdefine_key_rebound_commands, Vemulation_mode_map_alists)
(Vminibuffer_local_completion_map)
(Vminibuffer_local_filename_completion_map)
(Vminibuffer_local_filename_must_match_map)
(Vminibuffer_local_map, Vminibuffer_local_must_match_map)
(Vminibuffer_local_ns_map, Vminor_mode_map_alist)
(Vminor_mode_overriding_map_alist, Vwhere_is_preferred_modifier):
Remove.
* keyboard.c (syms_of_keyboard): Update.
(Vauto_save_timeout, Vcommand_error_function)
(Vcommand_hook_internal, Vdeactivate_mark)
(Vdeferred_action_function, Vdeferred_action_list)
(Vdisable_point_adjustment, Vdouble_click_time)
(Vecho_keystrokes, Venable_disabled_menus_and_buttons)
(Vfunction_key_map, Vglobal_disable_point_adjustment)
(Vhelp_char, Vhelp_event_list, Vhelp_form)
(Vinput_method_function, Vinput_method_previous_message)
(Vkey_translation_map, Vlast_event_frame)
(Vlucid_menu_bar_dirty_flag, Vmenu_bar_final_items)
(Vminibuffer_message_timeout, Voverriding_local_map)
(Voverriding_local_map_menu_flag, Vpost_command_hook)
(Vpre_command_hook, Vprefix_help_command)
(Vsaved_region_selection, Vselect_active_regions)
(Vshow_help_function, Vspecial_event_map, Vsuggest_key_bindings)
(Vthis_command, Vthis_command_keys_shift_translated)
(Vthis_original_command, Vthrow_on_input, Vtimer_idle_list)
(Vtimer_list, Vtool_bar_separator_image_expression, Vtop_level)
(Vtty_erase_char, Vunread_command_events)
(Vunread_input_method_events, Vunread_post_input_method_events)
(auto_save_interval, cannot_suspend, do_mouse_tracking)
(double_click_fuzz, extra_keyboard_modifiers)
(inhibit_local_menu_bar_menus, last_command_event)
(last_input_event, last_nonmenu_event, menu_prompt_more_char)
(menu_prompting, meta_prefix_char, num_input_keys)
(num_nonmacro_input_events, polling_period, unread_command_char):
Remove.
* insdel.c (syms_of_insdel): Update.
(Vcombine_after_change_calls, check_markers_debug_flag): Remove.
* indent.c (syms_of_indent): Update.
(indent_tabs_mode): Remove.
* image.c (syms_of_image): Update.
(Vimage_cache_eviction_delay, Vimage_types)
(Vimagemagick_render_type, Vmax_image_size, Vx_bitmap_file_path)
(cross_disabled_images): Remove.
* fringe.c (syms_of_fringe): Update.
(Vfringe_bitmaps, Voverflow_newline_into_fringe): Remove.
* frame.c (syms_of_frame): Update.
(Vdefault_frame_alist, Vdefault_frame_scroll_bars)
(Vdelete_frame_functions, Vframe_alpha_lower_limit)
(Vmake_pointer_invisible, Vmenu_bar_mode, Vmouse_highlight)
(Vmouse_position_function, Vterminal_frame, Vtool_bar_mode)
(Vx_resource_class, Vx_resource_name, focus_follows_mouse):
Remove.
* fontset.c (syms_of_fontset): Update.
(Valternate_fontname_alist, Vfont_encoding_charset_alist)
(Vfontset_alias_alist, Vignore_relative_composition)
(Votf_script_alist, Vuse_default_ascent)
(Vvertical_centering_font_regexp): Remove.
* font.c (syms_of_font): Update.
(Vfont_encoding_alist, Vfont_log, Vfont_slant_table)
(Vfont_weight_table, Vfont_width_table): Remove.
* fns.c (syms_of_fns): Update.
(Vfeatures, use_dialog_box, use_file_dialog): Remove.
* filelock.c (syms_of_filelock): Update.
(Vtemporary_file_directory): Remove.
* fileio.c (syms_of_fileio): Update.
(Vafter_insert_file_functions, Vauto_save_include_big_deletions)
(Vauto_save_list_file_name, Vauto_save_visited_file_name)
(Vdefault_file_name_coding_system, Vfile_name_coding_system)
(Vfile_name_handler_alist, Vinhibit_file_name_handlers)
(Vinhibit_file_name_operation, Vset_auto_coding_function)
(Vwrite_region_annotate_functions)
(Vwrite_region_annotations_so_far)
(Vwrite_region_post_annotation_function)
(delete_by_moving_to_trash, write_region_inhibit_fsync): Remove.
(Vw32_get_true_file_attributes): Remove declaration.
* eval.c (syms_of_eval): Update.
(Vdebug_ignored_errors, Vdebug_on_error, Vdebug_on_signal)
(Vdebugger, Vinhibit_quit, Vmacro_declaration_function)
(Vquit_flag, Vsignal_hook_function, Vstack_trace_on_error)
(debug_on_next_call, debug_on_quit, debugger_may_continue)
(max_lisp_eval_depth, max_specpdl_size): Remove.
* emacs.c (syms_of_emacs): Update.
(Vafter_init_time, Vbefore_init_time, Vcommand_line_args)
(Vdynamic_library_alist, Vemacs_copyright, Vemacs_version)
(Vinstallation_directory, Vinvocation_directory)
(Vinvocation_name, Vkill_emacs_hook, Vpath_separator)
(Vprevious_system_messages_locale, Vprevious_system_time_locale)
(Vsystem_configuration, Vsystem_configuration_options)
(Vsystem_messages_locale, Vsystem_time_locale, Vsystem_type)
(inhibit_x_resources, noninteractive1): Remove.
* editfns.c (syms_of_editfns): Update.
(Vbuffer_access_fontified_property)
(Vbuffer_access_fontify_functions, Vinhibit_field_text_motion)
(Voperating_system_release, Vsystem_name, Vuser_full_name)
(Vuser_login_name, Vuser_real_login_name): Remove.
* dosfns.c (syms_of_dosfns): Update.
(Vdos_display_scancodes, Vdos_version, Vdos_windows_version)
(dos_codepage, dos_country_code, dos_decimal_point)
(dos_hyper_key, dos_keyboard_layout, dos_keypad_mode)
(dos_super_key, dos_timezone_offset): Remove.
* doc.c (syms_of_doc): Update.
(Vbuild_files, Vdoc_file_name): Remove.
* dispnew.c (syms_of_display): Update.
(Vglyph_table, Vinitial_window_system)
(Vredisplay_preemption_period, Vstandard_display_table)
(Vwindow_system_version, baud_rate, cursor_in_echo_area)
(inverse_video, redisplay_dont_pause, visible_bell): Remove.
* dired.c (syms_of_dired): Update.
(Vcompletion_ignored_extensions): Remove.
(Vw32_get_true_file_attributes): Remove declaration.
* dbusbind.c (syms_of_dbusbind): Update.
(Vdbus_debug, Vdbus_registered_buses)
(Vdbus_registered_objects_table): Remove.
* data.c (syms_of_data): Update.
(Vmost_negative_fixnum, Vmost_positive_fixnum): Remove.
* composite.c (syms_of_composite): Update.
(Vauto_composition_function, Vauto_composition_mode)
(Vcompose_chars_after_function, Vcomposition_function_table):
Remove.
* coding.c (syms_of_coding): Update.
(Vcharset_revision_table, Vcoding_category_list)
(Vcoding_system_alist, Vcoding_system_for_read)
(Vcoding_system_for_write, Vcoding_system_list)
(Vdefault_process_coding_system, Venable_character_translation)
(Vfile_coding_system_alist, Vlast_code_conversion_error)
(Vlast_coding_system_used, Vlatin_extra_code_table)
(Vlocale_coding_system, Vnetwork_coding_system_alist)
(Vprocess_coding_system_alist)
(Vselect_safe_coding_system_function)
(Vstandard_translation_table_for_decode)
(Vstandard_translation_table_for_encode)
(Vtranslation_table_for_input, coding_system_require_warning)
(eol_mnemonic_dos, eol_mnemonic_mac, eol_mnemonic_undecided)
(eol_mnemonic_unix, inherit_process_coding_system)
(inhibit_eol_conversion, inhibit_iso_escape_detection)
(inhibit_null_byte_detection): Remove.
* cmds.c (syms_of_cmds): Update.
(Vpost_self_insert_hook): Remove.
* charset.c (syms_of_charset): Update.
(Vcharset_list, Vcharset_map_path, Vcurrent_iso639_language)
(inhibit_load_charset_map): Remove.
* character.c (syms_of_character): Update.
(Vauto_fill_chars, Vchar_direction_table, Vchar_script_table)
(Vchar_width_table, Vprintable_chars)
(Vscript_representative_chars, Vtranslation_table_vector)
(Vunicode_category_table): Remove.
* ccl.c (syms_of_ccl): Update.
(Vcode_conversion_map_vector, Vfont_ccl_encoder_alist)
(Vtranslation_hash_table_vector): Remove.
* category.c (syms_of_category): Update.
(Vword_combining_categories, Vword_separating_categories): Remove.
* callproc.c (syms_of_callproc): Update.
(Vconfigure_info_directory, Vdata_directory, Vdoc_directory)
(Vexec_directory, Vexec_path, Vexec_suffixes)
(Vinitial_environment, Vprocess_environment)
(Vshared_game_score_directory, Vshell_file_name): Remove.
* callint.c (syms_of_callint): Update.
(Vcommand_debug_status, Vcommand_history, Vcurrent_prefix_arg)
(Vmark_even_if_inactive, Vmouse_leave_buffer_hook): Remove.
* bytecode.c (syms_of_bytecode): Update.
(Vbyte_code_meter, byte_metering_on): Remove.
* buffer.c (syms_of_buffer): Update.
(Vafter_change_functions, Vbefore_change_functions)
(Vchange_major_mode_hook, Vfirst_change_hook)
(Vinhibit_read_only, Vkill_buffer_query_functions)
(Vtransient_mark_mode, inhibit_modification_hooks): Remove.
* alloc.c (syms_of_alloc): Update.
(Vgc_cons_percentage, Vgc_elapsed, Vmemory_full)
(Vmemory_signal_data, Vpost_gc_hook, Vpurify_flag)
(cons_cells_consed, floats_consed, garbage_collection_messages)
(gc_cons_threshold, gcs_done, intervals_consed)
(misc_objects_consed, pure_bytes_used, string_chars_consed)
(strings_consed, symbols_consed, vector_cells_consed): Remove.
* lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
(DEFVAR_INT): Assume global is in `globals'.
* alloc.c (globals): Define.
2011-01-18 13:45:37 -07:00
|
|
|
|
DEFVAR_LISP ("selection-coding-system", Vselection_coding_system,
|
2010-10-23 19:22:43 -07:00
|
|
|
|
doc: /* Coding system for communicating with other programs.
|
|
|
|
|
|
|
|
|
|
For MS-Windows and MS-DOS:
|
|
|
|
|
When sending or receiving text via selection and clipboard, the text
|
|
|
|
|
is encoded or decoded by this coding system. The default value is
|
|
|
|
|
the current system default encoding on 9x/Me, `utf-16le-dos'
|
|
|
|
|
\(Unicode) on NT/W2K/XP, and `iso-latin-1-dos' on MS-DOS.
|
|
|
|
|
|
|
|
|
|
For X Windows:
|
|
|
|
|
When sending text via selection and clipboard, if the target
|
|
|
|
|
data-type matches with the type of this coding system, it is used
|
|
|
|
|
for encoding the text. Otherwise (including the case that this
|
|
|
|
|
variable is nil), a proper coding system is used as below:
|
|
|
|
|
|
|
|
|
|
data-type coding system
|
|
|
|
|
--------- -------------
|
|
|
|
|
UTF8_STRING utf-8
|
|
|
|
|
COMPOUND_TEXT compound-text-with-extensions
|
|
|
|
|
STRING iso-latin-1
|
|
|
|
|
C_STRING no-conversion
|
|
|
|
|
|
|
|
|
|
When receiving text, if this coding system is non-nil, it is used
|
|
|
|
|
for decoding regardless of the data-type. If this is nil, a
|
|
|
|
|
proper coding system is used according to the data-type as above.
|
|
|
|
|
|
|
|
|
|
See also the documentation of the variable `x-select-request-type' how
|
|
|
|
|
to control which data-type to request for receiving text.
|
|
|
|
|
|
|
|
|
|
The default value is nil. */);
|
2002-10-14 11:01:17 +00:00
|
|
|
|
Vselection_coding_system = intern ("iso-latin-1-dos");
|
1998-09-01 13:26:41 +00:00
|
|
|
|
|
Move all DEFVAR'd globals into a structure -- threading infrastructure
* globals.h: New file.
* xterm.h (Vx_pixel_size_width_font_regexp): Remove declaration.
* window.h (Vinitial_window_system, Vminibuf_scroll_window)
(Vwindow_system_version): Remove declaration.
* w32term.h (Vw32_enable_palette)
(Vx_pixel_size_width_font_regexp): Remove declaration.
* w32menu.c (Voverriding_local_map)
(Voverriding_local_map_menu_flag): Remove declaration.
* w32inevt.c (Vw32_alt_is_meta, Vw32_apps_modifier)
(Vw32_capslock_is_shiftlock, Vw32_enable_caps_lock)
(Vw32_enable_num_lock, Vw32_lwindow_modifier)
(Vw32_pass_lwindow_to_system, Vw32_pass_rwindow_to_system)
(Vw32_phantom_key_code, Vw32_recognize_altgr)
(Vw32_rwindow_modifier, Vw32_scroll_lock_modifier)
(w32_use_full_screen_buffer): Remove declaration.
* w32.c (Vsystem_configuration, Vw32_downcase_file_names)
(Vw32_generate_fake_inodes, Vw32_get_true_file_attributes)
(w32_num_mouse_buttons, w32_pipe_read_delay): Remove declaration.
* termopts.h (Vtruncate_partial_width_windows, inverse_video)
(no_redraw_on_reenter, visible_bell): Remove declaration.
* sysdep.c (Vsystem_name): Remove declaration.
* syntax.h (parse_sexp_lookup_properties): Remove declaration.
* menu.h (Vmenu_updating_frame): Remove declaration.
* macros.h (Vexecuting_kbd_macro, executing_kbd_macro_index):
Remove declaration.
* lisp.h (Vafter_init_time, Vafter_load_alist)
(Vauto_save_list_file_name, Vbefore_init_time, Vcommand_history)
(Vcompletion_regexp_list, Vcurrent_load_list)
(Vcurrent_prefix_arg, Vdata_directory, Vdebug_on_error)
(Vdoc_directory, Vdoc_file_name, Vdynamic_library_alist)
(Vexec_directory, Vexec_path, Vexec_suffixes)
(Vface_font_rescale_alist, Vface_ignored_fonts, Vfeatures)
(Vhelp_form, Vhistory_length, Vinhibit_field_text_motion)
(Vinhibit_quit, Vinhibit_read_only, Vinhibit_redisplay)
(Vinstallation_directory, Vinvocation_directory)
(Vinvocation_name, Vload_file_rep_suffixes, Vload_history)
(Vload_suffixes, Vmark_even_if_inactive, Vmemory_full)
(Vmessage_log_max, Vobarray, Vprint_length, Vprint_level)
(Vpurify_flag, Vquit_flag, Vsaved_region_selection)
(Vscalable_fonts_allowed, Vselect_active_regions)
(Vshell_file_name, Vstandard_input, Vstandard_output)
(Vsystem_name, Vtemporary_file_directory, Vthrow_on_input)
(Vtop_level, Vtty_erase_char, Vundo_outer_limit)
(Vuser_login_name, Vwindow_scroll_functions)
(Vwindow_system_version, Vx_no_window_manager)
(Vx_resource_class, Vx_resource_name, baud_rate)
(completion_ignore_case, debug_on_next_call, gc_cons_threshold)
(history_delete_duplicates, inhibit_x_resources)
(last_nonmenu_event, load_in_progress, max_specpdl_size)
(minibuffer_auto_raise, print_escape_newlines, scroll_margin)
(use_dialog_box, use_file_dialog): Remove declaration. Include
globals.h.
* keymap.h (Voverriding_local_map)
(Voverriding_local_map_menu_flag, meta_prefix_char): Remove
declaration.
* keyboard.h (Vdouble_click_time, Vfunction_key_map)
(Vinput_method_function, Vkey_translation_map)
(Vlucid_menu_bar_dirty_flag, Vthis_original_command)
(do_mouse_tracking, extra_keyboard_modifiers)
(num_nonmacro_input_events): Remove declaration.
* intervals.h (Vchar_property_alias_alist)
(Vdefault_text_properties, Vinhibit_point_motion_hooks)
(Vtext_property_default_nonsticky): Remove declaration.
* gtkutil.h (x_gtk_file_dialog_help_text)
(x_gtk_show_hidden_files, x_gtk_use_old_file_dialog)
(x_gtk_whole_detached_tool_bar): Remove declaration.
* frame.h (Vdefault_frame_alist, Vframe_alpha_lower_limit)
(Vmenu_bar_mode, Vmouse_highlight, Vterminal_frame)
(Vtool_bar_mode, Vx_resource_class, Vx_resource_name)
(focus_follows_mouse): Remove declaration.
* fontset.h (Valternate_fontname_alist, Vfontset_alias_alist)
(Vignore_relative_composition, Votf_script_alist)
(Vuse_default_ascent, Vvertical_centering_font_regexp): Remove
declaration.
* font.h (Vfont_log): Remove declaration.
* dosfns.h (Vdos_display_scancodes, Vdos_version)
(Vdos_windows_version, dos_codepage, dos_country_code)
(dos_decimal_point, dos_hyper_key, dos_keyboard_layout)
(dos_keypad_mode, dos_super_key, dos_timezone_offset): Remove
declaration.
* disptab.h (Vglyph_table, Vstandard_display_table): Remove
declaration.
* dispextern.h (Vface_remapping_alist, Vglyphless_char_display)
(Vmouse_autoselect_window, Voverflow_newline_into_fringe)
(Vshow_trailing_whitespace, Vtool_bar_button_margin)
(Vtool_bar_style, cursor_in_echo_area, display_hourglass_p)
(inverse_video, mode_line_in_non_selected_windows)
(tool_bar_button_relief, tool_bar_max_label_size)
(underline_minimum_offset)
(unibyte_display_via_language_environment, x_stretch_cursor_p):
Remove declaration.
* composite.h (Vauto_composition_function)
(Vcomposition_function_table): Remove declaration.
* commands.h (Vexecuting_kbd_macro)
(Vminibuffer_local_completion_map)
(Vminibuffer_local_filename_completion_map)
(Vminibuffer_local_filename_must_match_map)
(Vminibuffer_local_map, Vminibuffer_local_must_match_map)
(Vminibuffer_local_ns_map, Vthis_command)
(Vunread_command_events, cursor_in_echo_area)
(last_command_event, last_nonmenu_event, unread_command_char):
Remove declaration.
* coding.h (Vcoding_system_for_read, Vcoding_system_for_write)
(Vdefault_file_name_coding_system)
(Vdefault_process_coding_system, Vfile_name_coding_system)
(Vlast_coding_system_used, Vlocale_coding_system)
(Vselect_safe_coding_system_function)
(Vtranslation_table_for_input, coding_system_require_warning)
(eol_mnemonic_dos, eol_mnemonic_mac, eol_mnemonic_undecided)
(eol_mnemonic_unix, inherit_process_coding_system): Remove
declaration.
* charset.h (Vcharset_list, Vcurrent_iso639_language): Remove
declaration.
* character.h (Vauto_fill_chars, Vchar_direction_table)
(Vchar_script_table, Vchar_width_table, Vprintable_chars)
(Vscript_representative_chars, Vtranslation_table_vector)
(Vunicode_category_table): Remove declaration.
* ccl.h (Vfont_ccl_encoder_alist): Remove declaration.
* buffer.h (Vafter_change_functions, Vbefore_change_functions)
(Vdeactivate_mark, Vfirst_change_hook, Vtransient_mark_mode)
(inhibit_modification_hooks): Remove declaration.
* xterm.c (syms_of_xterm): Update.
(Vx_alt_keysym, Vx_hyper_keysym, Vx_keysym_table)
(Vx_meta_keysym, Vx_super_keysym, Vx_toolkit_scroll_bars)
(x_mouse_click_focus_ignore_position)
(x_underline_at_descent_line)
(x_use_underline_position_properties): Remove.
* xsmfns.c (syms_of_xsmfns): Update.
(Vx_session_id, Vx_session_previous_id): Remove.
* xsettings.c (syms_of_xsettings): Update.
(Vxft_settings, use_system_font): Remove.
* xselect.c (syms_of_xselect): Update.
(Vselection_converter_alist, Vx_lost_selection_functions)
(Vx_sent_selection_functions, x_selection_timeout): Remove.
* xfns.c (syms_of_xfns): Update.
(Vgtk_version_string, Vmotif_version_string)
(Vx_cursor_fore_pixel, Vx_hourglass_pointer_shape)
(Vx_max_tooltip_size, Vx_mode_pointer_shape)
(Vx_no_window_manager, Vx_nontext_pointer_shape)
(Vx_pixel_size_width_font_regexp, Vx_pointer_shape)
(Vx_sensitive_text_pointer_shape)
(Vx_window_horizontal_drag_shape, x_gtk_file_dialog_help_text)
(x_gtk_show_hidden_files, x_gtk_use_old_file_dialog)
(x_gtk_use_system_tooltips, x_gtk_whole_detached_tool_bar):
Remove.
* xfaces.c (syms_of_xfaces): Update.
(Vface_default_stipple, Vface_font_rescale_alist)
(Vface_ignored_fonts, Vface_new_frame_defaults)
(Vface_remapping_alist, Vfont_list_limit)
(Vscalable_fonts_allowed, Vtty_defined_color_alist): Remove.
* xdisp.c (syms_of_xdisp): Update.
(Vauto_resize_tool_bars, Vblink_cursor_alist)
(Vdisplay_pixels_per_inch, Vfontification_functions)
(Vframe_title_format, Vglobal_mode_string)
(Vglyphless_char_display, Vhourglass_delay, Vhscroll_step)
(Vicon_title_format, Vinhibit_redisplay)
(Vline_number_display_limit, Vline_prefix)
(Vmax_mini_window_height, Vmenu_bar_update_hook)
(Vmenu_updating_frame, Vmessage_log_max)
(Vmouse_autoselect_window, Vnobreak_char_display)
(Voverlay_arrow_position, Voverlay_arrow_string)
(Voverlay_arrow_variable_list, Vredisplay_end_trigger_functions)
(Vresize_mini_windows, Vshow_trailing_whitespace)
(Vtool_bar_border, Vtool_bar_button_margin, Vtool_bar_style)
(Vtruncate_partial_width_windows, Vvoid_text_area_pointer)
(Vwindow_scroll_functions, Vwindow_size_change_functions)
(Vwindow_text_change_functions, Vwrap_prefix)
(auto_raise_tool_bar_buttons_p, automatic_hscrolling_p)
(debug_end_pos, display_hourglass_p, emacs_scroll_step)
(highlight_nonselected_windows, hscroll_margin)
(inhibit_eval_during_redisplay, inhibit_free_realized_faces)
(inhibit_menubar_update, inhibit_try_cursor_movement)
(inhibit_try_window_id, inhibit_try_window_reusing)
(line_number_display_limit_width)
(make_cursor_line_fully_visible_p, message_truncate_lines)
(mode_line_inverse_video, multiple_frames, overline_margin)
(scroll_conservatively, scroll_margin, tool_bar_button_relief)
(tool_bar_max_label_size, underline_minimum_offset)
(unibyte_display_via_language_environment, x_stretch_cursor_p):
Remove.
* window.c (syms_of_window): Update.
(Vminibuf_scroll_window, Vother_window_scroll_buffer)
(Vrecenter_redisplay, Vscroll_preserve_screen_position)
(Vtemp_buffer_show_function, Vwindow_configuration_change_hook)
(Vwindow_point_insertion_type, auto_window_vscroll_p)
(mode_line_in_non_selected_windows, next_screen_context_lines)
(window_min_height, window_min_width): Remove.
(scroll_margin): Remove declaration.
* w32term.c (syms_of_w32term): Update.
(Vw32_capslock_is_shiftlock, Vw32_grab_focus_on_raise)
(Vw32_recognize_altgr, Vw32_swap_mouse_buttons)
(Vx_toolkit_scroll_bars, w32_num_mouse_buttons)
(w32_use_visible_system_caret, x_underline_at_descent_line)
(x_use_underline_position_properties): Remove.
(Vcommand_line_args, Vsystem_name, extra_keyboard_modifiers):
Remove declaration.
* w32select.c (syms_of_w32select): Update.
(Vnext_selection_coding_system, Vselection_coding_system): Remove.
* w32proc.c (syms_of_ntproc): Update.
(Vw32_downcase_file_names, Vw32_generate_fake_inodes)
(Vw32_get_true_file_attributes, Vw32_quote_process_args)
(Vw32_start_process_inherit_error_mode)
(Vw32_start_process_share_console)
(Vw32_start_process_show_window, w32_pipe_read_delay): Remove.
(Vsystem_name): Remove declaration.
* w32font.c (syms_of_w32font): Update.
(Vw32_charset_info_alist): Remove.
* w32fns.c (globals_of_w32fns, syms_of_w32fns): Update.
(Vw32_alt_is_meta, Vw32_apps_modifier, Vw32_bdf_filename_alist)
(Vw32_color_map, Vw32_enable_caps_lock, Vw32_enable_num_lock)
(Vw32_enable_palette, Vw32_lwindow_modifier)
(Vw32_pass_alt_to_system, Vw32_pass_lwindow_to_system)
(Vw32_pass_rwindow_to_system, Vw32_phantom_key_code)
(Vw32_rwindow_modifier, Vw32_scroll_lock_modifier)
(Vx_cursor_fore_pixel, Vx_hourglass_pointer_shape)
(Vx_max_tooltip_size, Vx_mode_pointer_shape)
(Vx_no_window_manager, Vx_nontext_pointer_shape)
(Vx_pixel_size_width_font_regexp, Vx_pointer_shape)
(Vx_sensitive_text_pointer_shape)
(Vx_window_horizontal_drag_shape, w32_ansi_code_page)
(w32_enable_synthesized_fonts, w32_mouse_button_tolerance)
(w32_mouse_move_interval)
(w32_pass_extra_mouse_buttons_to_system)
(w32_pass_multimedia_buttons_to_system, w32_quit_key)
(w32_strict_fontnames, w32_strict_painting): Remove.
(Vhourglass_delay, Vmenu_bar_mode, Vtool_bar_mode)
(Vw32_recognize_altgr, Vwindow_system_version)
(w32_num_mouse_buttons, w32_use_visible_system_caret): Remove
declaration.
* w32console.c (syms_of_ntterm): Update.
(w32_use_full_screen_buffer): Remove.
(Vtty_defined_color_alist): Remove declaration.
* w16select.c (syms_of_win16select): Update.
(Vnext_selection_coding_system, Vselection_coding_system): Remove.
* undo.c (syms_of_undo): Update.
(Vundo_outer_limit, Vundo_outer_limit_function)
(undo_inhibit_record_point, undo_limit, undo_strong_limit):
Remove.
* textprop.c (syms_of_textprop): Update.
(Vchar_property_alias_alist, Vdefault_text_properties)
(Vinhibit_point_motion_hooks, Vtext_property_default_nonsticky):
Remove.
* terminal.c (syms_of_terminal): Update.
(Vdelete_terminal_functions, Vring_bell_function): Remove.
* term.c (syms_of_term): Update.
(Vresume_tty_functions, Vsuspend_tty_functions)
(no_redraw_on_reenter, system_uses_terminfo, visible_cursor):
Remove.
* syntax.c (syms_of_syntax): Update.
(Vfind_word_boundary_function_table, multibyte_syntax_as_symbol)
(open_paren_in_column_0_is_defun_start)
(parse_sexp_ignore_comments, parse_sexp_lookup_properties)
(words_include_escapes): Remove.
* search.c (syms_of_search): Update.
(Vinhibit_changing_match_data, Vsearch_spaces_regexp): Remove.
* process.c (syms_of_process): Update.
(Vprocess_adaptive_read_buffering, Vprocess_connection_type)
(delete_exited_processes): Remove.
* print.c (syms_of_print): Update.
(Vfloat_output_format, Vprint_charset_text_property)
(Vprint_circle, Vprint_continuous_numbering, Vprint_gensym)
(Vprint_length, Vprint_level, Vprint_number_table)
(Vstandard_output, print_escape_multibyte)
(print_escape_newlines, print_escape_nonascii, print_quoted):
Remove.
* msdos.c (syms_of_msdos): Update.
(Vdos_unsupported_char_glyph): Remove.
(unibyte_display_via_language_environment): Remove declaration.
* minibuf.c (syms_of_minibuf): Update.
(Vcompletion_regexp_list, Vhistory_add_new_input)
(Vhistory_length, Vminibuffer_completing_file_name)
(Vminibuffer_completion_confirm)
(Vminibuffer_completion_predicate, Vminibuffer_completion_table)
(Vminibuffer_exit_hook, Vminibuffer_help_form)
(Vminibuffer_history_position, Vminibuffer_history_variable)
(Vminibuffer_prompt_properties, Vminibuffer_setup_hook)
(Vread_buffer_function, Vread_expression_map)
(completion_ignore_case, enable_recursive_minibuffers)
(history_delete_duplicates, minibuffer_allow_text_properties)
(minibuffer_auto_raise, read_buffer_completion_ignore_case):
Remove.
* marker.c (syms_of_marker): Update.
(byte_debug_flag): Remove.
* macros.c (syms_of_macros): Update.
(Vexecuting_kbd_macro, executing_kbd_macro_index): Remove.
* lread.c (syms_of_lread): Update.
(Vafter_load_alist, Vbyte_boolean_vars)
(Vbytecomp_version_regexp, Vcurrent_load_list)
(Veval_buffer_list, Vload_file_name, Vload_file_rep_suffixes)
(Vload_history, Vload_path, Vload_read_function)
(Vload_source_file_function, Vload_suffixes, Vobarray)
(Vold_style_backquotes, Vpreloaded_file_list, Vread_circle)
(Vread_symbol_positions_list, Vread_with_symbol_positions)
(Vsource_directory, Vstandard_input, Vuser_init_file, Vvalues)
(force_load_messages, load_convert_to_unibyte)
(load_dangerous_libraries, load_force_doc_strings)
(load_in_progress): Remove.
* keymap.c (syms_of_keymap): Update.
(Vdefine_key_rebound_commands, Vemulation_mode_map_alists)
(Vminibuffer_local_completion_map)
(Vminibuffer_local_filename_completion_map)
(Vminibuffer_local_filename_must_match_map)
(Vminibuffer_local_map, Vminibuffer_local_must_match_map)
(Vminibuffer_local_ns_map, Vminor_mode_map_alist)
(Vminor_mode_overriding_map_alist, Vwhere_is_preferred_modifier):
Remove.
* keyboard.c (syms_of_keyboard): Update.
(Vauto_save_timeout, Vcommand_error_function)
(Vcommand_hook_internal, Vdeactivate_mark)
(Vdeferred_action_function, Vdeferred_action_list)
(Vdisable_point_adjustment, Vdouble_click_time)
(Vecho_keystrokes, Venable_disabled_menus_and_buttons)
(Vfunction_key_map, Vglobal_disable_point_adjustment)
(Vhelp_char, Vhelp_event_list, Vhelp_form)
(Vinput_method_function, Vinput_method_previous_message)
(Vkey_translation_map, Vlast_event_frame)
(Vlucid_menu_bar_dirty_flag, Vmenu_bar_final_items)
(Vminibuffer_message_timeout, Voverriding_local_map)
(Voverriding_local_map_menu_flag, Vpost_command_hook)
(Vpre_command_hook, Vprefix_help_command)
(Vsaved_region_selection, Vselect_active_regions)
(Vshow_help_function, Vspecial_event_map, Vsuggest_key_bindings)
(Vthis_command, Vthis_command_keys_shift_translated)
(Vthis_original_command, Vthrow_on_input, Vtimer_idle_list)
(Vtimer_list, Vtool_bar_separator_image_expression, Vtop_level)
(Vtty_erase_char, Vunread_command_events)
(Vunread_input_method_events, Vunread_post_input_method_events)
(auto_save_interval, cannot_suspend, do_mouse_tracking)
(double_click_fuzz, extra_keyboard_modifiers)
(inhibit_local_menu_bar_menus, last_command_event)
(last_input_event, last_nonmenu_event, menu_prompt_more_char)
(menu_prompting, meta_prefix_char, num_input_keys)
(num_nonmacro_input_events, polling_period, unread_command_char):
Remove.
* insdel.c (syms_of_insdel): Update.
(Vcombine_after_change_calls, check_markers_debug_flag): Remove.
* indent.c (syms_of_indent): Update.
(indent_tabs_mode): Remove.
* image.c (syms_of_image): Update.
(Vimage_cache_eviction_delay, Vimage_types)
(Vimagemagick_render_type, Vmax_image_size, Vx_bitmap_file_path)
(cross_disabled_images): Remove.
* fringe.c (syms_of_fringe): Update.
(Vfringe_bitmaps, Voverflow_newline_into_fringe): Remove.
* frame.c (syms_of_frame): Update.
(Vdefault_frame_alist, Vdefault_frame_scroll_bars)
(Vdelete_frame_functions, Vframe_alpha_lower_limit)
(Vmake_pointer_invisible, Vmenu_bar_mode, Vmouse_highlight)
(Vmouse_position_function, Vterminal_frame, Vtool_bar_mode)
(Vx_resource_class, Vx_resource_name, focus_follows_mouse):
Remove.
* fontset.c (syms_of_fontset): Update.
(Valternate_fontname_alist, Vfont_encoding_charset_alist)
(Vfontset_alias_alist, Vignore_relative_composition)
(Votf_script_alist, Vuse_default_ascent)
(Vvertical_centering_font_regexp): Remove.
* font.c (syms_of_font): Update.
(Vfont_encoding_alist, Vfont_log, Vfont_slant_table)
(Vfont_weight_table, Vfont_width_table): Remove.
* fns.c (syms_of_fns): Update.
(Vfeatures, use_dialog_box, use_file_dialog): Remove.
* filelock.c (syms_of_filelock): Update.
(Vtemporary_file_directory): Remove.
* fileio.c (syms_of_fileio): Update.
(Vafter_insert_file_functions, Vauto_save_include_big_deletions)
(Vauto_save_list_file_name, Vauto_save_visited_file_name)
(Vdefault_file_name_coding_system, Vfile_name_coding_system)
(Vfile_name_handler_alist, Vinhibit_file_name_handlers)
(Vinhibit_file_name_operation, Vset_auto_coding_function)
(Vwrite_region_annotate_functions)
(Vwrite_region_annotations_so_far)
(Vwrite_region_post_annotation_function)
(delete_by_moving_to_trash, write_region_inhibit_fsync): Remove.
(Vw32_get_true_file_attributes): Remove declaration.
* eval.c (syms_of_eval): Update.
(Vdebug_ignored_errors, Vdebug_on_error, Vdebug_on_signal)
(Vdebugger, Vinhibit_quit, Vmacro_declaration_function)
(Vquit_flag, Vsignal_hook_function, Vstack_trace_on_error)
(debug_on_next_call, debug_on_quit, debugger_may_continue)
(max_lisp_eval_depth, max_specpdl_size): Remove.
* emacs.c (syms_of_emacs): Update.
(Vafter_init_time, Vbefore_init_time, Vcommand_line_args)
(Vdynamic_library_alist, Vemacs_copyright, Vemacs_version)
(Vinstallation_directory, Vinvocation_directory)
(Vinvocation_name, Vkill_emacs_hook, Vpath_separator)
(Vprevious_system_messages_locale, Vprevious_system_time_locale)
(Vsystem_configuration, Vsystem_configuration_options)
(Vsystem_messages_locale, Vsystem_time_locale, Vsystem_type)
(inhibit_x_resources, noninteractive1): Remove.
* editfns.c (syms_of_editfns): Update.
(Vbuffer_access_fontified_property)
(Vbuffer_access_fontify_functions, Vinhibit_field_text_motion)
(Voperating_system_release, Vsystem_name, Vuser_full_name)
(Vuser_login_name, Vuser_real_login_name): Remove.
* dosfns.c (syms_of_dosfns): Update.
(Vdos_display_scancodes, Vdos_version, Vdos_windows_version)
(dos_codepage, dos_country_code, dos_decimal_point)
(dos_hyper_key, dos_keyboard_layout, dos_keypad_mode)
(dos_super_key, dos_timezone_offset): Remove.
* doc.c (syms_of_doc): Update.
(Vbuild_files, Vdoc_file_name): Remove.
* dispnew.c (syms_of_display): Update.
(Vglyph_table, Vinitial_window_system)
(Vredisplay_preemption_period, Vstandard_display_table)
(Vwindow_system_version, baud_rate, cursor_in_echo_area)
(inverse_video, redisplay_dont_pause, visible_bell): Remove.
* dired.c (syms_of_dired): Update.
(Vcompletion_ignored_extensions): Remove.
(Vw32_get_true_file_attributes): Remove declaration.
* dbusbind.c (syms_of_dbusbind): Update.
(Vdbus_debug, Vdbus_registered_buses)
(Vdbus_registered_objects_table): Remove.
* data.c (syms_of_data): Update.
(Vmost_negative_fixnum, Vmost_positive_fixnum): Remove.
* composite.c (syms_of_composite): Update.
(Vauto_composition_function, Vauto_composition_mode)
(Vcompose_chars_after_function, Vcomposition_function_table):
Remove.
* coding.c (syms_of_coding): Update.
(Vcharset_revision_table, Vcoding_category_list)
(Vcoding_system_alist, Vcoding_system_for_read)
(Vcoding_system_for_write, Vcoding_system_list)
(Vdefault_process_coding_system, Venable_character_translation)
(Vfile_coding_system_alist, Vlast_code_conversion_error)
(Vlast_coding_system_used, Vlatin_extra_code_table)
(Vlocale_coding_system, Vnetwork_coding_system_alist)
(Vprocess_coding_system_alist)
(Vselect_safe_coding_system_function)
(Vstandard_translation_table_for_decode)
(Vstandard_translation_table_for_encode)
(Vtranslation_table_for_input, coding_system_require_warning)
(eol_mnemonic_dos, eol_mnemonic_mac, eol_mnemonic_undecided)
(eol_mnemonic_unix, inherit_process_coding_system)
(inhibit_eol_conversion, inhibit_iso_escape_detection)
(inhibit_null_byte_detection): Remove.
* cmds.c (syms_of_cmds): Update.
(Vpost_self_insert_hook): Remove.
* charset.c (syms_of_charset): Update.
(Vcharset_list, Vcharset_map_path, Vcurrent_iso639_language)
(inhibit_load_charset_map): Remove.
* character.c (syms_of_character): Update.
(Vauto_fill_chars, Vchar_direction_table, Vchar_script_table)
(Vchar_width_table, Vprintable_chars)
(Vscript_representative_chars, Vtranslation_table_vector)
(Vunicode_category_table): Remove.
* ccl.c (syms_of_ccl): Update.
(Vcode_conversion_map_vector, Vfont_ccl_encoder_alist)
(Vtranslation_hash_table_vector): Remove.
* category.c (syms_of_category): Update.
(Vword_combining_categories, Vword_separating_categories): Remove.
* callproc.c (syms_of_callproc): Update.
(Vconfigure_info_directory, Vdata_directory, Vdoc_directory)
(Vexec_directory, Vexec_path, Vexec_suffixes)
(Vinitial_environment, Vprocess_environment)
(Vshared_game_score_directory, Vshell_file_name): Remove.
* callint.c (syms_of_callint): Update.
(Vcommand_debug_status, Vcommand_history, Vcurrent_prefix_arg)
(Vmark_even_if_inactive, Vmouse_leave_buffer_hook): Remove.
* bytecode.c (syms_of_bytecode): Update.
(Vbyte_code_meter, byte_metering_on): Remove.
* buffer.c (syms_of_buffer): Update.
(Vafter_change_functions, Vbefore_change_functions)
(Vchange_major_mode_hook, Vfirst_change_hook)
(Vinhibit_read_only, Vkill_buffer_query_functions)
(Vtransient_mark_mode, inhibit_modification_hooks): Remove.
* alloc.c (syms_of_alloc): Update.
(Vgc_cons_percentage, Vgc_elapsed, Vmemory_full)
(Vmemory_signal_data, Vpost_gc_hook, Vpurify_flag)
(cons_cells_consed, floats_consed, garbage_collection_messages)
(gc_cons_threshold, gcs_done, intervals_consed)
(misc_objects_consed, pure_bytes_used, string_chars_consed)
(strings_consed, symbols_consed, vector_cells_consed): Remove.
* lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
(DEFVAR_INT): Assume global is in `globals'.
* alloc.c (globals): Define.
2011-01-18 13:45:37 -07:00
|
|
|
|
DEFVAR_LISP ("next-selection-coding-system", Vnext_selection_coding_system,
|
2010-10-23 19:13:37 -07:00
|
|
|
|
doc: /* Coding system for the next communication with other programs.
|
2001-12-11 06:23:50 +00:00
|
|
|
|
Usually, `selection-coding-system' is used for communicating with
|
2010-10-23 19:13:37 -07:00
|
|
|
|
other programs (X Windows clients or MS Windows programs). But, if this
|
|
|
|
|
variable is set, it is used for the next communication only.
|
|
|
|
|
After the communication, this variable is set to nil. */);
|
1998-09-01 13:26:41 +00:00
|
|
|
|
Vnext_selection_coding_system = Qnil;
|
1998-07-09 14:02:15 +00:00
|
|
|
|
|
1997-04-14 10:59:48 +00:00
|
|
|
|
QPRIMARY = intern ("PRIMARY"); staticpro (&QPRIMARY);
|
|
|
|
|
QCLIPBOARD = intern ("CLIPBOARD"); staticpro (&QCLIPBOARD);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endif /* MSDOS */
|