1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-29 08:31:35 -08:00
Commit graph

29541 commits

Author SHA1 Message Date
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
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
Kenichi Handa
9e69cb054d merge changes in emacs-23 branch 2010-09-01 16:13:21 +09:00
Stefan Monnier
b819f760b1 * src/keyboard.c (Fwindow_system): Fix compilation for USE_LISP_UNION_TYPE. 2010-08-31 21:42:39 +02:00
Chong Yidong
07fa68a7e8 * src/keyboard.c (command_loop_1): Don't call x-set-selection on tty. 2010-08-31 11:39:31 -04:00
Kenichi Handa
d419e1d94e Fix handling of 8-bit characters in a display table. 2010-08-31 16:49:21 +09:00
Stefan Monnier
cd196f1256 * src/marker.c (Fcopy_marker): Make the first arg optional. 2010-08-30 14:47:49 +02:00
Kenichi Handa
63257f6c19 composite.c (composition_update_it): Fix previous change 2010-08-30 10:58:52 +09:00
Kenichi Handa
49a752bbf9 composite.c (composition_update_it): Fix computing of cmp_it->width. 2010-08-30 09:32:29 +09:00
Jan D
4520b858c1 * nsterm.m (ns_draw_window_cursor): Draw BAR_CURSOR correct for R2L. 2010-08-29 12:30:45 +02:00
Kenichi Handa
769ae9e16f term.c (encode_terminal_code): Encode byte chars to the correspnding bytes. 2010-08-29 14:15:34 +09:00
Kenichi Handa
fe50eb41ea xdisp.c (compute_stop_pos): Pay attention to bidi scan direction on calling composition_compute_stop_pos. 2010-08-26 09:47:34 +09:00
Kenichi Handa
9dfdbc0ad5 fontset.c (reorder_font_vector): Prefer a font-spec specifying :otf. 2010-08-25 14:58:15 +09:00
Kenichi Handa
f6aa6ec68e Allow composition striding over PT. 2010-08-25 13:39:30 +09:00
Kenichi Handa
8809a9f997 merge trunk 2010-08-25 12:49:02 +09:00
Kenichi Handa
ff94e32cb3 Fix finding a stop position for composition. 2010-08-25 09:54:05 +09:00
Chong Yidong
1c409d0b96 Avoid clobbering primary selection when switching frames (Bug#6872).
* lisp/mouse.el (mouse-yank-primary): Avoid setting primary when
deactivating the mark (Bug#6872).

* src/keyboard.c (command_loop_1): Don't set primary selection during
handle-switch-frame (Bug#6872).
2010-08-24 11:48:14 -04:00
Michael Albinus
0c37265543 * dbusbind.c: Accept UNIX domain sockets as bus address.
(Fdbus_close_bus): New function.
(Vdbus_registered_buses): New variable.
(xd_initialize): Implement string as bus address.
(Fdbus_init_bus): Add bus to Vdbus_registered_buses).
(Fdbus_get_unique_name, Fdbus_call_method)
(Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
(Fdbus_method_error_internal, Fdbus_send_signal)
(Fdbus_register_signal, Fdbus_register_method): Remove bus type
check.  This is done in xd_initialize_bus.  Adapt doc string, if
necessary.
(xd_pending_messages, xd_read_queued_messages): Loop over buses in
Vdbus_registered_buses.
(Vdbus_registered_objects_table): Create hash.
2010-08-23 15:02:00 +02:00
Juanma Barranquero
692f3ddcd0 src/ChangeLog: Fix typos. 2010-08-23 12:28:12 +02:00
Juri Linkov
7133b7ee62 Move reading an extended command to Elisp (bug#5364, bug#5214).
* lisp/simple.el (read-extended-command): New function with the logic
for `completing-read' moved to Elisp from `execute-extended-command'.
Use `function-called-at-point' in `minibuffer-default-add-function'
to get a command name for M-n (bug#5364, bug#5214).

* src/keyboard.c (Fexecute_extended_command): Move reading a command name
with `completing-read' to a new Elisp function `read-extended-command'.
Call it to read a command to `function'  (bug#5364, bug#5214).
2010-08-23 00:27:59 +01:00
Chong Yidong
198a7a97ff Make obsolete --unibyte argument do nothing (Bug#6886).
* src/emacs.c (main): Remove --unibyte handling (Bug#6886).

* lisp/startup.el (command-line-1): Issue warning for ignored arguments
--unibyte, etc (Bug#6886).

* doc/lispref/nonascii.texi (Text Representations):
* doc/lispref/loading.texi (Loading Non-ASCII):
* doc/lispref/compile.texi (Byte Compilation): Don't mention obsolete
--unibyte command-line argument.
2010-08-22 17:15:20 -04:00
Chong Yidong
b0126eac41 Merge changes from emacs-23 branch. 2010-08-22 16:02:16 -04:00
Eli Zaretskii
b613941ba0 Fix dependencies according to 2010-08-22T15:14:37Z!dann@ics.uci.edu.
deps.mk (sysdep.o, msdos.o): Depend on sysselect.h.
2010-08-22 20:18:52 +03:00
Eli Zaretskii
a583bbef0e Fix the w32 build after 2010-08-22T15:14:37Z!dann@ics.uci.edu.
sysselect.h [WINDOWSNT]: Don't define the FD_* and select stuff for w32.
 s/ms-w32.h (HAVE_SYS_TIMEB_H): Don't #undef HAVE_SYS_SELECT_H, it's done
 in nt/config.nt.
 makefile.w32-in ($(BLD)/sysdep.$(O)): Depend on sysselect.h.
2010-08-22 20:00:08 +03:00
Eli Zaretskii
22eec92494 Clean up and ANSIfy unexcoff.c.
unexcoff.c (report_error, make_hdr, write_segment)
 (copy_text_and_data, copy_sym, mark_x, adjust_lnnoptrs, unexec):
 Convert argument lists and prototypes to ANSI C.
 (make_hdr, write_segment): Remove unused variables.
 (unexec): Remove commented-out line.  Initialize `new' to shut up
 compiler warnings.
2010-08-22 18:43:00 +03:00
Eli Zaretskii
5f2f0bc11e Clean up unexcoff.c.
unexcoff.c (report_error, make_hdr, write_segment)
 (copy_text_and_data, copy_sym, mark_x, adjust_lnnoptrs, unexec):
 Convert argument lists and prototypes to ANSI C.
 (make_hdr, write_segment): Remove unused variables.
 (unexec): Remove commented-out line.  Initialize `new' to shut up
 compiler warnings.
2010-08-22 18:37:01 +03:00
Dan Nicolaescu
a7ebc40927 Simplify termio code.
All non-MSDOS non-WINDOWSNT platforms define HAVE_TERMIOS, so
HAVE_TERMIO code is obsolete.
Replace HAVE_TERMIOS conditionals with !DOS_NT.
* src/systty.h: Do not define HAVE_TCATTR.
Remove HAVE_TERMIO, HAVE_LTCHARS and HAVE_TCHARS code.
Do not define EMACS_HAVE_TTY_PGRP.  Only define
EMACS_GET_TTY_PGRP for !DOS_NT.
* src/sysdep.c: Include sysselect.h unconditionally.  Do not include
sys/ioctl.h and termios.h, systty.h does it.  Use
HAVE_SYS_UTSNAME_H instead of USG as an include guard.
(init_baud_rate): Remove HAVE_TERMIO code.
(child_setup_tty): Remove HAVE_TERMIO code.
(emacs_get_tty, emacs_set_tty): Remove HAVE_TERMIO, HAVE_TCHARS
and HAVE_LTCHARS code.  Use !DOS_NT instead of HAVE_TCATTR.
(new_ltchars, new_tchars): Remove, unused.
(init_sys_modes): Remove HAVE_TERMIO, HAVE_TCHARS and HAVE_LTCHARS
code.  Remove special casing for __mips__, it was a no-op.  Remove
HAVE_TCATTR conditional, it is implied by HAVE_TERMIOS.
(init_sys_modes): Remove HPUX special case.
* src/process.c: Include stdlib.h unconditionally.  Do not include
fcntl.h, systty.h does it.  Remove conditional code for
HAVE_SERIAL, it is always true.
(process_send_signal): Remove HAVE_TERMIOS conditional, it's
always true when SIGNALS_VIA_CHARACTERS is true.
(Fcontinue_process, Fprocess_send_eof): Simplify conditionals:
!WINDOWSNT means HAVE_TERMIOS.
(create_process): Remove HAVE_TERMIOS, it's inside a HAVE_PTYS
conditional, which is true for all HAVE_TERMIOS systems.
* src/keyboard.c (init_keyboard): Do not use HAVE_TERMIO, use !DOS_NT
instead of HAVE_TERMIOS.
* src/emacs.c (shut_down_emacs): Use !defined DOS_NT instead of
EMACS_HAVE_TTY_PGRP.
* src/callproc.c (child_setup): Move EMACS_SET_TTY_PGRP use to the
non-MSDOS, non-WINDOWSNT code, it's only defined for such systems
anyway.
2010-08-22 08:14:37 -07:00
Eli Zaretskii
0deaf02ae1 xdisp.c: Fix typo in a comment in note_tool_bar_highlight. 2010-08-21 16:25:03 +03:00
Eli Zaretskii
40629f171b Fix mirroring pixel positions on GUI terminals.
dispnew.c (buffer_posn_from_coords): Fix off-by-one error in
 mirroring pixel positions.
2010-08-21 12:35:31 +03:00
Glenn Morris
0c9b8993e0 ChangeLog fixes. 2010-08-20 19:21:51 -07:00
Dan Nicolaescu
b5c76d0c4f Remove unused variables malloc_sbrk_used and malloc_sbrk_unused.
* src/alloc.c (malloc_sbrk_used, malloc_sbrk_unused): Remove,
write only.
(init_alloc_once): Remove writes to malloc_sbrk_unused, and
malloc_sbrk_used, nothing uses them.
2010-08-20 16:02:11 -07:00
Dan Nicolaescu
748155880f Small src/puresize.h cleanup.
* src/puresize.h: Remove code assuming PNTR_COMPARISON_TYPE is not
defined, unconditionally defined in lisp.h.
2010-08-20 15:52:10 -07:00
Dan Nicolaescu
f5817d1cb5 * src/term.c: Do not include <termios.h>, systty.h does it. 2010-08-20 15:44:38 -07:00
Dan Nicolaescu
d931da8c2a Remove redundant HAVE_TCATTR defines.
* src/s/unixware.h (HAVE_TCATTR):
* src/s/aix4-2.h (HAVE_TCATTR): Remove definitions, not needed.
systty.h defines it when HAVE_TERMIOS is defined.
2010-08-20 15:36:07 -07:00
Eli Zaretskii
00c5399425 Fix last change in buffer_posn_from_coords for text terminals.
dispnew.c (buffer_posn_from_coords): Add one-character offset for R2L lines.
2010-08-21 00:01:36 +03:00
Eli Zaretskii
b43c883c71 Fix last change in buffer_posn_from_coords for text terminals.
dispnew.c (buffer_posn_from_coords): Add one-character offset for R2L lines.
2010-08-20 23:55:09 +03:00
Joakim Verona
38f9163d62 merge from upstream 2010-08-20 22:00:00 +02:00
Joakim Verona
ccd8061864 minor imagemagick tweaks, one configure bugfix, and some ChangeLogs 2010-08-20 21:55:21 +02:00
Eli Zaretskii
ff2de6d2bb Fix version string in top-level MSDOS Makefile.
msdos/mainmake.v2 (version): Update due to change in emacs.c.
 src/emacs.c <emacs_version>: Add a comment regarding msdos/mainmake.v2's
 dependency on the syntax of this declaration.
2010-08-20 22:49:20 +03:00
Eli Zaretskii
491a154635 Fix version string in top-level MSDOS Makefile.
msods/mainmake.v2 (version): Update due to change in emacs.c.
 src/emacs.c <emacs_version>: Add a comment regarding msdos/mainmake.v2's
 dependency on the syntax of this declaration.
2010-08-20 22:45:24 +03:00
Eli Zaretskii
c30b8a12a4 xdisp.c: Add commentary about iterator geometry in R2L paragraphs. 2010-08-20 17:31:38 +03:00
Eli Zaretskii
2396cbba62 Fix mouse clicks, drag, and highlight in R2L lines.
dispnew.c (buffer_posn_from_coords): Fix calculation of buffer
 position for R2L lines by mirroring the pixel position wrt the
 text are box.  Improve commentary.
2010-08-20 17:19:39 +03:00