]> code.delx.au - gnu-emacs/log
gnu-emacs
13 years agoMerge from trunk
Stefan Monnier [Wed, 11 Aug 2010 05:42:48 +0000 (07:42 +0200)]
Merge from trunk

13 years agoFixed my ChangeLog entry of 2010-08-08
Ulf Jasper [Tue, 10 Aug 2010 18:01:18 +0000 (20:01 +0200)]
Fixed my ChangeLog entry of 2010-08-08

13 years ago* configure.in (AC_PREREQ): Require autoconf 2.65.
Dan Nicolaescu [Tue, 10 Aug 2010 14:22:29 +0000 (07:22 -0700)]
* configure.in (AC_PREREQ): Require autoconf 2.65.

13 years ago* lisp/emacs-lisp/pcase.el: New file.
Stefan Monnier [Tue, 10 Aug 2010 13:18:14 +0000 (15:18 +0200)]
* lisp/emacs-lisp/pcase.el: New file.

13 years ago* net/tramp.el (tramp-vc-registered-read-file-names): Read input
Michael Albinus [Tue, 10 Aug 2010 09:58:15 +0000 (11:58 +0200)]
* net/tramp.el (tramp-vc-registered-read-file-names): Read input
as here-document, otherwise the command could exceed maximum
length of command line.
(tramp-handle-vc-registered): Call script accordingly.  Reported
by Toru TSUNEYOSHI <t_tuneyosi@hotmail.com>.

13 years agomerge trunk
Kenichi Handa [Tue, 10 Aug 2010 01:24:32 +0000 (10:24 +0900)]
merge trunk

13 years agolanguage/hebrew.el: Exclude U+05C3 (Hebrew SOF PASUQ) from the composable pattern.
Kenichi Handa [Tue, 10 Aug 2010 01:20:58 +0000 (10:20 +0900)]
language/hebrew.el: Exclude U+05C3 (Hebrew SOF PASUQ) from the composable pattern.

13 years agoRemove incorrect const use.
Dan Nicolaescu [Mon, 9 Aug 2010 22:03:38 +0000 (15:03 -0700)]
Remove incorrect const use.
* src/font.h (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
(font_parse_name): font_open_by_name):
* src/font.c (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
(font_parse_name): font_open_by_name): Remove const.

13 years ago* configure.in (AC_PREREQ): Require autoconf 2.66 to stop version churn.
Dan Nicolaescu [Mon, 9 Aug 2010 20:01:51 +0000 (13:01 -0700)]
* configure.in (AC_PREREQ): Require autoconf 2.66 to stop version churn.

13 years agoUse autoconf determined WORDS_BIGENDIAN instead of hardcoded definition.
Andreas Schwab [Mon, 9 Aug 2010 19:25:41 +0000 (21:25 +0200)]
Use autoconf determined WORDS_BIGENDIAN instead of hardcoded definition.

* m/alpha.h: Don't define/undef WORDS_BIG_ENDIAN.
* m/amdx86-64.h: Likewise.
* m/arm.h: Likewise.
* m/hp800.h: Likewise.
* m/ia64.h: Likewise.
* m/ibmrs6000.h: Likewise.
* m/ibms390.h: Likewise.
* m/intel386.h: Likewise.
* m/iris4d.h: Likewise.
* m/m68k.h: Likewise.
* m/macppc.h: Likewise.
* m/mips.h: Likewise.
* m/sh3.h: Likewise.
* m/sparc.h: Likewise.
* m/template.h: Likewise.
* m/vax.h: Likewise.
* m/xtensa.h: Likewise.
* fringe.c (init_fringe_bitmap): Test WORDS_BIGENDIAN instead of
WORDS_BIG_ENDIAN.
* lisp.h: Likewise.
* md5.c: Likewise.
* sound.c (le2hl, le2hs, be2hl, be2hs): Likewise.

* CPP-DEFINES (WORDS_BIG_ENDIAN): Remove.

* configure.in: Add AC_C_BIGENDIAN.

13 years agoUse version-list-* functions in package.el.
Chong Yidong [Mon, 9 Aug 2010 18:05:56 +0000 (14:05 -0400)]
Use version-list-* functions in package.el.

* emacs-lisp/package-x.el (package-upload-buffer-internal): Use
version-to-list.
(package-upload-buffer-internal): Use version-list-<=.

* emacs-lisp/package.el (package-version-split)
(package--version-first-nonzero, package-version-compare):
Functions removed.
(package-directory-list, package-load-all-descriptors)
(package--built-in, package-activate, define-package)
(package-installed-p, package-compute-transaction)
(package-read-all-archive-contents)
(package--add-to-archive-contents, package-buffer-info)
(package-tar-file-info, package-list-packages-internal): Use
version-to-list and version-list-*.

13 years ago* configure.in (ORDINARY_LINK): Use on hpux* too.
Dan Nicolaescu [Mon, 9 Aug 2010 17:08:56 +0000 (10:08 -0700)]
* configure.in (ORDINARY_LINK): Use on hpux* too.

13 years agoFix typo in lisp/ChangeLog
Kenichi Handa [Mon, 9 Aug 2010 11:07:11 +0000 (20:07 +0900)]
Fix typo in lisp/ChangeLog

13 years agomerge trunk
Kenichi Handa [Mon, 9 Aug 2010 11:05:27 +0000 (20:05 +0900)]
merge trunk

13 years agoUse const char* instead of char*.
Dan Nicolaescu [Mon, 9 Aug 2010 09:35:21 +0000 (02:35 -0700)]
Use const char* instead of char*.
Reduce the number of warnings with -Wwrite-strings.
* src/xrdb.c (get_environ_db, get_system_name):
* src/unexelf.c (find_section):
* src/term.c (string_cost, string_cost_one_line, per_line_cost)
(get_named_tty, init_tty):
* src/sysdep.c (sys_subshell):
* src/sound.c (sound_perror, sound_warning, vox_open, vox_init)
(alsa_sound_perror, alsa_open, alsa_configure, alsa_init):
* src/search.c (Freplace_match):
* src/process.c (Fmake_network_process, send_process, init_process):
* src/lread.c (Fload, init_lread):
* src/keymap.c (Fdescribe_buffer_bindings, describe_map_tree):
* src/keyboard.c (parse_tool_bar_item, struct event_head):
* src/gtkutil.h (xg_get_font_name):
* src/gtkutil.c (get_dialog_title, create_dialog, xg_get_font_name)
(make_widget_for_menu_item, make_menu_item, create_menus)
(xg_make_tool_item):
* src/font.c (parse_matrix, font_parse_name):
* src/floatfns.c (rounding_driver, float_error_fn_name):
* src/filelock.c (get_boot_time_1, lock_file_1):
* src/fileio.c (barf_or_query_if_file_exists, check_writable):
* src/editfns.c (get_system_name, get_operating_system_release)
(Fencode_time, Fset_time_zone_rule):
* src/dispextern.h (string_cost, per_line_cost, get_named_tty, init_tty):
* src/buffer.c (defvar_per_buffer): Use const.

13 years agolanguage/hebrew.el: Exclude U+05BD (Hebre MAQAF) from the composable pattern.
Kenichi Handa [Mon, 9 Aug 2010 08:12:49 +0000 (17:12 +0900)]
language/hebrew.el: Exclude U+05BD (Hebre MAQAF) from the composable pattern.

13 years agocalc.texi (Customizing Calc): Rearrange description of new
Jay Belanger [Mon, 9 Aug 2010 02:30:10 +0000 (21:30 -0500)]
calc.texi (Customizing Calc): Rearrange description of new
variables to match the presentation of other variables.

13 years ago* tutorial.el (tutorial--default-keys): C-d is now bound to delete-forward-char.
Chong Yidong [Sun, 8 Aug 2010 23:14:33 +0000 (19:14 -0400)]
* tutorial.el (tutorial--default-keys): C-d is now bound to delete-forward-char.
(Bug#6826)

13 years agoFix typos in ChangeLogs.
Juanma Barranquero [Sun, 8 Aug 2010 23:05:49 +0000 (01:05 +0200)]
Fix typos in ChangeLogs.

13 years agoEnsure that erc-toggle-debug-irc-protocol logs protocol data.
Fran Litterio [Sun, 8 Aug 2010 22:13:53 +0000 (18:13 -0400)]
Ensure that erc-toggle-debug-irc-protocol logs protocol data.
http://lists.gnu.org/archive/html/emacs-devel/2010-07/msg01000.html

* erc-backend.el (erc-server-filter-function): Call
erc-log-irc-protocol.

* erc.el (erc-toggle-debug-irc-protocol): Bind
erc-toggle-debug-irc-protocol to t.

13 years agoFix 2010-07-03 change to mouse-drag-track.
Chong Yidong [Sun, 8 Aug 2010 21:57:34 +0000 (17:57 -0400)]
Fix 2010-07-03 change to mouse-drag-track.
* mouse.el (mouse-drag-track): Remove accidentally-removed check
for `double' value of mouse-1-click-follows-link (Bug#6807).

13 years agoMerge changes from emacs-23 branch.
Chong Yidong [Sun, 8 Aug 2010 21:15:44 +0000 (17:15 -0400)]
Merge changes from emacs-23 branch.

13 years agoMerge changes from emacs-23 branch
Chong Yidong [Sun, 8 Aug 2010 21:12:29 +0000 (17:12 -0400)]
Merge changes from emacs-23 branch

13 years agoUse const char* instead of char*.
Dan Nicolaescu [Sun, 8 Aug 2010 21:03:45 +0000 (14:03 -0700)]
Use const char* instead of char*.
* src/xterm.c (x_create_toolkit_scroll_bar):
* src/xfont.c (xfont_list_pattern):
* src/xfns.c (x_default_scroll_bar_color_parameter)
(xic_create_fontsetname, x_default_font_parameter)
(x_screen_planes):
* src/xdisp.c (c_string_pos, number_of_chars, reseat_to_string)
(store_mode_line_string, decode_mode_spec, display_string):
* src/menu.c (digest_single_submenu):
* src/keymap.h (initial_define_key, initial_define_lispy_key):
* src/keymap.c (initial_define_key, initial_define_lispy_key):
* src/image.c (image_error, image_keyword):
* src/gtkutil.h (xg_create_widget, xg_create_scroll_bar):
* src/gtkutil.c (xg_create_widget, xg_create_scroll_bar):
* src/ftfont.c (struct fc_charset_table, ftfont_spec_pattern)
(ftfont_list, ftfont_match):
* src/frame.c (frame_parm_table):
* src/font.h (font_intern_prop, font_parse_xlfd, font_parse_fcname)
(font_unparse_fcname, font_unparse_fcname, font_open_by_name)
(font_add_log, font_deferred_log):
* src/font.c (font_intern_prop, font_parse_xlfd, font_parse_fcname)
(font_unparse_fcname, font_unparse_fcname, font_open_by_name)
(font_add_log, font_deferred_log):
* src/emacs.c (argmatch):
* src/dispextern.h (struct it):
* src/coding.c (ENCODE_DESIGNATION):
* src/charset.c (define_charset_internal): Use const.

13 years agoFix query-replace-regexp incomplete highlighting (Bug#6808).
Johan Bockgård [Sun, 8 Aug 2010 20:55:52 +0000 (16:55 -0400)]
Fix query-replace-regexp incomplete highlighting (Bug#6808).

* replace.el (replace-highlight): Bind isearch-forward and
isearch-error, ensuring that highlighting is updated if the user
switches the search direction (Bug#6808).

* isearch.el (isearch-lazy-highlight-forward): New var.
(isearch-lazy-highlight-new-loop, isearch-lazy-highlight-search):
(isearch-lazy-highlight-update): Use it.

13 years ago* src/s/freebsd.h (DECLARE_GETPWUID_WITH_UID_T): Remove, unused.
Dan Nicolaescu [Sun, 8 Aug 2010 20:26:12 +0000 (13:26 -0700)]
* src/s/freebsd.h (DECLARE_GETPWUID_WITH_UID_T): Remove, unused.

13 years agoCleanup xrdb.c.
Dan Nicolaescu [Sun, 8 Aug 2010 20:16:48 +0000 (13:16 -0700)]
Cleanup xrdb.c.
* src/xrdb.c: Remove include guard.  Remove
DECLARE_GETPWUID_WITH_UID_T conditional it had no effect.
Remove #if 0 code.  Replace malloc->xmalloc, free->xfree,
realloc->xrealloc instead of using #defines.

13 years agoFixed bug#6766 (icalendar.el)
Ulf Jasper [Sun, 8 Aug 2010 17:42:47 +0000 (19:42 +0200)]
Fixed bug#6766 (icalendar.el)

lisp/ChangeLog:

* calendar/icalendar.el (icalendar-uid-format): Doc fix.
(icalendar--split-value): Fixed splitting regexp. (Bug#6766)
(icalendar--get-weekday-numbers): New
(icalendar--create-uid, icalendar-export-region)
(icalendar--parse-summary-and-rest): Code formatting.
(icalendar--convert-recurring-to-diary): Handle multiple byday
values in weekly rules. (Bug#6766)

test/ChangeLog:

* icalendar-testsuite.el (icalendar-testsuite-run): Added internal tests.
(icalendar-testsuite--trim, icalendar-testsuite--compare-strings)
(icalendar-testsuite--run-internal-tests): New.
(icalendar-testsuite--test-convert-ordinary-to-ical)
(icalendar-testsuite--test-convert-block-to-ical)
(icalendar-testsuite--test-convert-anniversary-to-ical)
(icalendar-testsuite--test-parse-vtimezone)
(icalendar-testsuite--do-test-export): Code formatting.
(icalendar-testsuite--test-parse-vtimezone): Doc fix.
(icalendar-testsuite--do-test-import)
(icalendar-testsuite--do-test-cycle): Use icalendar-testsuite--compare-strings
(icalendar-testsuite--run-import-tests): Comment added.
(icalendar-testsuite--run-import-tests)
(icalendar-testsuite--run-real-world-tests): Fixed expected results.

13 years agoMake some doc strings bidi-friendly.
Eli Zaretskii [Sun, 8 Aug 2010 16:43:26 +0000 (19:43 +0300)]
Make some doc strings bidi-friendly.

 cmds.c (Fforward_line, Fbeginning_of_line, Fend_of_line):
 editfns.c (Fline_beginning_position, Fline_end_position): State
 in the doc strings that start and end of line are in the logical order.

13 years agoFix overlay arrow display (bug #6699).
Eli Zaretskii [Sun, 8 Aug 2010 16:23:11 +0000 (19:23 +0300)]
Fix overlay arrow display (bug #6699).

 xdisp.c (display_line): Move the handling of overlay arrow after
 the call to find_row_edges.

13 years agocalc.el (calc-trail-mode,calc-refresh): Use `face' property to italicize headers.
Jay Belanger [Sun, 8 Aug 2010 03:04:57 +0000 (22:04 -0500)]
calc.el (calc-trail-mode,calc-refresh): Use `face' property to italicize headers.
(calc-highlight-selections-with-faces): New variable.
(calc-selected-face, calc-nonselected-face): New faces.

calccomp.el (math-comp-highlight-string): Use
`calc-highlight-selections-with-faces' to determine how to highlight
subformulas.

calc-sel.el (calc-show-selections): Change message to something
appropriate.

calc.texi (Making Selections, Selecting Subformulas)
(Customizing Calc): Mention how to use faces to emphasize selected
subformulas.

13 years ago* progmodes/sql.el (sql-mode-sqlite-font-lock-keywords): Added
Michael Mauger [Sat, 7 Aug 2010 23:57:07 +0000 (19:57 -0400)]
* progmodes/sql.el (sql-mode-sqlite-font-lock-keywords): Added
        SQLite 3 keywords, functions and datatypes.
        (sql-interactive-mode): Removed `comint-process-echoes' set to t
        (Bug#6686).

13 years agoAvoid restrictions when copying window selection.
Chong Yidong [Sat, 7 Aug 2010 20:26:55 +0000 (16:26 -0400)]
Avoid restrictions when copying window selection.
* src/keyboard.c (command_loop_1):
* src/insdel.c (prepare_to_modify_buffer): Don't call validate_region.

13 years agoFix last change.
Chong Yidong [Sat, 7 Aug 2010 20:10:30 +0000 (16:10 -0400)]
Fix last change.

13 years agoChange `select-active-region' mechanics.
Chong Yidong [Sat, 7 Aug 2010 19:39:04 +0000 (15:39 -0400)]
Change `select-active-region' mechanics.
Save region text prior to buffer modification.
Set window selection lazily, during `deactivate-mark' or after each
command when the region is temporarily active.

* lisp/cus-start.el: Add custom declaration for select-active-regions.

* lisp/mouse.el (mouse-drag-track): Remove hacks to deal with old
select-active-regions implementation.
(mouse-yank-at-click): Doc fix.

* lisp/simple.el (select-active-regions): Move to keyboard.c.
(deactivate-mark): Used saved-region-selection.
(select-active-region): Function removed.
(activate-mark, set-mark, push-mark-command)
(handle-shift-selection): Don't call it.
(keyboard-quit): Avoid adding the region to the window selection.

* src/insdel.c (prepare_to_modify_buffer): Save active region text to
Vsaved_region_selection.

* src/keyboard.c (Vselect_active_regions): Move from simple.el.
(Vsaved_region_selection, Qx_set_selection, QPRIMARY, Qlazy): New
vars.
(command_loop_1): Set window selection prior to deactivating the
mark.

* src/xselect.c (QPRIMARY): Move to keyboard.c.

13 years agoNEWS: Mention the Hebrew translation of the tutorial.
Eli Zaretskii [Sat, 7 Aug 2010 10:26:42 +0000 (13:26 +0300)]
NEWS: Mention the Hebrew translation of the tutorial.

13 years agosimple.el (delete-forward-char): Doc fix.
Eli Zaretskii [Sat, 7 Aug 2010 10:11:07 +0000 (13:11 +0300)]
simple.el (delete-forward-char): Doc fix.

13 years agoClean up TUTORIAL.he.
Eli Zaretskii [Sat, 7 Aug 2010 09:50:08 +0000 (12:50 +0300)]
Clean up TUTORIAL.he.

 tutorials/TUTORIAL.he: Don't use acronyms.

13 years agoEvaluate file-local variables in tutorials.
Eli Zaretskii [Sat, 7 Aug 2010 09:31:03 +0000 (12:31 +0300)]
Evaluate file-local variables in tutorials.

 tutorial.el (help-with-tutorial): Hack safe file-local variables
 after reading the tutorial.

13 years agoRemove duplicate declarations.
Juanma Barranquero [Sat, 7 Aug 2010 01:10:12 +0000 (03:10 +0200)]
Remove duplicate declarations.

* lib-src/ebrowse.c (usage, version, mark_virtual)
* src/alloc.c (lisp_malloc)
* src/buffer.c (set_buffer_internal, set_buffer_internal_1)
* src/charset.h (emacs_mule_charset)
* src/dispextern.h (inhibit_free_realized_faces, redraw_frame)
  (redraw_garbaged_frames, scroll_cost, update_frame, scrolling)
  (bitch_at_user)
* src/lisp.h (Fcheck_coding_system, Fget_text_property)
  (Qfunction, Qcompletion_ignore_case, QCwidth, QCsize)

13 years ago* src/process.c: Simplify include logic.
Dan Nicolaescu [Fri, 6 Aug 2010 20:08:26 +0000 (13:08 -0700)]
* src/process.c: Simplify include logic.

13 years ago* sysdep.c: Remove declarations.
Dan Nicolaescu [Fri, 6 Aug 2010 20:05:40 +0000 (13:05 -0700)]
* sysdep.c: Remove declarations.

13 years agoMove declarations to header files.
Dan Nicolaescu [Fri, 6 Aug 2010 19:52:47 +0000 (12:52 -0700)]
Move declarations to header files.
* src/keyboard.h (quit_char): Add declaration.
* src/process.h (QCport, QCspeed, QCprocess, QCbytesize, QCstopbits)
(QCparity, Qodd, Qeven, QCflowcontrol, Qhw, Qsw, QCsummary): Add
declarations.
* sysdep.c:
* src/w32.c: Remove the above declarations.

13 years agocc-cmds.el (c-mask-paragraph, c-fill-paragraph): Fix for the case that a
Alan Mackenzie [Fri, 6 Aug 2010 19:48:59 +0000 (19:48 +0000)]
cc-cmds.el (c-mask-paragraph, c-fill-paragraph): Fix for the case that a
C style comment has its delimiters alone on their respective lines.

13 years agoRemove extern declarations in .c files, .h files have them.
Dan Nicolaescu [Fri, 6 Aug 2010 19:07:16 +0000 (12:07 -0700)]
Remove extern declarations in .c files, .h files have them.
* src/xterm.c:
* src/xdisp.c:
* src/process.c:
* src/msdos.c:
* src/image.c:
* src/gtkutil.c:
* src/fileio.c:
* src/eval.c: Remove declarations.

13 years ago* src/frame.c (frame_params): Make const.
Dan Nicolaescu [Fri, 6 Aug 2010 19:01:35 +0000 (12:01 -0700)]
* src/frame.c (frame_params): Make const.

13 years ago* src/lisp.h (fatal_error_signal, emacs_root_dir): Add declaration.
Dan Nicolaescu [Fri, 6 Aug 2010 18:56:41 +0000 (11:56 -0700)]
* src/lisp.h (fatal_error_signal, emacs_root_dir): Add declaration.

13 years agoemacs.c cleanups.
Dan Nicolaescu [Fri, 6 Aug 2010 18:48:24 +0000 (11:48 -0700)]
emacs.c cleanups.
* src/emacs.c (emacs_copyright, emacs_version): Make static.
(Vinitial_window_system, Vauto_save_list_file_name)
(Vinhibit_redisplay): Remove declarations.
(main): Remove HAVE_SHM code, unused.  Remove _I386 conditional
for AIX.

13 years agoUse const for some arrays and functions.
Dan Nicolaescu [Fri, 6 Aug 2010 18:41:15 +0000 (11:41 -0700)]
Use const for some arrays and functions.
* src/xterm.h (xg_set_icon_from_xpm_data):
* src/xfns.c (xg_set_icon_from_xpm_data):
* src/term.c (fkeys):
* src/keyboard.c (lispy_accent_keys, lispy_function_keys)
(lispy_multimedia_keys, lispy_kana_keys, iso_lispy_function_keys)
(lispy_drag_n_drop_names, scroll_bar_parts, modify_event_symbol)
(frame.c frame_parms):
* src/emacs-icon.h (gnu_xpm_bits):
* src/callint.c (callint_argfuns): Use const.

13 years ago* src/sysdep.c: Move include term.h last of includes (Bug#6812).
Jan D [Fri, 6 Aug 2010 17:38:01 +0000 (19:38 +0200)]
* src/sysdep.c: Move include term.h last of includes (Bug#6812).

13 years agoxdisp.c (display_line): Fix a typo in a comment.
Eli Zaretskii [Fri, 6 Aug 2010 15:53:11 +0000 (18:53 +0300)]
xdisp.c (display_line): Fix a typo in a comment.

13 years agoFix redisplay bugs due to uninitialized glyphs.
Eli Zaretskii [Fri, 6 Aug 2010 15:05:21 +0000 (18:05 +0300)]
Fix redisplay bugs due to uninitialized glyphs.
Add diagnostics tools.

 dispnew.c (realloc_glyph_pool): Zero out newly allocated glyphs.
 msdos.c (IT_display_cursor): Log cursor position on termscript.
 .gdbinit (pgx): Display the avoid_cursor_p flag.

13 years agoFix redisplay bugs due to uninitialized glyphs in frame glyph pool.
Eli Zaretskii [Fri, 6 Aug 2010 14:54:06 +0000 (17:54 +0300)]
Fix redisplay bugs due to uninitialized glyphs in frame glyph pool.

 dispnew.c (realloc_glyph_pool): Zero out newly allocated glyphs.
 msdos.c (IT_display_cursor): Log cursor position on termscript.
 .gdbinit (pgx): Display the avoid_cursor_p flag.

13 years ago* net/tramp.el (tramp-handle-start-file-process ): Set connection
Michael Albinus [Fri, 6 Aug 2010 14:34:23 +0000 (16:34 +0200)]
* net/tramp.el (tramp-handle-start-file-process ): Set connection
property "vec".
(tramp-process-sentinel): Use it for flushing the cache.  We
cannot do it via the process buffer, the buffer could be deleted
already when running the sentinel.

13 years ago* comint.el (comint-mode): Make directory tracking functions
Michael Albinus [Fri, 6 Aug 2010 13:53:59 +0000 (15:53 +0200)]
* comint.el (comint-mode): Make directory tracking functions
functional on remote files.  (Bug#6764)

13 years agosrc/ChangeLog: Fix typos.
Juanma Barranquero [Fri, 6 Aug 2010 12:35:00 +0000 (14:35 +0200)]
src/ChangeLog: Fix typos.

13 years agosrc/makefile.w32-in ($(BLD)/xdisp.$(O)): Update dependencies.
Juanma Barranquero [Fri, 6 Aug 2010 12:25:10 +0000 (14:25 +0200)]
src/makefile.w32-in ($(BLD)/xdisp.$(O)): Update dependencies.

13 years agoMore undeclared function fixes and add -Wimplicit-function-declaration.
Jan D [Fri, 6 Aug 2010 11:28:59 +0000 (13:28 +0200)]
More undeclared function fixes and add -Wimplicit-function-declaration.

If a function returns Lisp_Object it must be declared, otherwise on a 64-bit
system, it will return just 32 bits (int).

* configure.in: Use -Wimplicit-function-declaration if compiler supports it.

* src/keyboard.h (poll_for_input_1): Unconditionally declare.

* src/xterm.h (x_get_focus_frame): Declare.

13 years agoCan't include menu.h in window.c for X targets.
Jan D [Fri, 6 Aug 2010 11:04:29 +0000 (13:04 +0200)]
Can't include menu.h in window.c for X targets.

* nsterm.h (x_set_menu_bar_lines): Declare.

* window.c: Don't include menu.h, it depends on lots of other .h-files.

13 years agoFix missing prototypes for HAVE_NS (caused crash) and vrious warnings.
Jan D [Fri, 6 Aug 2010 10:12:41 +0000 (12:12 +0200)]
Fix missing prototypes for HAVE_NS (caused crash) and vrious warnings.

* configure.in: Check for util.h.

* src/bidi.c (bidi_dump_cached_states): Fix fprintf warning.

* src/emacs.c: Include src/nsterm.h if HAVE_NS.

* src/image.c (xpm_scan, xpm_make_color_table_v)
(xpm_put_color_table_v, xpm_get_color_table_v)
(xpm_make_color_table_h, xpm_put_color_table_h)
(xpm_get_color_table_h, xpm_str_to_color_key, xpm_load_image)
(xpm_load): Convert to ANSI C prototypes.

* src/lisp.h (fmod_float): Declare.

* src/menu.h (x_set_menu_bar_line): Declare.
(free_menubar_widget_value_tree et.al): Add HAVE_NS for these functions.

* src/window.c: Include menu.h.

* src/nsfns.m (have_menus_p, ns_display_info_for_name)
(x_set_cursor_type, ns_appkit_version_str)
(ns_appkit_version_int, ns_do_applescript)
(x_set_scroll_bar_default_width, x_sync, compute_tip_xy)
(syms_of_nsfns): Convert to ANSI C prototypes.

* src/nsfont.m (ns_fallback_entity, syms_of_nsfont): Convert to ANSI C
prototypes.

* src/nsimage.m (ns_load_image): Move NSTRACE after declarations.

* src/nsmenu.m (popup_activated, name_is_separator)
(syms_of_nsmenu): Convert to ANSI C prototypes.
(runMenuAt): Prototypes and move declarations before code.

* src/nsterm.h : Include sysselect.h.
(x_sync, x_get_focus_frame, x_set_mouse_position)
(x_set_mouse_pixel_position, x_make_frame_visible)
(x_make_frame_invisible, x_iconify_frame, x_char_width, x_char_height)
(x_pixel_width, x_pixel_height, x_set_frame_alpha, x_set_tool_bar_lines)
(x_activate_menubar, free_frame_menubar, ns_init_paths, ns_select)
(syms_of_nsterm, syms_of_nsfns, syms_of_nsmenu, syms_of_nsselect):
Declare

* src/process.c: Check HAVE_UTIL_H. Include src/nsterm.h if HAVE_NS.

* src/nsterm.m (ns_init_paths, ns_alloc_autorelease_pool)
(ns_ring_bell, ns_defined_color, hide_hourglass)
(x_display_pixel_height, x_display_pixel_width, syms_of_nsterm):
Convert to ANSI C prototypes.
(x_set_window_size, ns_draw_fringe_bitmap, judge): Move declarations
before code.

* src/sysdep.c: Check HAVE_TERM_H

* src/term.c: Check HAVE_SYS_IOCTL_H.

* src/unexmacosx.c (print_region_list, print_regions)
(build_region_list, find_emacs_zone_regions)
(unexec_regions_merge, read_load_commands, dump_it)
(unexec_init_emacs_zone): Convert to ANSI C prototypes.

* src/xfaces.c (x_create_gc, x_free_gc): Convert to ANSI C prototypes.

13 years agomerge trunk
Kenichi Handa [Fri, 6 Aug 2010 08:15:12 +0000 (17:15 +0900)]
merge trunk

13 years agoImprove the encoding by compound-text-with-extensions.
Kenichi Handa [Fri, 6 Aug 2010 08:11:19 +0000 (17:11 +0900)]
Improve the encoding by compound-text-with-extensions.

13 years agoemacsclient.c cleanups.
Dan Nicolaescu [Fri, 6 Aug 2010 04:09:54 +0000 (21:09 -0700)]
emacsclient.c cleanups.
* lib-src/emacsclient.c: Move socket related #includes together with the
rest of the #includes.  Move a WINDOWSNT includes closer together.
(HAVE_CONFIG_H): Remove.
(NO_RETURN): Remove, defined in config.h.
(main): Convert definition to standard C.

13 years ago* lisp/vc/diff-mode.el (diff-mode-shared-map): Bind g to revert-buffer.
Dan Nicolaescu [Fri, 6 Aug 2010 04:01:00 +0000 (21:01 -0700)]
* lisp/vc/diff-mode.el (diff-mode-shared-map): Bind g to revert-buffer.

13 years agomerge trunk
Kenichi Handa [Fri, 6 Aug 2010 03:54:13 +0000 (12:54 +0900)]
merge trunk

13 years ago(rfc2047-encode): Use utf-8 charset as a last resort.
Katsumi Yamaoka [Fri, 6 Aug 2010 03:43:29 +0000 (03:43 +0000)]
(rfc2047-encode): Use utf-8 charset as a last resort.

13 years agosrc/ChangeLog: Fix entry.
Juanma Barranquero [Fri, 6 Aug 2010 00:44:56 +0000 (02:44 +0200)]
src/ChangeLog: Fix entry.

13 years agoCleanup process.c.
Dan Nicolaescu [Fri, 6 Aug 2010 00:36:12 +0000 (17:36 -0700)]
Cleanup process.c.
* src/process.c: Remove HAVE_SOCKETS #ifdefs inside #ifdef
subprocesses, only MSDOS does not define HAVE_SOCKETS.
(socket_options): Use const char* for name.

13 years agoFix changes in 2010-08-05T23:15:24Z!dann@ics.uci.edu..2010-08-05T23:34:12Z!dann@ics...
Juanma Barranquero [Fri, 6 Aug 2010 00:16:24 +0000 (02:16 +0200)]
Fix changes in 2010-08-05T23:15:24Z!dann@ics.uci.edu..2010-08-05T23:34:12Z!dann@ics.uci.edu for Windows build.

* dired.c (compile_pattern):
* syssignal.h (signal_handler_t): Restore declarations.

* w32font.c (Qlatin): Remove declaration.

* menu.h (xmalloc_widget_value, digest_single_submenu): Declare.
* xmenu.c [USE_X_TOOLKIT || USE_GTK]:
  Don't declare xmalloc_widget_value and digest_single_submenu.

13 years ago* src/syssignal.h (signal_handler_t): Restore accidentally removed definition.
Dan Nicolaescu [Fri, 6 Aug 2010 00:07:36 +0000 (17:07 -0700)]
* src/syssignal.h (signal_handler_t): Restore accidentally removed definition.

13 years agoRemove extern declarations in .c files, .h files have them.
Dan Nicolaescu [Thu, 5 Aug 2010 23:34:12 +0000 (16:34 -0700)]
Remove extern declarations in .c files, .h files have them.
* src/data.c:
* src/dired.c:
* src/editfns.c:
* src/filelock.c:
* src/fns.c:
* src/font.c:
* src/fontset.c:
* src/frame.c:
* src/fringe.c:
* src/ftfont.c:
* src/gtkutil.c:
* src/indent.c:
* src/keyboard.c:
* src/keymap.c:
* src/lread.c:
* src/menu.c:
* src/print.c:
* src/search.c:
* src/sound.c:
* src/window.c:
* src/xdisp.c:
* src/xfaces.c:
* src/xfns.c:
* src/xfont.c:
* src/xftfont.c:
* src/xmenu.c:
* src/xterm.c: Remove declarations.

13 years agoCleanup syssignal.h.
Dan Nicolaescu [Thu, 5 Aug 2010 23:22:18 +0000 (16:22 -0700)]
Cleanup syssignal.h.
* src/syssignal.h (sighold, sigrelse, RETSIGTYPE): Remove, unused.
(main_thread): Move down to remove #ifdef.
(SIGMASKTYPE, SIGEMPTYMASK, SIGFULLMASK, sigmask, sigunblock):
Remove conditional definition following unconditional ones.

13 years agoAdd declarations to header files.
Dan Nicolaescu [Thu, 5 Aug 2010 23:15:24 +0000 (16:15 -0700)]
Add declarations to header files.
* src/keyboard.h (xmalloc_widget_value, digest_single_submenu): Remove
declarations, menu.h has them.
(QCbutton, QCtoggle, QCradio, QClabel, extra_keyboard_modifiers)
(Vinput_method_function, Qinput_method_function)
(Qevent_symbol_element_mask, last_event_timestamp):
* src/dispextern.h (Voverflow_newline_into_fringe):
* src/font.h (QCantialias, Qp, syms_of_ftfont, syms_of_xfns)
(syms_of_ftxfont, syms_of_xftfont, syms_of_bdffont)
(syms_of_w32font, syms_of_nsfont):
* src/fontset.h (find_font_encoding, Qlatin):
* src/frame.h (Qtooltip, Qrun_hook_with_args, Vmenu_bar_mode)
(Vtool_bar_mode, set_frame_menubar):
* src/ftfont.h (ftfont_font_format, ftfont_get_fc_charset):
* src/xterm.h (Qx_gtk_map_stock):
* src/keymap.h (meta_prefix_char): Add declarations.

* src/lisp.h: Remove HAVE_SHM code, unused.
(QCmap, QCrehash_size, QCrehash_threshold, QCsize, QCtest)
(QCweakness, Qabove_handle, Qbackquote, Qbar, Qbelow_handle)
(Qborder, Qbottom, Qbox, Qcircular_list, Qcomma, Qcomma_at)
(Qcomma_dot, Qcursor, Qdefault, Qdown, Qend_scroll, Qeq, Qeql)
(Qequal, Qfile_exists_p, Qfont_param, Qfringe, Qfunction)
(Qfunction_documentation, Qhandle, Qhbar, Qheader_line, Qhollow)
(Qidentity, Qleft_margin, Qmenu, Qmenu_bar_update_hook)
(Qmode_line_inactive, Qmouse, Qoverriding_local_map)
(Qoverriding_terminal_local_map, Qratio, Qregion, Qright_margin)
(Qscroll_bar, Qtool_bar, Qtop, Qup, Qvertical_border, Qwhen)
(Qwindow_scroll_functions, Vafter_load_alist)
(Vauto_save_list_file_name, Vface_alternative_font_family_alist)
(Vface_alternative_font_registry_alist, Vface_font_rescale_alist)
(Vface_ignored_fonts, Vinhibit_redisplay, Vminibuffer_list)
(Vprint_length, Vprint_level, Vscalable_fonts_allowed)
(Vshell_file_name, Vsystem_name, Vwindow_scroll_functions)
(Vwindow_system_version, Vx_no_window_manager, initial_argc)
(initial_argv, last_nonmenu_event, load_in_progress)
(noninteractive_need_newline, scroll_margin): Add declarations.

13 years ago* src/term.c: Remove dead code.
Dan Nicolaescu [Thu, 5 Aug 2010 22:23:53 +0000 (15:23 -0700)]
* src/term.c: Remove dead code.

13 years agoFix emacs -Q -f server-start & emacsclient -t on GNU/Linux.
Dan Nicolaescu [Thu, 5 Aug 2010 22:20:09 +0000 (15:20 -0700)]
Fix emacs -Q -f server-start & emacsclient -t on GNU/Linux.
* src/term.c (dissociate_if_controlling_tty): Use USG5 instead of
USG.  This is equivalent to defined (USG) && !defined (BSD_PGRPS),
which is what was there before BSD_PGRPS was removed.

13 years ago* emulation/pc-select.el: Fix typos in docstrings.
Juanma Barranquero [Thu, 5 Aug 2010 21:31:03 +0000 (23:31 +0200)]
* emulation/pc-select.el: Fix typos in docstrings.

13 years agoRegenerate configure.
Dan Nicolaescu [Thu, 5 Aug 2010 18:30:35 +0000 (11:30 -0700)]
Regenerate configure.

13 years agoREALLY rename src/unexec.c => src/unexcoff.c.
Eli Zaretskii [Thu, 5 Aug 2010 17:22:34 +0000 (20:22 +0300)]
REALLY rename src/unexec.c => src/unexcoff.c.

 admin/MAINTAINERS: Rename src/unexec.c => src/unexcoff.c.

13 years agoRename src/unexec.c => src/unexcoff.c.
Eli Zaretskii [Thu, 5 Aug 2010 17:11:32 +0000 (20:11 +0300)]
Rename src/unexec.c => src/unexcoff.c.

 src/unexcoff.c: Renamed from unexec.c.
 src/deps.mk (unexcoff.o): Rename unexec.[co] => unexcoff.[co].
 configure.in (UNEXEC_OBJ): Rename unexec.o => unexcoff.o.
 admin/MAINTAINERS: Rename src/unexec.c => src/unexcoff.c.
 etc/AUTHORS: Rename unexec.o => unexcoff.o.
 etc/PROBLEMS: Rename unexec.o => unex*.o.
 lisp/emacs-lisp/find-gc.el (find-gc-source-files): Rename
 unexec.c => unexcoff.c.
 lisp/emacs-lisp/authors.el (authors-fixed-entries): Rename
 unexec.c => unexcoff.c.
 msdos/sed1v2.inp (UNEXEC_OBJ): Edit to unexcoff.o, due to renaming of
 unexec.c => unexcoff.c.

13 years ago* tramp.texi (External packages): File attributes cache flushing
Michael Albinus [Thu, 5 Aug 2010 13:51:21 +0000 (15:51 +0200)]
* tramp.texi (External packages): File attributes cache flushing
for asynchronous processes.

13 years ago* net/tramp.el (tramp-handle-dired-uncache): Flush directory
Michael Albinus [Thu, 5 Aug 2010 08:15:22 +0000 (10:15 +0200)]
* net/tramp.el (tramp-handle-dired-uncache): Flush directory
cache, not only file cache.
(tramp-process-sentinel): New defun.
(tramp-handle-start-file-process): Use it, in order to invalidate
file caches.

13 years agoFix compilation error.
Nick Roberts [Thu, 5 Aug 2010 05:18:55 +0000 (17:18 +1200)]
Fix compilation error.

13 years ago* configure.in: Restore accidentally removed use of
Andreas Schwab [Wed, 4 Aug 2010 21:48:36 +0000 (23:48 +0200)]
* configure.in: Restore accidentally removed use of
GCC_TEST_OPTIONS/NON_GCC_TEST_OPTIONS.

13 years ago* src/sysdep.c (child_setup_tty): Comment-out left-over non-ICANON code.
Stefan Monnier [Wed, 4 Aug 2010 18:10:07 +0000 (20:10 +0200)]
* src/sysdep.c (child_setup_tty): Comment-out left-over non-ICANON code.

13 years ago* lisp/simple.el (exchange-dot-and-mark): Mark obsolete, finally.
Stefan Monnier [Wed, 4 Aug 2010 18:04:29 +0000 (20:04 +0200)]
* lisp/simple.el (exchange-dot-and-mark): Mark obsolete, finally.

13 years agoModify the coding system compound-text-with-extensions to conform to the spec of...
Kenichi Handa [Wed, 4 Aug 2010 08:06:52 +0000 (17:06 +0900)]
Modify the coding system compound-text-with-extensions to conform to the spec of Compound Text.

13 years agosrc/ChangeLog: Add missing bug reference.
Juanma Barranquero [Tue, 3 Aug 2010 21:54:16 +0000 (23:54 +0200)]
src/ChangeLog: Add missing bug reference.

13 years agowhich-func.el (which-func-format): Split help-echo text into lines.
Juanma Barranquero [Tue, 3 Aug 2010 16:39:37 +0000 (18:39 +0200)]
which-func.el (which-func-format): Split help-echo text into lines.

13 years ago* src/data.c (Flocal_variable_p): Handle variable aliases correctly.
Johan Bockgård [Tue, 3 Aug 2010 16:37:00 +0000 (18:37 +0200)]
* src/data.c (Flocal_variable_p): Handle variable aliases correctly.

13 years ago* server.el (server-start): Force IPv4 and use literal 127.0.0.1.
Juanma Barranquero [Tue, 3 Aug 2010 13:04:20 +0000 (15:04 +0200)]
* server.el (server-start): Force IPv4 and use literal 127.0.0.1.

13 years ago* server.el (server-start): Simplify loop.
Leo Liu [Tue, 3 Aug 2010 12:22:23 +0000 (14:22 +0200)]
* server.el (server-start): Simplify loop.

13 years agont/config.nt (TIME_WITH_SYS_TIME): Remove #undef, unused (bug#6754).
Juanma Barranquero [Mon, 2 Aug 2010 23:20:48 +0000 (01:20 +0200)]
nt/config.nt (TIME_WITH_SYS_TIME): Remove #undef, unused (bug#6754).

13 years ago* lisp/frame.el (screen-height, screen-width, set-screen-width)
Stefan Monnier [Mon, 2 Aug 2010 22:35:38 +0000 (00:35 +0200)]
* lisp/frame.el (screen-height, screen-width, set-screen-width)
(set-screen-height): Remove ancient compatibility aliases.

13 years agont/cmdproxy.c (main): Use _snprintf instead of wsprintf (bug#6647).
Óscar Fuentes [Mon, 2 Aug 2010 19:35:28 +0000 (21:35 +0200)]
nt/cmdproxy.c (main): Use _snprintf instead of wsprintf (bug#6647).

13 years ago* bindings.el (complete-symbol): Run completion-at-point as a fallback.
Stefan Monnier [Mon, 2 Aug 2010 14:23:50 +0000 (16:23 +0200)]
* bindings.el (complete-symbol): Run completion-at-point as a fallback.

13 years ago* xterm.c (x_create_toolkit_scroll_bar): Only set XtNbeNiceToColormap
Jan Djärv [Mon, 2 Aug 2010 14:23:06 +0000 (16:23 +0200)]
* xterm.c (x_create_toolkit_scroll_bar): Only set XtNbeNiceToColormap
to TRUE if depth of screen is < 16.

13 years agoDon't use Gtk+ tooltip unless Gtk+ version => 2.14.
Jan Djärv [Mon, 2 Aug 2010 12:50:03 +0000 (14:50 +0200)]
Don't use Gtk+ tooltip unless Gtk+ version => 2.14.

* gtkutil.c (hierarchy_ch_cb, qttip_cb): Do not define unless
USE_GTK_TOOLTIP.
(xg_prepare_tooltip): Return 0 unless USE_GTK_TOOLTIP
(xg_show_tooltip, xg_hide_tooltip): Do nothing unless
USE_GTK_TOOLTIP.
(xg_create_frame_widgets): Surrond tooltip-related code with ifdef
USE_GTK_TOOLTIP.
(xg_free_frame_widgets): Don't delete ttip_* unless USE_GTK_TOOLTIP.

* xterm.h (USE_GTK_TOOLTIP): New define.
(struct x_output): Put ttip_* inside ifdef USE_GTK_TOOLTIP.

13 years ago* lispref/control.texi (Handling Errors) <error-message-string>: Fix arg name.
Stefan Monnier [Mon, 2 Aug 2010 10:35:34 +0000 (12:35 +0200)]
* lispref/control.texi (Handling Errors) <error-message-string>: Fix arg name.

Fixes: debbugs:6770
13 years ago* lisp/textmodes/fill.el (justify-current-line): Don't add 1 to nspaces
Stefan Monnier [Mon, 2 Aug 2010 10:25:27 +0000 (12:25 +0200)]
* lisp/textmodes/fill.el (justify-current-line): Don't add 1 to nspaces
when justifying.  It seems useless and harmful for ncols=1.

Fixes: debbugs:6738
13 years ago* lisp/emacs-lisp/timer.el (timer-event-handler): Protect against timers
Stefan Monnier [Mon, 2 Aug 2010 09:00:46 +0000 (11:00 +0200)]
* lisp/emacs-lisp/timer.el (timer-event-handler): Protect against timers
that change current buffer.