Jan Djärv [Mon, 7 Feb 2005 20:00:31 +0000 (20:00 +0000)]
* xfns.c (Fx_change_window_property): Use long array when format is 32.
(Fx_window_property): If format is 32 and long is bigger than 32 bits,
convert long array returned from XGetWindowProperty to an int array.
* xselect.c (x_reply_selection_request): Pass long array to
XChangeProperty so that 64 bit longs are handeled correctly.
(x_get_window_property): If format is 32 and long is bigger than 32
bits convert data from XGetWindowProperty from long array to int array.
(lisp_data_to_selection_data): When the input is a vector and the
format is 32, allocate a long array even if long is bigger than 32 bits.
(x_fill_property_data): Use char, short and long as the man page
for XChangeProperty specifies. This way the data returned is OK for
both 32 and 64 bit machines.
(x_handle_dnd_message): Calculate size correctly even for 64 bit
machines.
(Fx_send_client_event): Undo change from 2005-02-05,
x_fill_property_data now handles that case.
Jan Djärv [Mon, 7 Feb 2005 20:00:07 +0000 (20:00 +0000)]
* xfns.c (Fx_change_window_property): Use long array when format is 32.
(Fx_window_property): If format is 32 and long is bigger than 32 bits,
convert long array returned from XGetWindowProperty to an int array.
Jan Djärv [Mon, 7 Feb 2005 19:59:36 +0000 (19:59 +0000)]
* xselect.c (x_reply_selection_request): Pass long array to
XChangeProperty so that 64 bit longs are handeled correctly.
(x_get_window_property): If format is 32 and long is bigger than 32
bits convert data from XGetWindowProperty from long array to int array.
(lisp_data_to_selection_data): When the input is a vector and the
format is 32, allocate a long array even if long is bigger than 32 bits.
(x_fill_property_data): Use char, short and long as the man page
for XChangeProperty specifies. This way the data returned is OK for
both 32 and 64 bit machines.
(x_handle_dnd_message): Calculate size correctly even for 64 bit
machines.
(Fx_send_client_event): Undo change from 2005-02-05,
x_fill_property_data now handles that case.
Kim F. Storm [Mon, 7 Feb 2005 11:44:57 +0000 (11:44 +0000)]
(cua--undo-list, cua--tidy-undo-counter)
(cua--rect-undo, cua--tidy-undo-lists, cua--rectangle-on-off): Remove.
(cua--rect-undo-set-point): New var.
(cua--rectangle-undo-boundary): Setup undo apply entry.
(cua--rect-undo-handler): New function for rectangle undo.
(cua--rect-start-position, cua--rect-end-position): Add.
(cua--rectangle-post-command): Call cua--rectangle-set-corners
for restored rectangle. Set point if cua--rect-undo-set-point.
(Emacs Invocation): +LINENUM is also an option.
(Action Arguments): Explain which kinds of -l args are found how.
(Initial Options): --batch does not inhibit site-start. Add xrefs.
(Command Example): Use --batch, not -batch.
(Inserting Text): Cleanup wording.
(Moving Point): Doc PRIOR, PAGEUP, NEXT, PAGEDOWN more systematically.
C-n is not error at end of buffer.
(Undo): Doc C-/ like C-_. Add xrefs.
(Arguments): META key may be labeled ALT.
Peculiar arg meanings are explained in doc strings.
(Major Mode Conventions): Mention "system abbrevs".
Mode inheritance applies only when default-major-mode is nil.
Clarifications.
(Example Major Modes): Update Text mode and Lisp mode examples.
(Minor Mode Conventions): Mention define-minor-mode at top.
(Defining Minor Modes): In Hungry example, don't define C-M-DEL.
(Mode Line Format): Update mode line face display info.
(Properties in Mode): Mention effect of risky vars.
(Imenu): Define imenu-add-to-menubar.
(Font Lock Mode): Add descriptions to menu lines.
(Faces for Font Lock): Add font-lock-doc-face.
Eli Zaretskii [Sat, 5 Feb 2005 13:19:39 +0000 (13:19 +0000)]
(Color Names): Add pointer to the X docs about RGB
color specifications. Improve indexing
(Text Terminal Colors): Replace the description of RGB values by
an xref to "Color Names".
Andreas Schwab [Fri, 4 Feb 2005 22:11:43 +0000 (22:11 +0000)]
(fatal): Accept third parameter and pass down to
error.
(pfatal_with_name): Pass error string as format parameter instead
of as part of format string.
(pfatal_and_delete): Likewise.
(main): Adjust call to fatal.
(xmalloc): Likewise.
Jan Djärv [Thu, 3 Feb 2005 19:50:08 +0000 (19:50 +0000)]
* gtkutil.c (create_menus): Connect selection-done event instead of
the deactivate event to deactivate_cb. This will make the last
leave event come before the call to deactivate_cb, so the leave
event does not make sit-for exit after a menu selection.
Jan Djärv [Thu, 3 Feb 2005 19:49:43 +0000 (19:49 +0000)]
* xmenu.c (menubar_selection_callback): Force out GTK buffered
events so the menu event comes after them. This is to prevent sit-for
from exiting on buffered events directly after a menu selection,
lisp code for Help => About Emacs uses sit-for.
Jan Djärv [Thu, 3 Feb 2005 19:48:59 +0000 (19:48 +0000)]
* xmenu.c (menubar_selection_callback): Force out GTK buffered
events so the menu event comes after them. This is to prevent sit-for
from exiting on buffered events directly after a menu selection,
lisp code for Help => About Emacs uses sit-for.
* gtkutil.c (create_menus): Connect selection-done event instead of
the deactivate event to deactivate_cb. This will make the last
leave event come before the call to deactivate_cb, so the leave
event does not make sit-for exit after a menu selection.
Stefan Monnier [Thu, 3 Feb 2005 16:06:34 +0000 (16:06 +0000)]
(set-locale-environment): Set file-name coding system to utf-8 on Darwin.
(set-default-coding-systems): Don't set default-file-name-coding-system
on Darwin systems.
(Sentences): Clarify.
(Paragraphs): Explain M-a and blank lines.
(Outline Mode): Clarify text and menu.
(Hard and Soft Newlines): Mention use-hard-newlines.
(File Names): Clarify.
(Visiting): Update conditions for use of file dialog. Clarify.
(Saving): Doc d as answer in save-some-buffers.
(Remote Files): Clean up the text.
(User-Level Deletion): just-one-space takes numeric arg.
(Undo, Maintaining Undo): Clarify last change.
(Sorting): In sort-numeric-fields, explain about octal and hex.
Mention sort-numeric-base.
(Format Properties): Add xref for hard newlines.