bpt/emacs.git
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 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 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): 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 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* 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.

13 years agoEnable ICANON (Bug#6771). Any long line problem must be solved differently.
Jan Djärv [Mon, 2 Aug 2010 07:03:12 +0000 (09:03 +0200)]
Enable ICANON (Bug#6771).  Any long line problem must be solved differently.

There is AFAIK no bug report or test case for the long line problem.

* sysdep.c (child_setup_tty): Enable ICANON in lflags and set VEOF
to Control-D (Bug#6771).

13 years ago* editfns.c (Fregion_beginning, Fregion_end): Doc fixes (bug#6493).
Juanma Barranquero [Mon, 2 Aug 2010 06:42:03 +0000 (08:42 +0200)]
* editfns.c (Fregion_beginning, Fregion_end): Doc fixes (bug#6493).

13 years agoFix last nnmail-get-new-mail-1 change that caused double encoding in XEmacs.
Katsumi Yamaoka [Sun, 1 Aug 2010 23:49:32 +0000 (23:49 +0000)]
Fix last nnmail-get-new-mail-1 change that caused double encoding in XEmacs.

2010-08-01  Katsumi Yamaoka  <yamaoka@jpl.org>
 * nnmail.el (nnmail-get-new-mail-1): Revert.
 * nnml.el (nnml-active-number): Make sure names of newly created groups
 in nnml-group-alist are encoded.

13 years agoEnhance CC Mode manual to cover the new Java features.
Alan Mackenzie [Sun, 1 Aug 2010 18:07:10 +0000 (18:07 +0000)]
Enhance CC Mode manual to cover the new Java features.

13 years agomouse.el: Match "mouse-2" at the beginning of the string. (Bug#6765)
YAMAMOTO Mitsuharu [Sun, 1 Aug 2010 16:48:15 +0000 (18:48 +0200)]
mouse.el: Match "mouse-2" at the beginning of the string.  (Bug#6765)

13 years agoUse Gtk+ tooltips by default for Gtk+ Emacs.
Jan D [Sun, 1 Aug 2010 13:57:07 +0000 (15:57 +0200)]
Use Gtk+ tooltips by default for Gtk+ Emacs.

* lisp/cus-start.el (x-gtk-use-system-tooltips): New variable.

* src/gtkutil.c (hierarchy_ch_cb, qttip_cb, xg_prepare_tooltip)
(xg_show_tooltip, xg_hide_tooltip, xg_free_frame_widgets): New
functions.
(xg_create_frame_widgets): Set ttip_* to 0.  Set a dummy tooltip
text so qttip_cb is called.  Connect query-tooltip to qttip_cb.
Remove code that is commented out.

* src/gtkutil.h (xg_free_frame_widgets, xg_prepare_tooltip)
(xg_show_tooltip, xg_hide_tooltip): Declare.

* src/xfns.c (x_gtk_use_system_tooltips): New variable.
(Fx_show_tip): If USE_GTK and x_gtk_use_system_tooltips, call
new gtkutil tooltip functions to show the tooltip.
(Fx_hide_tip): Call xg_hide_tooltip.
(syms_of_xfns): Defvar x-gtk-use-system-tooltips.

* src/xterm.c (x_clear_frame): Check FRAME_GTK_WIDGET (f) before
calling gtk_widget_queue_draw.
(x_free_frame_resources): Call xg_free_frame_widgets.

* src/xterm.h (struct x_output): Add ttip_widget, ttip_window and
ttip_lbl.

13 years agoFix typos in ChangeLogs.
Juanma Barranquero [Sun, 1 Aug 2010 04:37:41 +0000 (06:37 +0200)]
Fix typos in ChangeLogs.

13 years agoPackage listing tweaks.
Chong Yidong [Sun, 1 Aug 2010 00:38:19 +0000 (20:38 -0400)]
Package listing tweaks.

* emacs-lisp/package.el (package--list-packages): Fix column
alignment.
(package--builtins): Tweak descriptions.
(package-print-package): Upcase descriptions if necessary.  Show
all built-in packages in font-lock-builtin-face.
(package-list-packages-internal): Omit "emacs" package.  Show
status of built-in packages as "built-in".

13 years ago* src/keymap.c (Fdefine_key, Flookup_key): Say what event is invalid.
Stefan Monnier [Sun, 1 Aug 2010 00:14:14 +0000 (02:14 +0200)]
* src/keymap.c (Fdefine_key, Flookup_key): Say what event is invalid.

13 years agoAdapt mouse-3 behavior to recent selection changes (Bug#6701).
Chong Yidong [Sat, 31 Jul 2010 21:26:56 +0000 (17:26 -0400)]
Adapt mouse-3 behavior to recent selection changes (Bug#6701).

* lisp/mouse.el (mouse-save-then-kill): Doc fix.  Deactivate mark
before killing to preserve the primary selection.

* lisp/term/x-win.el (x-select-text): Doc fix.

* src/xselect.c (x_own_selection): Use list4.

13 years agoEnhance Java Mode to handle Java 5.0 (Tiger) and Java 6 (Mustang).
Alan Mackenzie [Sat, 31 Jul 2010 20:01:08 +0000 (20:01 +0000)]
Enhance Java Mode to handle Java 5.0 (Tiger) and Java 6 (Mustang).
Contributed by Nathaniel Flath.

13 years ago* faces.el (face-all-attributes): Improved documentation (Bug#6767).
Jan D [Sat, 31 Jul 2010 17:21:16 +0000 (19:21 +0200)]
* faces.el (face-all-attributes): Improved documentation (Bug#6767).

13 years agoAdd more index entries for large-file-warning-threshold.
Eli Zaretskii [Sat, 31 Jul 2010 17:13:03 +0000 (20:13 +0300)]
Add more index entries for large-file-warning-threshold.

 files.texi (Visiting): Add more index entries for
 large-file-warning-threshold.

13 years agoAdd a Hebrew translation of the tutorial.
Eli Zaretskii [Sat, 31 Jul 2010 15:46:58 +0000 (18:46 +0300)]
Add a Hebrew translation of the tutorial.

 etc/tutorials/TUTORIAL.he: New file.
 etc/tutorials/TUTORIAL.translators: Add TUTORIAL.he.
 lisp/files.el (bidi-paragraph-direction): Define safe local values.
 lisp/language/hebrew.el ("Hebrew"): Add TUTORIAL.he to
 language-info-alist.  Remove outdated FIXME in a comment.

13 years agocc-cmds.el (c-mask-paragraph): Fix bug #6688, Auto-fill broken in C/C++
Alan Mackenzie [Sat, 31 Jul 2010 09:39:24 +0000 (09:39 +0000)]
cc-cmds.el (c-mask-paragraph): Fix bug #6688, Auto-fill broken in C/C++
modes.

13 years ago* src/buffer.c (Qwindow): Do not define, already defined in data.c.
Dan Nicolaescu [Fri, 30 Jul 2010 04:42:38 +0000 (21:42 -0700)]
* src/buffer.c (Qwindow): Do not define, already defined in data.c.
(syms_of_buffer): Do not intern and staticpro Qwindow.  (Bug#6760)

13 years agoEncode names of nnml groups that nnmail-get-new-mail creates in active file.
Katsumi Yamaoka [Fri, 30 Jul 2010 02:01:04 +0000 (02:01 +0000)]
Encode names of nnml groups that nnmail-get-new-mail creates in active file.

2010-07-30  Katsumi Yamaoka  <yamaoka@jpl.org>
 * nnmail.el (nnmail-get-new-mail-1): Encode group names possibly
 containing non-ASCII characters in active file for nnml back end.

13 years agoFix typos in ChangeLogs.
Juanma Barranquero [Thu, 29 Jul 2010 20:16:18 +0000 (22:16 +0200)]
Fix typos in ChangeLogs.

13 years agoReplace tests for SYSV_SYSTEM_DIR with HAVE_DIRENT_H, set via autoconf
Jan D [Thu, 29 Jul 2010 20:01:08 +0000 (22:01 +0200)]
Replace tests for SYSV_SYSTEM_DIR with HAVE_DIRENT_H, set via autoconf

* configure.in: Check for dirent.h

* dired.c, sysdep.c: test HAVE_DIRENT_H instead of SYSV_SYSTEM_DIR

* s/aix4-2.h, s/bsd-common.h, s/cygwin.h, s/gnu-linux.h,
  s/msdos.h, s/usg5-4.h: don't define SYSV_SYSTEM_DIR

* sed2v2.inp (HAVE_DIRENT_H): Edit to 1

13 years agoRename s/usg5-4.h -> s/usg5-4-common.h.
Dan Nicolaescu [Thu, 29 Jul 2010 18:34:39 +0000 (11:34 -0700)]
Rename s/usg5-4.h -> s/usg5-4-common.h.
* s/usg5-4.h: Rename file to ...
* src/s/usg5-4-common.h: ... this for consistency with what we do for BSD.
* src/s/unixware.h:
* src/s/sol2-6.h:
* src/s/irix6-5.h: Update includes accordingly.

13 years ago* xfns.c (x_set_tool_bar_position): Remove debug fprintf.
Jan D [Thu, 29 Jul 2010 18:08:51 +0000 (20:08 +0200)]
* xfns.c (x_set_tool_bar_position): Remove debug fprintf.

13 years agoAdd doc and NEWS for tool-bar-position.
Jan Djärv [Thu, 29 Jul 2010 17:10:41 +0000 (19:10 +0200)]
Add doc and NEWS for tool-bar-position.

* doc/emacs/frames.texi (Tool Bars): Add doc for tool-bar-position.

* doc/lispref/frames.texi (Layout Parameters): Add doc for tool-bar-position.

13 years agoAdd ability to put Gtk+ tool bar on the left/right/bottom or top. Default top.
Jan Djärv [Thu, 29 Jul 2010 16:49:59 +0000 (18:49 +0200)]
Add ability to put Gtk+ tool bar on the left/right/bottom or top.  Default top.

* lisp/menu-bar.el (menu-bar-showhide-tool-bar-menu-customize-enable-left)
(menu-bar-showhide-tool-bar-menu-customize-disable)
(menu-bar-showhide-tool-bar-menu-customize-enable-right)
(menu-bar-showhide-tool-bar-menu-customize-enable-top)
(menu-bar-showhide-tool-bar-menu-customize-enable-bottom): New functions
(menu-bar-showhide-tool-bar-menu): If tool bar is moveable,
make a menu for Options => toolbar that can move it.

* src/frame.c (Qtool_bar_position): New variable.
(make_frame): Set tool_bar_position to Qtop.
(frame_parms): Add tool-bar-position.
(x_report_frame_params): Store tool_bar_position.
(x_set_fringe_width): Reset wm size hint after fringe changes.

* src/frame.h (struct frame): Add tool_bar_position.
(Qbottom): Declare.

* src/gtkutil.c (FRAME_TOTAL_PIXEL_WIDTH): New macro.
(xg_frame_set_char_size): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
(xg_height_or_width_changed): Use FRAME_TOTAL_PIXEL_WIDTH.
(xg_create_frame_widgets): Create a hobox for placing widgets
vertically.  Use gtk_box_pack_start.
(xg_height_or_width_changed): Renamed from xg_height_changed.
(x_wm_set_size_hint): Add FRAME_TOOLBAR_WIDTH to base_width.
(xg_update_frame_menubar, free_frame_menubar): Change to
xg_height_or_width_changed.
(xg_tool_bar_detach_callback): Update left/right/top/bottom tool bar
size correctly.  Remove hardcoded 4, instead use handlebox size -
toolbar size.
(xg_tool_bar_attach_callback): Update left/right/top/bottom tool bar
size correctly.  Use handlebox size + toolbar size as additional
size.
(xg_pack_tool_bar): POS is a new parameter.
Set orientation of tool bar based on pos.
Only make handlebox_widget if NULL.
Check if tool bar goes to vbox or hbox depending on pos.
(xg_update_tool_bar_sizes): New function.
(update_frame_tool_bar): Remove old_req, new_req. Do not get tool bar
height, call xg_update_tool_bar_sizes instead.
(free_frame_tool_bar): Remove from hbox or vbox depending on
toolbar_in_hbox,  Set all FRAME_TOOLBAR_*_(WIDTH|HEIGHT) to zero.
(xg_change_toolbar_position): New function.

* src/gtkutil.h (xg_change_toolbar_position): Declare.

* src/window.c (calc_absolute_offset): Check for FRAME_TOOLBAR_TOP_HEIGHT
and FRAME_TOOLBAR_LEFT_WIDTH.

* src/xfns.c (x_set_tool_bar_position): New function.
(xic_set_statusarea): Use FRAME_TOOLBAR_TOP_HEIGHT.
(x_frame_parm_handlers): Add x_set_tool_bar_position.
(syms_of_xfns): if USE_GTK, provide move-toolbar.

* src/xterm.c (x_set_window_size_1): Add FRAME_TOOLBAR_WIDTH to pixelwidth.

* src/xterm.h (struct x_output): Add toolbar_top_height,
toolbar_bottom_height, toolbar_left_width, toolbar_right_width.  Remove
toolbar_height.
if USE_GTK: Add hbox_widget and toolbar_in_hbox.
(FRAME_TOOLBAR_TOP_HEIGHT, FRAME_TOOLBAR_BOTTOM_HEIGHT)
(FRAME_TOOLBAR_LEFT_WIDTH, FRAME_TOOLBAR_RIGHT_WIDTH): New macros.
(FRAME_TOOLBAR_HEIGHT): Is now TOP_HEIGHT + BOTTOM_HEIGHT.

13 years agoUpdate package-x to latest package.el changes.
Chong Yidong [Thu, 29 Jul 2010 16:01:14 +0000 (12:01 -0400)]
Update package-x to latest package.el changes.

* emacs-lisp/package-x.el (package--make-rss-entry):
(package-maint-add-news-item, package--update-news)
(package-upload-buffer-internal): New arg ARCHIVE-URL.

* emacs-lisp/package.el (package-archive-url): Rename from
package-archive-id.
(package-install): Doc fix.
(package-download-single, package-download-tar, package-install)
(package-menu-view-commentary): Callers changed.

13 years agoMake lisp_time_argument work on all systems.
Dan Nicolaescu [Thu, 29 Jul 2010 15:50:04 +0000 (08:50 -0700)]
Make lisp_time_argument work on all systems.
* src/lisp.h (lisp_time_argument): Move declaration ...
* src/systime.h (lisp_time_argument): ... here
* src/editfns.c (lisp_time_argument): Remove declaration.  (Bug#6751)

13 years ago* processes.texi (Process Information): Explain process property
Michael Albinus [Thu, 29 Jul 2010 13:54:03 +0000 (15:54 +0200)]
* processes.texi (Process Information): Explain process property
`remote-tty'.

13 years ago* net/tramp.el (tramp-handle-start-file-process): Check only for
Michael Albinus [Thu, 29 Jul 2010 13:13:11 +0000 (15:13 +0200)]
* net/tramp.el (tramp-handle-start-file-process): Check only for
`remote-tty' process property.
(tramp-open-shell): Don't check for tty.
(tramp-open-connection-setup-interactive-shell): Set `remote-tty'
process property.

* progmodes/gdb-mi.el (gdb-init-1): Check also for tty on a remote
host.

13 years agoFix some stuff that didn't compile.
Jan Djärv [Thu, 29 Jul 2010 06:59:29 +0000 (08:59 +0200)]
Fix some stuff that didn't compile.

* frame.h (Qtty_color_mode): Move declaration out of HAVE_WINDOW_SYSTEM.

* vm-limit.c (POINTER): Add typedef for it.
(start_of_data): Change return type from POINTER to char *.

13 years ago* src/vm-limit.c: Do not include sys/resource.h, mem-limits.h does it.
Dan Nicolaescu [Thu, 29 Jul 2010 06:12:38 +0000 (23:12 -0700)]
* src/vm-limit.c: Do not include sys/resource.h, mem-limits.h does it.
Remove reference to __osf__, unused.

13 years ago* src/mem-limits.h: Remove duplicated includes.
Dan Nicolaescu [Thu, 29 Jul 2010 05:58:58 +0000 (22:58 -0700)]
* src/mem-limits.h: Remove duplicated includes.
(NULL): Remove definition, unused.
(POINTER): Remove definition.
(start_of_data): Use char* in prototype, as the function
definition does.

13 years agoRemove extern declarations from .c files, and them to .h files.
Dan Nicolaescu [Thu, 29 Jul 2010 05:48:06 +0000 (22:48 -0700)]
Remove extern declarations from .c files, and them to .h files.
* src/xsmfns.c (Vuser_login_name):
* src/xrdb.c (Vdouble_click_time):
* src/xfaces.c (xic_create_fontsetname):
* src/w32select.c (waiting_for_input):
* src/print.c (minibuffer_auto_raise):
* src/msdos.c (Qhelp_echo):
* src/macros.c (real_this_command):
* src/keymap.c (Voverriding_local_map):
* src/xterm.c (poll_for_input_1, gray_bitmap_width)
(gray_bitmap_height, gray_bitmap_bits;
* src/xmenu.c ( Voverriding_local_map)
(Voverriding_local_map_menu_flag; Qmenu_item; use_dialog_box)
(use_file_dialog, Xt_app_con):
* src/xdisp.c (minibuffer_auto_raise, Voverriding_local_map)
(Voverriding_local_map_menu_flag, Qmenu_item, Qface, Qinvisible)
(Qwidth, Qinvisible, Qwindow, Qpriority, Qtool_bar_lines)
(Qtool_bar_lines, ignore_mouse_drag_p):
* src/minibuf.c (Voverriding_local_map, Qfield, Qfront_sticky)
(Qrear_nonsticky, nconc2):
* src/keyboard.c (current_global_map, minibuf_level, Qmenu_item)
(Vhistory_length, Vtranslation_table_for_input, Qcomposition)
(Qdisplay, Qafter_string, Qbefore_string, Qundefined):
* src/fileio.c (use_dialog_box, use_file_dialog, Vuser_login_name)
(minibuf_level, minibuffer_auto_raise, lisp_time_argument):
* src/eval.c (Qinteractive_form, Qrisky_local_variable, Qfunction)
(gc_in_progress):
* src/doc.c (Voverriding_local_map, Qremap):
* src/dired.c (completion_ignore_case, Qcompletion_ignore_case)
(Vcompletion_regexp_list):
* src/coding.c (Qmac, Qinsert_file_contents, Qwrite_region)
(Qcompletion_ignore_case):
* src/callint.c (Qcursor_in_echo_area, Qfile_directory_p, Qonly)
(Vhistory_length, Vthis_original_command, real_this_command)
(Qface, Qminibuffer_prompt, history_delete_duplicates):
* src/image.c (Qrisky_local_variable):
* src/fontset.c (QCname):
* src/fns.c (minibuffer_auto_raise, QCname):
* src/dispnew.c (char_ins_del_cost):
* src/composite.c (font_fill_lglyph_metrics):
* src/cmds.c (Qface, Vtranslation_table_for_input):
* src/charset.c (map_char_table_for_charset, Qfile_name_handler_alist):
* src/ccl.c (charset_unicode):
* src/callproc.c (Vtemporary_file_directory):
* src/buffer.c (emacs_strerror): Remove extern declarations.

Remove extern declarations from .c files, and them to .h files.
* src/keyboard.h (Qhelp_echo, waiting_for_input)
(input_available_clear_time, ignore_mouse_drag_p)
(Vdouble_click_time, real_this_command, Vthis_original_command):
* src/keymap.h (Qremap, Qmenu_item, Voverriding_local_map)
(Voverriding_local_map_menu_flag):
* src/lisp.h (Qinteractive_form, use_file_dialog)
(Qcursor_in_echo_area, QCascent, QCmargin, QCrelief, Qcount)
(Qextension_data, QCconversion, QCcolor_symbols, QCheuristic_mask)
(QCindex, QCmatrix, QCcolor_adjustment, QCmask)
(Qrisky_local_variable, map_char_table_for_charset, Vprint_level)
(Qfunction, debug_on_next_call, Qfield)
(Vinhibit_field_text_motion, Vuser_login_name, lisp_time_argument)
(Qpriority, Qwindow, Qevaporate, Qbefore_string, Qafter_string)
(Qfile_directory_p, Qinsert_file_contents)
(Qcompletion_ignore_case, Qcompletion_ignore_case)
(Vcompletion_regexp_list, Vhistory_length, completion_ignore_case)
(history_delete_duplicates, minibuffer_auto_raise, Qonly)
(Qfile_name_handler_alist, Qfront_sticky, Qrear_nonsticky)
(Qminibuffer_prompt)
(Vtemporary_file_directory,char_ins_del_vector, Qface):
* src/xterm.h (gray_bitmap_width, gray_bitmap_height)
(gray_bitmap_bits, xic_create_fontsetname):
* src/coding.h (Vtranslation_table_for_input): Add extern declarations.

* src/data.c (Qwindow): Make non-static, used from other files too.
* src/frame.c (validate_x_resource_name): Remove shadow definition for i.

13 years ago* lwlib/xlwmenu.c (abort_gracefully): Mark as NO_RETURN.
Dan Nicolaescu [Thu, 29 Jul 2010 04:16:23 +0000 (21:16 -0700)]
* lwlib/xlwmenu.c (abort_gracefully): Mark as NO_RETURN.

13 years ago* configure.in: Remove reference to usg5-4, unused.
Dan Nicolaescu [Thu, 29 Jul 2010 03:41:28 +0000 (20:41 -0700)]
* configure.in: Remove reference to usg5-4, unused.

13 years agoClean up unexec.c, remove references to unused code.
Dan Nicolaescu [Thu, 29 Jul 2010 03:25:08 +0000 (20:25 -0700)]
Clean up unexec.c, remove references to unused code.
* nt/config.nt: Remove code referring to NO_REMAP, unused.

* src/unexec.c (make_hdr): Remove references to NO_REMAP, COFF,
SEGMENT_MASK, SECTION_ALIGNMENT, ADJUST_EXEC_HEADER.
* src/s/usg5-4.h (COFF):
* src/s/template.h:
* src/s/msdos.h (COFF, NO_REMAP):
* src/s/ms-w32.h (NO_REMAP):
* src/s/hpux10-20.h (NO_REMAP):
* src/m/sparc.h (SEGMENT_MASK):
* src/m/m68k.h (NO_REMAP):
* src/m/intel386.h (SEGMENT_MASK):
* src/m/arm.h (NO_REMAP):
* src/m/alpha.h (COFF):
* src/m/template.h: Remove references to unused defines.

13 years agoFix typos in ChangeLogs.
Juanma Barranquero [Thu, 29 Jul 2010 02:42:53 +0000 (04:42 +0200)]
Fix typos in ChangeLogs.

13 years ago* make-docfile.c (write_c_args): Warn for old-style empty arglist ().
Juanma Barranquero [Thu, 29 Jul 2010 02:11:23 +0000 (04:11 +0200)]
* make-docfile.c (write_c_args): Warn for old-style empty arglist ().

13 years agoAdd support for non-default package repositories.
Phil Hagelberg [Wed, 28 Jul 2010 18:54:42 +0000 (14:54 -0400)]
Add support for non-default package repositories.

* lisp/emacs-lisp/package.el (package-archive-base): Var deleted.
(package-archives): New variable.
(package-archive-contents): Doc fix.
(package-load-descriptor): Do nothing if descriptor file is
missing.
(package--write-file-no-coding): New function.
(package-unpack-single): Use it.
(package-archive-id): New function.
(package-download-single, package-download-tar)
(package-menu-view-commentary): Use it.
(package-installed-p): Make second argument optional.
(package-read-all-archive-contents): New function.
(package-initialize): Use it.
(package-read-archive-contents): Add ARCHIVE argument.
(package--add-to-archive-contents): New function.
(package-install): Don't call package-read-archive-contents.
(package--download-one-archive): Store archive file in a
subdirectory of package-user-dir.
(package-menu-execute): Remove spurious line movement.

* lisp/emacs-lisp/package.el (package-load-list, package-archives)
(package-archive-contents, package-user-dir)
(package-directory-list, package--builtins, package-alist)
(package-activated-list, package-obsolete-alist): Mark as risky.

13 years agoAdd tool bar style text-image-horiz (text to the left of the image).
Jan Djärv [Wed, 28 Jul 2010 17:34:51 +0000 (19:34 +0200)]
Add tool bar style text-image-horiz (text to the left of the image).

* lisp/cus-start.el (tool-bar-style): Add text-image-horiz.

* src/gtkutil.c (xg_make_tool_item, xg_show_toolbar_item): Handle tool bar
style text_image_horiz.

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

* src/xdisp.c (Qtext_image_horiz): Define.
(syms_of_xdisp): Initialize Qtext_image_horiz.  Add text-image-horiz
to ducumentation of tool-bar-style.

* src/xsettings.c (Ftool_bar_get_system_style): Also check for
Qtext_image_horiz.

13 years ago* tramp.texi (Traces and Profiles): Describe verbose level 9.
Michael Albinus [Wed, 28 Jul 2010 10:25:38 +0000 (12:25 +0200)]
* tramp.texi (Traces and Profiles): Describe verbose level 9.

13 years ago* progmodes/gud.el (gud-common-init): Check for remoteness of
Michael Albinus [Wed, 28 Jul 2010 10:08:16 +0000 (12:08 +0200)]
* progmodes/gud.el (gud-common-init): Check for remoteness of
`file', and not of `default-directory'.

13 years ago* net/tramp.el (tramp-methods): Move hostname to the end in all
Michael Albinus [Wed, 28 Jul 2010 10:02:18 +0000 (12:02 +0200)]
* net/tramp.el (tramp-methods): Move hostname to the end in all
ssh `tramp-login-args'.
(tramp-verbose): Describe verbose level 9.
(tramp-open-shell): Check for tty if `tramp-verbose' >= 9.
(tramp-open-connection-setup-interactive-shell): Trace stty
settings if `tramp-verbose' >= 9.
(tramp-handle-start-file-process): Implement tty setting.
(Bug#4604, Bug#6360)

* net/tramp-cmds.el (tramp-bug): Recommend setting of
`tramp-verbose' to 9.

13 years ago* emacs-lisp/re-builder.el: Remove references to package `lisp-re' (bug#4369).
Aaron S. Hawley [Tue, 27 Jul 2010 23:38:46 +0000 (01:38 +0200)]
* emacs-lisp/re-builder.el: Remove references to package `lisp-re' (bug#4369).

13 years agoDerive programming modes from prog-mode.
Tom Tromey [Tue, 27 Jul 2010 16:37:25 +0000 (18:37 +0200)]
Derive programming modes from prog-mode.
* progmodes/js.el (js-mode):
* progmodes/make-mode.el (makefile-mode):
* progmodes/simula.el (simula-mode):
* progmodes/tcl.el (tcl-mode): Derive from prog-mode.

13 years ago* src/emacs.c (Fkill_emacs): Remove return statement.
Dan Nicolaescu [Tue, 27 Jul 2010 08:02:44 +0000 (01:02 -0700)]
* src/emacs.c (Fkill_emacs): Remove return statement.

13 years agoRemove declarations and unused variables.
Dan Nicolaescu [Tue, 27 Jul 2010 04:20:51 +0000 (21:20 -0700)]
Remove declarations and unused variables.
* src/term.c (Qspace, QCalign_to, QCwidth): Remove declarations.
(encode_terminal_code, produce_composite_glyph): Remove unused variables.
(set_tty_color_mode, term_mouse_highlight, term_get_fkeys): Remove
local extern declarations.

13 years ago* src/xmenu.c: Do not included lwlib.h, not needed.
Dan Nicolaescu [Tue, 27 Jul 2010 04:12:42 +0000 (21:12 -0700)]
* src/xmenu.c: Do not included lwlib.h, not needed.

13 years ago* src/m/iris4d.h (XUINT, XSET): Remove, not needed.
Dan Nicolaescu [Tue, 27 Jul 2010 04:03:14 +0000 (21:03 -0700)]
* src/m/iris4d.h (XUINT, XSET): Remove, not needed.

13 years ago* src/process.c: Move definitions earlier to minimize #ifdefs.
Dan Nicolaescu [Tue, 27 Jul 2010 03:59:42 +0000 (20:59 -0700)]
* src/process.c: Move definitions earlier to minimize #ifdefs.

13 years agoUse const, move declarations to header files.
Dan Nicolaescu [Tue, 27 Jul 2010 03:52:35 +0000 (20:52 -0700)]
Use const, move declarations to header files.
* src/buffer.c (Fset_buffer_multibyte): Remove local extern declaration.

* src/character.c (strwidth, parse_str_to_multibyte): Add const.

* src/character.h (strwidth, parse_str_to_multibyte): Likewise.

* src/charset.c (add_to_log): Remove declaration.

* src/composite.c (syms_of_composite): Remove local extern declarations.

* src/data.c (Finteractive_form): Use const.

* src/dired.c (scmp): Add const.
(directory_files_internal): Remove local extern declaration.

* src/dispextern.h (add_to_log): Remove declaration.
(x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
(x_frame_get_and_record_arg, x_default_parameter): Add const.

* src/dispnew.c: Remove duplicate #include <unistd.h>.
(update_window, update_frame_1, init_display): Remove local extern
declarations.

* src/editfns.c (region_limit, syms_of_editfns): Remove local extern
declarations.

* src/emacs.c (main): Remove local extern declaration.

* src/font.c (Qnormal, QCtype, QCfamily, QCweight, QCslant, QCwidth)
(QCheight, QCsize, QCname): Remove declarations.

* src/frame.c (x_get_resource_string, x_get_string_resource)
(x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
(x_default_parameter): Use const.

* src/image.c (QCwidth, QCheight, QCforeground, QCbackground, QCfile)
(QCdata, QCtype, Qcenter): Remove declarations.

* src/keyboard.h (do_mouse_tracking): Add declaration.

* src/minibuf.c (Qmouse_face): Remove declaration.

* src/msdos.c (IT_note_mouse_highlight): Remove local extern declaration.

* src/xdisp.c (do_mouse_tracking): Remove declaration.
(add_to_log): Use const.

* src/xfaces.c (Qmouse_face): Remove declaration.
(face_color_gray_p, tty_defined_color, defined_color)
(face_color_gray_p, face_color_supported_p). Add const.

* src/xfns.c: Include xlwmenu.h when USE_LUCID.
(x_defined_color, xic_set_xfontset): Use const.
(Fx_hide_tip): Remove local extern declaration.

* src/xselect.c (selection_data_to_lisp_data)
(x_property_data_to_lisp):
* src/xrdb.c (x_get_string_resource, file_p)
(x_get_customization_string, magic_file_p, search_magic_path)
(get_system_app, get_user_app, x_load_resources, x_get_resource)
(x_get_string_resource): Use const.

* src/xterm.c (xlwmenu_window_p, xlwmenu_redisplay): Remove declarations.
(x_text_icon, x_check_errors, x_connection_closed): Use const.

* src/xterm.h (x_get_customization_string, x_load_resources)
(x_get_resource, x_text_icon, x_text_icon, x_check_errors)
(x_check_errors, x_property_data_to_lisp, defined_color)
(xic_set_xfontset, x_defined_color): Use const.

13 years ago* src/lisp.h (Fkill_emacs): Mark as NO_RETURN.
Dan Nicolaescu [Tue, 27 Jul 2010 02:45:53 +0000 (19:45 -0700)]
* src/lisp.h (Fkill_emacs): Mark as NO_RETURN.

13 years agoMerge from emacs-23
Juanma Barranquero [Tue, 27 Jul 2010 02:10:05 +0000 (04:10 +0200)]
Merge from emacs-23

13 years ago* modes.texi (Defining Minor Modes): Use C-delete in examples (bug#6334).
Juanma Barranquero [Tue, 27 Jul 2010 01:37:23 +0000 (03:37 +0200)]
* modes.texi (Defining Minor Modes): Use C-delete in examples (bug#6334).

13 years ago* lisp/mouse.el (mouse-yank-primary, mouse-yank-secondary):
Sam Steingold [Mon, 26 Jul 2010 19:05:47 +0000 (15:05 -0400)]
* lisp/mouse.el (mouse-yank-primary, mouse-yank-secondary):
Do not call `x-get-selection' the second time, reuse the value.

13 years agoNO_RETURN functions should not return.
Dan Nicolaescu [Mon, 26 Jul 2010 17:11:43 +0000 (10:11 -0700)]
NO_RETURN functions should not return.
* keyboard.c (Ftop_level, Fexit_recursive_edit)
(Fabort_recursive_edit): Remove return statements in NO_RETURN
functions.

13 years ago* frame.h (Qtty_color_mode): Add declaration.
Dan Nicolaescu [Mon, 26 Jul 2010 16:57:19 +0000 (09:57 -0700)]
* frame.h (Qtty_color_mode): Add declaration.

13 years ago* url-http (url-http-parse-headers): Disable file name handlers at
Michael Albinus [Mon, 26 Jul 2010 13:19:32 +0000 (15:19 +0200)]
* url-http (url-http-parse-headers): Disable file name handlers at
all (not only Tramp).  (Bug#6717)

13 years agosrc/ChangeLog: Add missing bug reference.
Juanma Barranquero [Mon, 26 Jul 2010 10:09:02 +0000 (12:09 +0200)]
src/ChangeLog: Add missing bug reference.

13 years agoMark functions as NO_RETURN.
Dan Nicolaescu [Mon, 26 Jul 2010 06:37:26 +0000 (23:37 -0700)]
Mark functions as NO_RETURN.
* src/lisp.h (Ftop_level, Fexit_recursive_edit)
(Fabort_recursive_edit): Mark as NO_RETURN.

13 years ago* lwlib/xlwmenu.h (xlwmenu_window_p, xlwmenu_redisplay): Add declarations.
Dan Nicolaescu [Mon, 26 Jul 2010 06:22:32 +0000 (23:22 -0700)]
* lwlib/xlwmenu.h (xlwmenu_window_p, xlwmenu_redisplay): Add declarations.

13 years agoAdd alternative key bindings to epa-mail.el.
Daiki Ueno [Mon, 26 Jul 2010 05:22:13 +0000 (14:22 +0900)]
Add alternative key bindings to epa-mail.el.

* epa-mail.el (epa-mail-mode-map): Add alternative key bindings
which consist of control chars only.  Suggested by Richard
Stallman.

13 years agomerge trunk
Kenichi Handa [Mon, 26 Jul 2010 04:29:08 +0000 (13:29 +0900)]
merge trunk

13 years agofont.c (Ffont_shape_gstring): Terminate GSTRING by nil if the number of glyphs gets...
Kenichi Handa [Mon, 26 Jul 2010 04:28:02 +0000 (13:28 +0900)]
font.c (Ffont_shape_gstring): Terminate GSTRING by nil if the number of glyphs gets smaller than the original length.

13 years ago* lread.c (unreadpure, mapatoms_1): Make static.
Juanma Barranquero [Mon, 26 Jul 2010 00:43:58 +0000 (02:43 +0200)]
* lread.c (unreadpure, mapatoms_1): Make static.

13 years ago* minibuf.c (Fread_buffer): Doc fix (bug#6528).
Christoph Scholtes [Sun, 25 Jul 2010 23:56:56 +0000 (01:56 +0200)]
* minibuf.c (Fread_buffer): Doc fix (bug#6528).

13 years ago* terminfo.c (tparam): Fix prototype of tparm (followup to 2010-07-25T00:20:51Z!lekkt...
Juanma Barranquero [Sun, 25 Jul 2010 19:30:14 +0000 (21:30 +0200)]
* terminfo.c (tparam): Fix prototype of tparm (followup to 2010-07-25T00:20:51Z!lekktu@gmail.com).

13 years agoUse __executable_start to find start of text segment for profiling
Andreas Schwab [Sun, 25 Jul 2010 19:09:54 +0000 (21:09 +0200)]
Use __executable_start to find start of text segment for profiling

* emacs.c (main) [PROFILING]: Use __executable_start if defined to
find start of text segment.
* dispnew.c (safe_bcopy): Don't define if HAVE___EXECUTABLE_START
is defined.

* configure.in: Check for __executable_start.

13 years ago* callproc.c (set_initial_environment): Avoid unbalanced braces.
Andreas Schwab [Sun, 25 Jul 2010 18:36:37 +0000 (20:36 +0200)]
* callproc.c (set_initial_environment): Avoid unbalanced braces.

13 years ago* vm-limit.c (check_memory_limits): Fix previous change; accidentally reverted an...
Ken Brown [Sun, 25 Jul 2010 14:13:30 +0000 (10:13 -0400)]
* vm-limit.c (check_memory_limits): Fix previous change; accidentally reverted an earlier change.

13 years agoCygwin build cleanup (Bug#6715).
Ken Brown [Sun, 25 Jul 2010 13:46:48 +0000 (09:46 -0400)]
Cygwin build cleanup (Bug#6715).
* mem-limits.h (BSD4_2) [cygwin]: Don't define here; instead...
* vm-limit.c: ...add 'defined (CYGWIN)' here.

13 years agoFix typo and comment.
Daiki Ueno [Sun, 25 Jul 2010 11:50:51 +0000 (20:50 +0900)]
Fix typo and comment.

13 years ago* url-http (url-http-parse-headers): Disable Tramp. (Bug#6717)
Michael Albinus [Sun, 25 Jul 2010 11:36:02 +0000 (13:36 +0200)]
* url-http (url-http-parse-headers): Disable Tramp.  (Bug#6717)

13 years agoFix *.gpg file creation (bug#6723).
Daiki Ueno [Sun, 25 Jul 2010 11:23:43 +0000 (20:23 +0900)]
Fix *.gpg file creation (bug#6723).

* epa-file.el (epa-file-insert-file-contents): Check if LOCAL-FILE
exists before passing an error to find-file-not-found-functions (bug#6723).

13 years agoAccept x-pkcs7-signature MIME type as signature.
Katsumi Yamaoka [Sun, 25 Jul 2010 10:29:49 +0000 (10:29 +0000)]
Accept x-pkcs7-signature MIME type as signature.

2010-07-24  David Engster  <dengste@eml.cc>
 * mml-smime.el (mml-smime-epg-verify): Also accept the older
 x-pkcs7-signature MIME type as signature (RFC 2311, C.1).

13 years agoBuild binary distros on Windows using emacs-VERSION as root dir name.
Christoph Scholtes [Sun, 25 Jul 2010 03:53:37 +0000 (05:53 +0200)]
Build binary distros on Windows using emacs-VERSION as root dir name.

* nt/makefile.w32-in: Copy README.W32 to installation directory
  during `make install'.  Remove README.W32 with `distclean' (in
  case Emacs was installed in place).  Use temporary directory to
  create distribution zip files in `dist' target.
* nt/zipdist.bat: Simplify code using temporary directory.

13 years ago* emacsclient.c (getcwd): Fix previous change.
Juanma Barranquero [Sun, 25 Jul 2010 03:36:54 +0000 (05:36 +0200)]
* emacsclient.c (getcwd): Fix previous change.
  Make getcwd conditional on HAVE_GETCWD and declare with the
  correct POSIX profile (for some reason MinGW headers define
  its 2nd arg as int, not size_t; but getcwd is not used on
  Windows nonetheless).

13 years agoAdded README.W32 to distclean. Updated Changelog.
Christoph Scholtes [Sun, 25 Jul 2010 03:07:15 +0000 (21:07 -0600)]
Added README.W32 to distclean. Updated Changelog.

13 years agoMake building under stricter warning flags somewhat cleaner.
Juanma Barranquero [Sun, 25 Jul 2010 00:20:51 +0000 (02:20 +0200)]
Make building under stricter warning flags somewhat cleaner.
Flags used: -Wold-style-declaration -Wunused-function -Wstrict-prototypes

* lib-src/emacsclient.c (getcwd, w32_getenv):
* lib-src/ntlib.h (getlogin, getuid, getegid, getgid): Fix prototypes.

* nt/runemacs.c (set_user_model_id): Fix prototype.

* src/callproc.c (relocate_fd): Set inside #ifndef WINDOWSNT.
* src/dired.c (opendir, readdir): Fix prototypes.
* src/editfns.c (w32_get_internal_run_time): Fix prototypes.
* src/keyboard.c (input_available_signal): Declare inside #ifdef SIGIO.
* src/ndir.h (opendir, readdir, seekdir, closedir): Fix prototypes.
  (telldir): Remove declaration.
* src/ralloc.c (real_morecore, __morecore): Fix prototypes.
* src/sound.c (alsa_sound_perror): Declare inside #ifdef HAVE_ALSA.
* src/syssignal.h (strsignal): Fix prototype.
* src/term.c (tparam): Fix prototype.
  (term_get_fkeys_address, term_get_fkeys_kboard, term_get_fkeys_1)
  (term_get_fkeys): Set inside "#ifndef DOS_NT".
* src/vm-limit.c (check_memory_limits): Fix prototypes of real_morecore
  and __morecore.
* src/w32gui.h (XParseGeometry): Fix prototype.
* src/w32heap.h (get_data_start, get_data_end, init_heap): Fix prototypes.
* src/w32term.c (my_set_focus): Declare inside #if 0.
* src/w32term.h (x_window_to_frame, x_display_info_for_name, w32_term_init)
  (w32_fill_rect, w32_clear_window, init_crit, delete_crit, signal_quit)
  (drain_message_queue, get_next_msg, post_msg, parse_button)
  (ClipboardSequence_Proc): Fix prototypes.
  (wait_for_sync): Remove declaration.

13 years agoAdded ChangeLog entry for copying of README.W32.
Christoph Scholtes [Sat, 24 Jul 2010 22:10:01 +0000 (16:10 -0600)]
Added ChangeLog entry for copying of README.W32.

13 years agoFixed whitespace.
Christoph Scholtes [Sat, 24 Jul 2010 22:07:04 +0000 (16:07 -0600)]
Fixed whitespace.

13 years agoRegenerate configure.
Ken Brown [Sat, 24 Jul 2010 22:06:03 +0000 (18:06 -0400)]
Regenerate configure.

13 years agoCode cleanup. Added ChangeLog entry.
Christoph Scholtes [Sat, 24 Jul 2010 22:04:10 +0000 (16:04 -0600)]
Code cleanup. Added ChangeLog entry.

13 years agoRefactoring of make dist target
Christoph Scholtes [Sat, 24 Jul 2010 21:35:36 +0000 (15:35 -0600)]
Refactoring of make dist target

13 years ago* w32fns.c (w32_to_x_color): Remove, unused.
Juanma Barranquero [Sat, 24 Jul 2010 20:52:43 +0000 (22:52 +0200)]
* w32fns.c (w32_to_x_color): Remove, unused.

13 years ago* configure.in (LINKER, LIB_GCC): Remove cygwin special cases (Bug#6715)
Ken Brown [Sat, 24 Jul 2010 18:44:54 +0000 (14:44 -0400)]
* configure.in (LINKER, LIB_GCC): Remove cygwin special cases (Bug#6715)

13 years ago* lisp.h: Remove leftover P_.
Andreas Schwab [Sat, 24 Jul 2010 18:15:40 +0000 (20:15 +0200)]
* lisp.h: Remove leftover P_.

13 years agoAdd NO_RETURN specifiers to functions in lib-src.
Dan Nicolaescu [Sat, 24 Jul 2010 17:18:18 +0000 (10:18 -0700)]
Add NO_RETURN specifiers to functions in lib-src.
* lib-src/update-game-score.c (usage):  Add NO_RETURN specifier.
* lib-src/movemail.c (fatal, pfatal_with_name, pfatal_and_delete):
* lib-src/make-docfile.c (fatal):
* lib-src/hexl.c (usage):
* lib-src/fakemail.c (fatal):
* lib-src/etags.c (fatal, suggest_asking_for_help, pfatal):
* lib-src/emacsclient.c (fatal):
* lib-src/b2m.c (fatal): Likewise.