Glenn Morris
7c051dd87f
Sync docs of some W32 and X C functions.
...
* src/w32fns.c (Fx_synchronize, Fx_change_window_property)
(Fx_window_property, Fx_file_dialog):
* src/xfns.c (Fx_synchronize, Fx_change_window_property)
(Fx_window_property, Fx_file_dialog): Sync docs between w32 and X.
2010-10-24 15:45:10 -07:00
Chong Yidong
d414c7133f
Merge changes from emacs-23 branch.
2010-10-24 17:37:38 -04:00
Chong Yidong
0c382083b6
Merge changes from emacs-23
2010-10-24 17:36:09 -04:00
Chong Yidong
23c261f58f
* xterm.c (x_connection_closed): Kill Emacs unconditionally.
2010-10-24 17:05:11 -04:00
Jim Meyering
947f5e0162
* emacs.c (argmatch): Don't treat "--" as "--chdir".
2010-10-24 12:00:57 -04:00
Glenn Morris
f5f2561564
Sync docs of selection-coding-system between C and Lisp.
...
* src/w16select.c (syms_of_win16select) <selection-coding-system>:
* src/w32select.c (syms_of_w32select) <selection-coding-system>:
Sync docs with select.el.
* lisp/select.el (selection-coding-system): Sync doc with C versions.
2010-10-23 19:22:43 -07:00
Glenn Morris
3646b86d0e
Sync Lisp and C docs of next-selection-coding-system.
...
* src/w16select.c (syms_of_win16select) <next-selection-coding-system>:
* src/w32select.c (syms_of_w32select) <next-selection-coding-system>:
Sync docs with select.el.
* lisp/select.el (next-selection-coding-system): Sync doc with C versions.
2010-10-23 19:13:37 -07:00
Glenn Morris
46710489c8
Remove duplicate definition of tty-defined-color-alist.
...
* src/xfaces.c (syms_of_xfaces) <tty-defined-color-alist>: Sync doc with
Lisp version.
* lisp/term/tty-colors.el (tty-defined-color-alist): Remove duplicate
definition of C variable.
2010-10-23 18:48:39 -07:00
Glenn Morris
ea88388346
Sync X and MS-Windows docs for x-use-underline-position-properties.
...
* src/w32term.c (syms_of_w32term) <x-use-underline-position-properties>:
Sync doc with the xterm.c version.
2010-10-23 18:22:37 -07:00
Glenn Morris
65807d7334
Sync X and MS-Windows docs of x-toolkit-scroll-bars.
...
* src/w32term.c (syms_of_w32term) <x-toolkit-scroll-bars>:
* src/xterm.c (syms_of_xterm) <x-toolkit-scroll-bars>: Sync docs.
2010-10-23 18:15:43 -07:00
Glenn Morris
e1fd756bae
* src/frame.c (syms_of_frame) <menu-bar-mode>: Sync doc with Lisp.
2010-10-23 14:21:49 -07:00
Glenn Morris
a102db1ee5
* src/xdisp.c (syms_of_xdisp) <hourglass-delay>: Sync doc with Lisp.
2010-10-23 14:19:02 -07:00
Glenn Morris
6e82cf1a1d
* src/xdisp.c (syms_of_xdisp) <display-hourglass>: Sync doc with Lisp.
2010-10-23 14:16:39 -07:00
Glenn Morris
66c6abf0d7
Sync docs of cursor-in-non-selected-windows between Lisp and C.
...
* lisp/frame.el (cursor-in-non-selected-windows): Sync doc with C version.
* src/buffer.c (syms_of_buffer) <cursor-in-non-selected-windows>:
Sync doc with Lisp version.
2010-10-23 14:13:39 -07:00
Glenn Morris
f3d87560ba
Sync docs of C and Lisp version of auto-hscroll-mode.
...
* lisp/frame.el (auto-hscroll-mode): Sync doc with C version.
* src/xdisp.c (syms_of_xdisp) <auto-hscroll-mode>: Sync doc with Lisp.
2010-10-23 14:02:44 -07:00
Eli Zaretskii
914f049bea
src/ChangeLog: Revert inadvertent change of entry date.
2010-10-23 19:33:03 +02:00
Eli Zaretskii
d1d6801eb4
Implement mouse highlight for bidi-reordered lines.
...
xdisp.c (fast_find_string_pos): #ifdef away, not used anymore.
(mouse_face_from_string_pos): New function, replaces
fast_find_string_pos.
(note_mouse_highlight): Call it instead of fast_find_string_pos.
(note_mode_line_or_margin_highlight): Support bidi-reordered
strings and R2L glyph rows. Fix comments.
(note_mouse_highlight): When bidi reordering is turned on in a
buffer, call next-single-property-change and
previous-single-property-change with last argument nil. Clear
mouse highlight when mouse pointer is in a R2L row on the stretch
glyph that stands for no text beyond the line end.
(row_containing_pos): Don't return too early when CHARPOS is in a
bidi-reordered continued line. Return immediately when the first
hit is found in a line that is not continued, or when an exact
match for CHARPOS is found.
(rows_from_pos_range): New function.
(mouse_face_from_buffer_pos): Use it instead of calling
row_containing_pos for START_CHARPOS and END_CHARPOS. Rewrite the
function to support mouse highlight in bidi-reordered lines and
not to assume that START_CHARPOS is always in mouse_face_beg_row.
If necessary, swap mouse_face_beg_row and mouse_face_end_row so
that the former is always above the latter or identical to it.
(show_mouse_face): Support drawing highlighted R2L lines.
(coords_in_mouse_face_p): New function, bidi-aware.
(cursor_in_mouse_face_p, note_mouse_highlight, erase_phys_cursor):
Call it instead of comparing with mouse-face members of dpyinfo.
(note_mode_line_or_margin_highlight): Fix confusingly swapped
usage of hpos and vpos.
2010-10-23 17:30:45 +02:00
Eli Zaretskii
a4041a7121
Fix support for R2L lines. Tested with reordered text.
...
xdisp.c (mouse_face_from_string_pos): Fix support for R2L lines.
2010-10-23 16:41:50 +02:00
Eli Zaretskii
03f46be29c
The range [STARTPOS..ENDPOS] is inclusive in strings.
...
Tested with multiline display strings.
xdisp.c (mouse_face_from_string_pos): Fix off-by-one error when
testing against ENDPOS.
2010-10-23 14:58:12 +02:00
Eli Zaretskii
7b7e2c18a6
Tested with L2R rows and mouse highlight on a single line.
...
xdisp.c (mouse_face_from_string_pos): Initialize the `found'
flag to zero, and exit the outer loop when it's non-zero. Bail
our early if no row in the window belongs to the highlighted
string. Always back up after exiting the second loop.
2010-10-23 14:28:28 +02:00
Juanma Barranquero
88dbda519d
Fix typos.
...
* doc/misc/gnus.texi (Group Parameters, Buttons): Fix typos.
* lisp/org/org-exp.el (org-export-visible):
* lisp/progmodes/dcl-mode.el (dcl-electric-reindent-regexps):
Fix typos in docstrings.
2010-10-23 01:38:34 +02:00
Juanma Barranquero
cd5ad71278
src/frame.c: Fix previous change.
2010-10-22 12:52:08 +02:00
Eli Zaretskii
89baa1df69
Document values of window-system and deprecate its use as predicate.
...
src/frame.c (Fframep, Fwindow_system): Deprecate use as a predicate.
Document all values.
src/dispnew.c (syms_of_display) <initial-window-system, window-system>:
Deprecate use as a boolean flag. Document all values.
src/display.texi (Window Systems): Deprecate use of window-system as
a predicate.
2010-10-22 12:35:31 +02:00
Glenn Morris
039c6cc33e
Obscure an example DEFVAR_INT comment so as to evade make-docfile.
2010-10-22 01:02:31 -07:00
Jan D
dee186b61d
Fix compilation with Motif (Bug#7263).
...
* src/xfns.c: Include Xm/TextF and Xm/List.
(file_dialog_cb, file_dialog_unmap_cb, clean_up_file_dialog): Make
ANSI prototypes.
* src/xmenu.c: Revert 2010-07-27 change: lwlib.h is needed for
MOTIF (Bug#7263).
* src/xrdb.c: Include keyboard.h for MOTIF.
2010-10-22 07:49:47 +02:00
Glenn Morris
2f42e9a286
Fix format of old ChangeLog entry.
2010-10-21 20:38:52 -07:00
Glenn Morris
5fb59edbdd
* src/Makefile.in (SOME_MACHINE_LISP): Add w32-vars.
...
Remove ccl and duplicate mouse.
2010-10-21 20:37:20 -07:00
Chong Yidong
8b78d5e38f
* insdel.c (prepare_to_modify_buffer): Don't set
...
saved-region-selection if modification hooks are disabled.
2010-10-21 13:27:32 -04:00
Glenn Morris
ff851b61cb
Fix src/Makefile.in comment typo from 2010-10-10T14:43:05Z!dann@ics.uci.edu.
2010-10-19 20:52:27 -07:00
Chong Yidong
b8a47412d3
Decouple C-d and delete, so that the former does not delete the region.
...
* lisp/bindings.el (global-map): Bind C-d to delete-char and deletechar
to delete-forward-char.
* lisp/simple.el (normal-erase-is-backspace-mode): Remap delete to
deletechar, and hence delete-forward-char.
* src/cmds.c (Fdelete_char): Doc fix.
2010-10-19 11:43:27 -04:00
Juanma Barranquero
ca3fa30248
Merge changes from emacs-23 branch.
2010-10-19 13:44:07 +02:00
Julien Danjou
c978536f74
* src/frame.c (Fframe_pointer_visible_p):
...
Add `frame-pointer-visible-p' to get the pointer visibility.
2010-10-18 17:07:31 -04:00
Lars Magne Ingebrigtsen
4b2d9ec263
(emacs_gnutls_read): Return 0 if we get a non-"EAGAIN"-like error to signal to Emacs that the socket should be closed.
2010-10-18 22:32:54 +02:00
Ken Brown
5419963b85
* src/s/cygwin.h (SIGNALS_VIA_CHARACTERS): New define (bug#7225).
2010-10-18 08:23:41 -04:00
Eli Zaretskii
d0010be502
Finished work on mouse highlight that comes from display strings.
...
Not tested yet.
xdisp.c (fast_find_string_pos): #ifdef away, not used anymore.
(mouse_face_from_string_pos): New function, replaces fast_find_string_pos.
(note_mouse_highlight): Call it instead of fast_find_string_pos.
2010-10-16 18:14:16 +02:00
Eli Zaretskii
d2038a6126
Support bidi-reordered text in mouse-highlighted mode- and header-lines.
...
Note: Not tested with actually bidi-reordered strings.
xdisp.c (note_mode_line_or_margin_highlight): Support
bidi-reordered strings and R2L glyph rows. Fix more comments.
2010-10-16 14:52:54 +02:00
Eli Zaretskii
9a3d704fa9
Start working on mouse highlight of mode- and header-lines.
...
xdisp.c (rows_from_pos_range, mouse_face_from_buffer_pos)
(note_mode_line_or_margin_highlight): Fix comments.
2010-10-16 12:04:03 +02:00
Eli Zaretskii
c3911ead5d
Fix the MSDOS build broken by latest revisions.
...
src/unexcoff.c (make_hdr): Fix prototype according to changes in
2010-10-03T13:59:56Z!dann@ics.uci.edu.
msdos/sed1v2.inp: Use $(..) instead of ${..} in all edit commands.
Needed because of changes in 2010-10-10T14:43:05Z!dann@ics.uci.edu.
msdos/sed6.inp (mkinfodir): Edit to avoid Unix shell-isms. Needed
because of changes in 2010-10-09T18:31:12Z!rgm@gnu.org.
2010-10-15 20:42:54 +02:00
Eli Zaretskii
9cf66cf2ea
image.c (tiff_load): Cast 3rd argument to avoid compiler warning.
2010-10-15 12:10:20 +02:00
Kenichi Handa
31daa5e17c
Fix incorrect font metrics when the same font is opened with different pixelsizes.
2010-10-15 16:49:11 +09:00
Tassilo Horn
cc98b2563e
Again, fix a typo in really-oldXMenu target
2010-10-15 09:46:47 +02:00
Tassilo Horn
be98da0525
Fix variable name typo in really-oldXMenu target.
2010-10-15 09:34:26 +02:00
Juanma Barranquero
220d91b834
Merge changes from emacs-23 branch.
2010-10-14 16:32:27 +02:00
Juanma Barranquero
9d4f32e88a
src/w32*.c: Whitespace fixes and typos.
2010-10-14 14:25:35 +02:00
Juanma Barranquero
24f981c9f4
src/w32*.c: Make functions static.
...
* src/w32fns.c (w32_wnd_proc, file_dialog_callback):
* src/w32font.c (w32_generic_family):
* src/w32inevt.c (key_event):
* src/w32menu.c (fill_in_menu):
* src/w32proc.c (reader_thread, w32_executable_type, compare_env)
(merge_and_sort_env, int_from_hex, enum_locale_fn, enum_codepage_fn):
* src/w32term.c (w32_read_socket): Make static.
2010-10-14 03:33:31 +02:00
Juanma Barranquero
850690ccf5
src/image.c (DEF_IMGLIB_FN): Add argument to adapt to strict prototypes.
2010-10-14 01:48:09 +02:00
Juanma Barranquero
5e371708c2
src/makefile.w32-in: Simplify OBJ macros.
...
* makefile.w32-in (TLIB2): Rename from TLIBW32.
(OBJ2): New macro.
(WIN32OBJ, FONTOBJ): Remove.
(OBJ1): Redistribute object files with OBJ2.
(LIBS, $(TEMACS)): Use TLIB2.
(make-buildobj-CMD, make-buildobj-SH): Use OBJ2.
($(TLIB2), TAGS, TAGS-LISP, TAGS-gmake): Depend on OBJ2.
2010-10-14 01:08:58 +02:00
Juanma Barranquero
2e288d54f0
Rename image-library-alist' to dynamic-library-alist'.
...
* etc/NEWS: Mention `dynamic-library-alist'.
* lisp/image.el (image-library-alist): Declare as obsolete alias.
(image-type-available-p): Use `dynamic-library-alist'.
* lisp/term/w32-win.el (dynamic-library-alist):
Use instead of `image-library-alist'.
* nt/INSTALL: Refer to `dynamic-library-alist'.
* src/image.c (Vimage_library_alist)
(syms_of_image) <image-library-alist>: Move to src/emacs.c and rename.
(lookup_image_type): Use Vdynamic_library_alist.
(Finit_image_library): Doc fix.
* src/emacs.c (Vdynamic_library_alist)
(syms_of_emacs) <dynamic-library-alist>: Move from src/image.c and rename.
Doc fix.
* src/lisp.h (Vdynamic_library_alist): Declare extern.
2010-10-13 16:50:06 +02:00
Damyan Pepper
9fa828240d
Fix handling of font properties on Windows (bug#6303).
...
* src/font.c (font_filter_properties): New function, refactored from
ftfont_filter_properties.
* src/font.h (font_filter_properties): Declare.
* src/ftfont.c (ftfont_filter_properties): Use font_filter_properties.
* src/w32font.c (w32font_booleans, w32font_non_booleans): New variables.
(w32font_filter_properties): New function.
(w32font_driver): Add w32font_filter_properties.
2010-10-13 16:07:28 +02:00
Juanma Barranquero
c0943d3db2
Fix typos in docstrings, comments and ChangeLogs.
...
* etc/tutorials/TUTORIAL.es: Fix typos.
* lisp/cedet/semantic/symref/list.el (semantic-symref-list-rename-open-hits):
Fix typo in message.
(semantic-symref-list-map-open-hits): Fix typo in docstring.
* lisp/erc/erc-xdcc.el (erc-xdcc-help-text): Fix typo in docstring.
* lisp/gnus/nnmail.el (nnmail-fancy-expiry-targets): Fix typo in docstring.
* lisp/international/mule.el (define-coding-system):
* lisp/international/titdic-cnv.el (quail-cxterm-package-ext-info):
* composite.el (compose-region): Fix typo in docstring.
* lisp/org/org-agenda.el (org-prefix-category-length)
(org-prefix-category-max-length): Fix typos in docstrings.
* src/font.c (Ffont_variation_glyphs):
* ccl.c (Fccl_execute_on_string): Fix typo in docstring.
2010-10-13 01:25:19 +02:00