Chong Yidong
4b9832a6f2
Rename libxml2 functions, and make parse tree format consistent with xml.el.
...
* xml.c: Switch to GNU indentation.
(make_dom): Change parse tree format to match xml.el.
(Fxml_parse_html_string_internal): Rename from html-parse-string.
(Fxml_parse_string_internal): Rename from xml-parse-string.
* configure.in: Announce whether libxml2 is linked to.
2010-09-21 23:10:16 -04:00
Kenichi Handa
1114abdb3d
merge trunk
2010-09-22 11:56:28 +09:00
Kenichi Handa
86282aabd0
Fix position calculation on mouse click within bidi-reordered composition.
2010-09-22 11:54:58 +09:00
Ari Roponen
840b985a76
* doc.c (Fsnarf_documentation): Use memmove instead of memcpy as
...
the regions may overlap.
2010-09-21 21:33:59 +02:00
Juanma Barranquero
5bc88f4b8a
src/makefile.w32-in ($(BLD)/sysdep.$(O)): Update dependencies.
2010-09-21 14:49:59 +02:00
Dan Nicolaescu
d19e096ef5
* src/emacs.c: Do not include sys/ioctl.h, not needed.
2010-09-21 14:13:36 +03:00
Dan Nicolaescu
92bc9a3678
* src/doprnt.c: Do not include stdlib.h, config.h does it.
...
Move #include before macro definition.
2010-09-21 14:03:34 +03:00
Dan Nicolaescu
48e24408d0
Check in missing ChangeLog entry.
2010-09-21 09:42:12 +03:00
Dan Nicolaescu
f5ea3ba7cc
Link temacs using $(CC) not $(LD).
...
* configure.in (LINKER): Rename to LD_FIRSTFLAG, do not include $(CC).
* src/Makefile.in (temacs): Link using $(CC) not $(LD).
(LD_FIRSTFLAG): Define using autoconf.
(LD): Remove.
2010-09-21 01:35:37 +03:00
Dan Nicolaescu
6553950651
Remove HAVE_TERMIOS definitions.
...
* src/s/usg5-4-common.h (HAVE_TERMIOS):
* src/s/template.h (HAVE_TERMIOS):
* src/s/gnu-linux.h (HAVE_TERMIOS):
* src/s/darwin.h (HAVE_TERMIOS):
* src/s/cygwin.h (HAVE_TERMIOS):
* src/s/bsd-common.h (HAVE_TERMIOS):
* src/s/aix4-2.h (HAVE_TERMIOS):
* src/s/hpux10-20.h (HAVE_TERMIOS): Do not define, it is assumed
defined on all non-MS platforms.
(HAVE_PSTAT_GETDYNAMIC): Do not define, autoconf does it.
2010-09-20 14:38:50 +03:00
Dan Nicolaescu
15f844ac1f
* src/xterm.c (xt_action_hook): Use const.
2010-09-20 14:32:26 +03:00
Juanma Barranquero
93acd23dc3
Fix typos in ChangeLogs.
2010-09-20 03:20:32 +02:00
Juanma Barranquero
7d70133410
Don't make W32 code conditional on HAVE_SOCKETS, it's always defined.
...
* w32.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
(gethostname) [!HAVE_SOCKETS]: Remove.
(SOCK_REPLACE_HANDLE): Remove macro.
(socket_to_fd, sys_close, _sys_read_ahead, sys_read, sys_write)
(term_ntproc, init_ntproc): Don't conditionalize on HAVE_SOCKETS.
* w32proc.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
(syms_of_ntproc): Don't conditionalize on HAVE_SOCKETS.
2010-09-20 02:18:18 +02:00
Eli Zaretskii
6d7b951302
src/Changelog: Merge two last entries.
2010-09-18 16:23:29 +02:00
Eli Zaretskii
0d4afaf7ff
Fix MSDOS build broken by 2010-09-10T16:44:35Z!larsi@gnus.org, support MSDOS build with libxml2.
...
config.bat: Detect that libxml2 is installed and if so, build with it.
src/deps.mk (xml.o): Add dependencies.
msdos/sed1v2.inp (LIBXML2_LIBS, LIBXML2_CFLAGS): Edit to empty.
2010-09-18 16:13:09 +02:00
Eli Zaretskii
f3ec267ad6
Add xml.o dependencies to deps.mk.
...
deps.mk (xml.o): Add dependencies.
2010-09-18 16:09:40 +02:00
Eli Zaretskii
bea4f10c83
Fix bug #7038 with cursor motion in paragraphs w/o strong characters.
...
xdisp.c (Fcurrent_bidi_paragraph_direction): Call
bidi_paragraph_init with NO_DEFAULT_P non-zero.
bidi.c (bidi_paragraph_init): Accept an additional argument
NO_DEFAULT_P; all callers changed. If NO_DEFAULT_P is non-zero,
search back until a paragraph with a strong directional character
is found, and use that to determine paragraph's base direction.
dispextern.h (bidi_paragraph_init): Update prototype.
2010-09-18 13:59:53 +02:00
Eli Zaretskii
69e847be92
Fix bug #6989 .
...
w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
of w32api >= 3.15.
2010-09-17 23:34:45 +02:00
Lars Magne Ingebrigtsen
283357a76d
* process.c (wait_reading_process_output): Don't message about
...
accept-process-output unless the time limit really is zero.
2010-09-17 17:47:49 +02:00
Stefan Monnier
4ddb20d610
* src/frame.c (Ftool_bar_pixel_width): YAILOM (Yet another
...
int/Lisp_Object mixup).
2010-09-17 16:37:14 +02:00
Jan D
e24ad6dd2b
* keyboard.c (parse_tool_bar_item): For QClabel, set TOOL_BAR_ITEM_LABEL not HELP.
2010-09-17 11:54:28 +02:00
Jan D
fb0cf781a1
Expose tool-bar pixel width to lisp and use it for speedbar (Bug#7048)
...
* dframe.el (dframe-reposition-frame-emacs): Use tool-bar-pixel-width
in calculating new frame position. Add more space between new and
parent on the left.
* frame.c (Ftool_bar_pixel_width): New function to expose tool
bar's pixel width to Lisp.
2010-09-17 11:04:35 +02:00
Jan D
318a04c60b
Put handle on top for vertical toolbar, Bug#7051.
...
* gtkutil.c (xg_pack_tool_bar): Call gtk_handle_box_set_handle_position
with argument top/left if tool bar is vertical/horizontal (Bug#7051).
2010-09-17 09:00:12 +02:00
Kenichi Handa
78a217725f
ftfont.c (ftfont_check_otf): Fix previous change.
2010-09-17 13:57:58 +09:00
Kenichi Handa
38d50547c2
merge trunk
2010-09-16 11:11:13 +09:00
Kenichi Handa
fa3f603990
ftfont.c (ftfont_check_otf): Fix the case of checking just existence of GSUB or GPOS.
2010-09-16 10:51:56 +09:00
Juanma Barranquero
3b59c3511c
Fix typos in comments and ChangeLogs.
2010-09-14 22:32:35 +02:00
Juanma Barranquero
2b5491fabb
src/cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
2010-09-14 22:17:28 +02:00
Lars Magne Ingebrigtsen
c97c655f5f
* xml.c (parse_string): Renamed to parse_string(), since that's
...
what it does.
(parse_string): Return nil when the document can't be parsed.
2010-09-14 20:37:26 +02:00
Juanma Barranquero
6664fc59a8
Merge changes from emacs-23 branch.
2010-09-14 16:41:53 +02:00
Andreas Schwab
1da70e9968
* xml.c (Fxml_parse_string, Fxml_parse_string): Revert last
...
change. Don't make first argument optional. Doc fix.
2010-09-14 09:53:39 +02:00
Lars Magne Ingebrigtsen
26632d8d41
* xml.c (Fxml_parse_string, Fhtml_parse_string): Fix up the parameters
...
for the doc string.
From Leo <sdl.web@gmail.com> (tiny change)
2010-09-14 02:08:02 +02:00
Lars Magne Ingebrigtsen
21fa8e37fd
* xml.c (Fhtml_parse_string, Fxml_parse_string): Mention BASE-URL.
2010-09-12 19:16:25 +02:00
Stefan Monnier
5616cc54c5
* lisp/subr.el (y-or-n-p): New function, moved from src/fns.c. Use read-key.
...
* src/fns.c (Fy_or_n_p): Move to lisp/subr.el.
(syms_of_fns): Don't defsubr Sy_or_n_p.
* src/lisp.h: Don't declare Fy_or_n_p.
* src/fileio.c (barf_or_query_if_file_exists): Fy_or_n_p -> y-or-n-p.
2010-09-12 16:35:37 +02:00
Jan D
5f61a25c8a
Fix bug 7013, only do send event if wanted state != current state.
...
* xterm.c (get_current_vm_state): New function.
(do_ewmh_fullscreen): Call get_current_vm_state and compare with
want_fullscreen so set_wm_state calls are few (Bug#7013).
(x_handle_net_wm_state): Move code to get_current_vm_state and
call that function.
2010-09-12 15:23:59 +02:00
Stefan Monnier
65c92e318d
Update name of <emacs-bugs-7626@cbane.org>
2010-09-12 14:29:25 +02:00
Anonymous
65b3d997c8
* src/term.c (tty_set_terminal_modes): Don't initialize twice (bug#7002).
2010-09-11 14:53:21 +02:00
Lars Magne Ingebrigtsen
8b620f1169
Remove some trailing white space.
2010-09-10 19:45:22 +02:00
Lars Magne Ingebrigtsen
381408e219
Add support for the libxml2 library.
...
This adds the html-parse-string and xml-parse-string functions in the
new file src/xml.c, as well as autoconf detection of the library.
2010-09-10 18:44:35 +02:00
Kenichi Handa
a552b35afa
coding.c (encode_coding_iso_2022): Do not optimize for ASCII if we may use designation or locking-shift.
2010-09-08 11:21:03 +09:00
Kenichi Handa
396475b7c1
coding.c (detect_coding_emacs_mule): Fix checking of multibyte sequence when the source is multibyte.
2010-09-07 20:08:46 +09:00
Juanma Barranquero
733946e777
Update to latest Unicode 6.0 beta data files.
...
* admin/unidata/BidiMirroring.txt: Update from
http://www.unicode.org/Public/6.0.0/ucd/BidiMirroring-6.0.0d2.txt
* admin/unidata/UnicodeData.txt: Update from
http://www.unicode.org/Public/6.0.0/ucd/UnicodeData-6.0.0d7.txt
* lisp/international/uni-bidi.el:
* lisp/international/uni-category.el:
* lisp/international/uni-combining.el:
* lisp/international/uni-decimal.el:
* lisp/international/uni-mirrored.el:
* lisp/international/uni-name.el: Regenerate.
* src/biditype.h: Regenerate.
2010-09-05 04:06:39 +02:00
Andreas Schwab
7574650a39
Check all lisp types in image loader
...
* nsimage.m (ns_load_image): Check argument types.
* image.c: Remove all uses of gcpro.
(xpm_load): Check all lisp types.
(pbm_load): Likewise.
(png_load): Likewise.
(jpeg_load): Likewise.
(tiff_load): Likewise.
(gif_load): Likewise.
(imagemagick_load_image): Likewise.
(imagemagick_load): Likewise.
(svg_load): Likewise.
(gs_load): Likewise.
2010-09-04 21:39:34 +02:00
Eli Zaretskii
6e6b8e25b1
Fix display of composed R2L text on MS-Windows.
...
w32uniscribe.c (uniscribe_shape): Update commentary. Don't
try to reorder grapheme clusters, since LGSTRING should always
hold them in the logical order.
(uniscribe_encode_char, uniscribe_shape): Force ScriptShape to
return glyph codes in the logical order.
2010-09-04 18:16:08 +03:00
Andreas Schwab
5e5992c20e
* image.c (Fimagemagick_types): Doc fix.
2010-09-04 12:43:43 +02:00
Andreas Schwab
b7d187f836
Fix type mismatch in ImageMagick loader
...
* image.c (imagemagick_load_image): Fix type mismatch.
(Fimagemagick_types): Likewise.
2010-09-04 12:41:52 +02:00
Andreas Schwab
dbfe4532cb
* image.c (imagemagick_image_p): Replace bcopy by memcpy.
2010-09-04 10:23:09 +02:00
Jan Djärv
6d7cc56382
Removed cut-buffer code.
...
* lisp/mouse-sel.el (mouse-sel-get-selection-function):
x-cut-buffer-or-selection-value renamed to x-selection-value.
(x-select-text): Optional push removed.
* lisp/select.el (x-get-cut-buffer, x-set-cut-buffer): Remove.
* lisp/simple.el (interprogram-cut-function): Remove mention of PUSH.
* lisp/w32-fns.el (x-last-selected-text):
x-cut-buffer-or-selection-value renamed to x-selection-value.
(x-cut-buffer-max): Remove.
(x-select-text): Remove argument PUSH, update documentation.
* lisp/emacs-lisp/cl-macs.el (x-get-cutbuffer, x-get-cut-buffer): Remove.
* lisp/term/ns-win.el (x-setup-function-keys, ns-last-selected-text):
x-cut-buffer-or-selection-value renamed to x-selection-value
(x-selection-value): Renamed from x-cut-buffer-or-selection-value.
(x-select-text): Remove argument PUSH, update documentation.
* lisp/term/pc-win.el (x-last-selected-text):
x-cut-buffer-or-selection-value renamed to x-selection-value
(x-select-text): Remove argument PUSH, update documentation.
* lisp/term/x-win.el: Update documentation for x-last-selected-text-*.
(x-last-selected-text-cut, x-last-selected-text-cut-encoded)
(x-last-cut-buffer-coding, x-cut-buffer-max): Remove.
(x-select-text): Remove argument PUSH, update documentation. Remove
cut-buffer code.
(x-selection-value-internal): Was previously x-selection-value.
(x-selection-value): Renamed from x-cut-buffer-or-selection-value.
Update documentation, remove cut-buffer code. Call
x-selection-value-internal.
(x-clipboard-yank): Call x-selection-value-internal.
(x-initialize-window-system): Remove setting of x-cut-buffer-max.
* src/xselect.c: Remove declaration of cut-buffer objects and functions.
(symbol_to_x_atom): Remove mapping to XA_CUT_BUFFERn.
(x_atom_to_symbol): Remove mapping to QCUT_BUFFERn.
(Fx_get_cut_buffer_internal, Fx_store_cut_buffer_internal)
(Fx_rotate_cut_buffers_internal): Remove.
(syms_of_xselect): Remove defsubr of above.
Remove intern of QCUT_BUFFERn.
* src/xterm.c (x_term_init): Don't set dpyinfo->cut_buffers_initialized.
* src/xterm.h (struct dpyinfo): Remove cut_buffers_initialized.
2010-09-02 11:47:08 +02:00
Kenichi Handa
7e7e8cfe01
merge trunk
2010-09-02 09:58:05 +09:00
Stefan Monnier
8f4e9110ca
* lisp/simple.el (blink-paren-function): Move from C to here.
...
(blink-paren-post-self-insert-function): New function.
(post-self-insert-hook): Use it.
* src/cmds.c (Vblink_paren_function): Remove.
(internal_self_insert): Make it insert N chars at a time.
Don't call blink-paren-function.
(Fself_insert_command): Adjust accordingly.
(syms_of_cmds): Don't declare blink-paren-function.
2010-09-01 16:41:17 +02:00