bpt/emacs.git
13 years agoConvert some prototypes to standard C.
Dan Nicolaescu [Fri, 2 Jul 2010 22:18:28 +0000 (15:18 -0700)]
Convert some prototypes to standard C.
* lib-src/make-docfile.c (xmalloc, xrealloc, concat, readline, fatal):
* lib-src/b2m.c (scan_file, scan_lisp_file, scan_c_file): Convert to
standard C prototypes.

* src/term.c (term_clear_mouse_face, Fidentity):
* src/syssignal.h (signal_handler_t):
* src/lisp.h (memory_warnings):
* src/coding.h (preferred_coding_system):
* src/cm.h (evalcost):
* src/blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.

13 years ago* config.nt (__P): Remove.
Juanma Barranquero [Fri, 2 Jul 2010 14:46:22 +0000 (16:46 +0200)]
* config.nt (__P): Remove.

13 years agoReplace delete-backward-char Lisp calls in Viper (Bug#6552).
Chong Yidong [Fri, 2 Jul 2010 14:09:36 +0000 (10:09 -0400)]
Replace delete-backward-char Lisp calls in Viper (Bug#6552).

* emulation/viper-cmd.el (viper-delete-backward-char)
(viper-del-backward-char-in-insert)
(viper-del-backward-char-in-replace, viper-change)
(viper-backward-indent): Replace delete-backward-char with
delete-char (Bug#6552).

13 years agoFix MS-DOS build due to removal of P_.
Eli Zaretskii [Fri, 2 Jul 2010 13:10:00 +0000 (16:10 +0300)]
Fix MS-DOS build due to removal of P_.

 msdos.h (load_pixmap): Don't define away.

13 years agoFix the MS-DOS build due to removal of P_.
Eli Zaretskii [Fri, 2 Jul 2010 13:05:59 +0000 (16:05 +0300)]
Fix the MS-DOS build due to removal of P_.

 dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
 from prototypes.
 msdos.h (load_pixmap): Don't define away.

13 years agoRemove __P.
Jan D [Fri, 2 Jul 2010 12:55:51 +0000 (14:55 +0200)]
Remove __P.

13 years agoFix MS-DOS configury.
Eli Zaretskii [Fri, 2 Jul 2010 12:47:02 +0000 (15:47 +0300)]
Fix MS-DOS configury.

 sed1v2.inp (LIB_GCC): Edit to empty.
 Chdir back to ../src after compiling each .el file.

13 years agoRemove __P and P_ from .c and .m files and definition of P_
Jan D [Fri, 2 Jul 2010 12:19:53 +0000 (14:19 +0200)]
Remove __P and P_ from .c and .m files and definition of P_

* lisp.h:
* atimer.h: Remove define for P_.

* alloc.c: Remove __P and P_ from .c and .m files.
* atimer.c:
* buffer.c:
* callint.c:
* category.c:
* charset.c:
* chartab.c:
* cm.c:
* coding.c:
* composite.c:
* data.c:
* dired.c:
* dispnew.c:
* doc.c:
* editfns.c:
* emacs.c:
* eval.c:
* fileio.c:
* filelock.c:
* fns.c:
* font.c:
* fontset.c:
* frame.c:
* ftfont.c:
* ftxfont.c:
* gmalloc.c:
* gtkutil.c:
* image.c:
* indent.c:
* intervals.c:
* keyboard.c:
* keymap.c:
* lread.c:
* marker.c:
* menu.c:
* minibuf.c:
* print.c:
* process.c:
* scroll.c:
* search.c:
* sound.c:
* strftime.c:
* syntax.c:
* sysdep.c:
* term.c:
* terminal.c:
* textprop.c:
* unexalpha.c:
* w32console.c:
* w32fns.c:
* w32font.c:
* w32menu.c:
* w32term.c:
* w32uniscribe.c:
* window.c:
* xdisp.c:
* xfaces.c:
* xfns.c:
* xfont.c:
* xftfont.c:
* xmenu.c:
* xselect.c:
* xterm.c: Likewise.

* ebrowse.c: Remove P_ and __P.
* etags.c:
* movemail.c:
* pop.c:
* update-game-score.c: Likewise.

13 years agoRemove P_ and __P macros.
Jan D [Fri, 2 Jul 2010 09:26:33 +0000 (11:26 +0200)]
Remove P_ and __P macros.

* lwlib/lwlib-Xaw.h: Remove P_ and __P macros.
* lwlib/lwlib-Xlw.h:
* lwlib/lwlib-Xm.h:
* lwlib/lwlib-int.h:
* lwlib/lwlib-utils.h:
* lwlib/lwlib.h: Likewise.

* src/buffer.h: Remove P_ and __P macros.
* src/category.h:
* src/ccl.h:
* src/character.h:
* src/charset.h:
* src/cm.h:
* src/coding.h:
* src/composite.h:
* src/dispextern.h:
* src/disptab.h:
* src/font.h:
* src/fontset.h:
* src/frame.h:
* src/gtkutil.h:
* src/indent.h:
* src/intervals.h:
* src/keyboard.h:
* src/keymap.h:
* src/lisp.h:
* src/macros.h:
* src/md5.h:
* src/menu.h:
* src/msdos.h:
* src/nsterm.h:
* src/puresize.h:
* src/region-cache.h:
* src/syntax.h:
* src/syssignal.h:
* src/systime.h:
* src/termhooks.h:
* src/w32term.h:
* src/widget.h:
* src/window.h:
* src/xgselect.h:
* src/xsettings.h:
* src/xterm.h: Likewise.

13 years agoDefine USE_LISP_UNION_TYPE using autoconf.
Dan Nicolaescu [Fri, 2 Jul 2010 08:11:24 +0000 (01:11 -0700)]
Define USE_LISP_UNION_TYPE using autoconf.
* configure.in (--enable-use-lisp-union-type): New flag.
* src/lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.

13 years agoCleanup old code.
Dan Nicolaescu [Fri, 2 Jul 2010 07:05:09 +0000 (00:05 -0700)]
Cleanup old code.
* src/dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
* src/syssignal.h: Remove code for Lynx, not supported anymore.
* src/vm-limit.c: Remove unused code the depends on emacs not being
defined and NO_LIM_DATA being defined.
* src/mem-limits.h: Remove dead code.

13 years ago* window.c (Fwindow_absolute_pixel_edges): Doc fix.
Jan D [Thu, 1 Jul 2010 18:09:28 +0000 (20:09 +0200)]
* window.c (Fwindow_absolute_pixel_edges): Doc fix.

13 years ago2010-07-01 Mark A. Hershberger <mah@everybody.org>
Mark A. Hershberger [Thu, 1 Jul 2010 18:02:43 +0000 (14:02 -0400)]
2010-07-01  Mark A. Hershberger  <mah@everybody.org>

  * url-http.el (url-http-create-request): Add a CRLF on the end so
  that POSTs with content to https urls work. See
  <https://bugs.launchpad.net/mediawiki-el/+bug/540759>

Prior to this, the following request would not terminate:

(let ((url-request-method "POST")
             (url-request-data "action=login"))
         (url-retrieve-synchronously "https://example.org/wiki/api.php"))

13 years agoNew functions that return window edges with absolute coords (bug#5721).
Jan D [Thu, 1 Jul 2010 12:34:40 +0000 (14:34 +0200)]
New functions that return window edges with absolute coords (bug#5721).

* window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
(Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).

13 years ago* nsfns.m (compute_tip_xy): Do not convert coordinates from frame parameters.
Jan D [Thu, 1 Jul 2010 12:20:14 +0000 (14:20 +0200)]
* nsfns.m (compute_tip_xy): Do not convert coordinates from frame parameters.

13 years agoRename FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT to aid common code.
Jan D [Thu, 1 Jul 2010 12:16:33 +0000 (14:16 +0200)]
Rename FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT to aid common code.

* nsmenu.m (update_frame_tool_bar, free_frame_tool_bar): Update
FRAME_TOOLBAR_HEIGHT.

* nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGH

* nsterm.m (x_set_window_size, initFrameFromEmacs): Renamed
FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.

13 years ago* nsmenu.m (free_frame_tool_bar, update_frame_tool_bar): Add
Jan D [Thu, 1 Jul 2010 10:45:26 +0000 (12:45 +0200)]
* nsmenu.m (free_frame_tool_bar, update_frame_tool_bar): Add
BLOCK/UNBLOCK_INPUT so asserts don't trigger.

13 years ago* ruler-mode.el (ruler--save-header-line-format): Fix typos.
Chong Yidong [Thu, 1 Jul 2010 05:32:01 +0000 (01:32 -0400)]
* ruler-mode.el (ruler--save-header-line-format): Fix typos.

13 years agoFix application of default-frame-alist (Bug#5378).
Chong Yidong [Thu, 1 Jul 2010 00:14:17 +0000 (20:14 -0400)]
Fix application of default-frame-alist (Bug#5378).

* lisp/frame.el (make-frame): Add default-frame-alist to the PARAMETERS
argument passed to frame-creation-function (Bug#5378).

* lisp/faces.el (x-handle-named-frame-geometry)
(x-handle-reverse-video, x-create-frame-with-faces)
(face-set-after-frame-default, tty-create-frame-with-faces): Don't
separately consult default-frame-alist.  It is now passed as the
PARAMETER argument.

* src/frame.c (get_future_frame_param, Fmake_terminal_frame): Don't
check default-frame-alist.

13 years agoFix whitespace in ChangeLogs.
Juanma Barranquero [Thu, 1 Jul 2010 00:08:29 +0000 (02:08 +0200)]
Fix whitespace in ChangeLogs.

13 years agoAvoid erroneous syscalls
Andreas Schwab [Wed, 30 Jun 2010 23:07:11 +0000 (01:07 +0200)]
Avoid erroneous syscalls

* process.c (create_process): Avoid using invalid file descriptors.

* callproc.c (child_setup): Avoid closing a file descriptor twice.

13 years agoFix typo
Andreas Schwab [Wed, 30 Jun 2010 23:07:00 +0000 (01:07 +0200)]
Fix typo

13 years ago* startup.el (command-line): Don't call tool-bar-setup in a tty-only build.
Andreas Schwab [Wed, 30 Jun 2010 22:58:19 +0000 (00:58 +0200)]
* startup.el (command-line): Don't call tool-bar-setup in a tty-only build.

13 years agoDon't always set ruler-mode-header-line-format-old (Bug#5370).
Chong Yidong [Wed, 30 Jun 2010 22:43:52 +0000 (18:43 -0400)]
Don't always set ruler-mode-header-line-format-old (Bug#5370).

* ruler-mode.el (ruler--save-header-line-format): New fun.
(ruler-mode): Use it as a setter function, so as not to overwrite
ruler-mode-header-line-format-old if Ruler mode is on (Bug#5370).

13 years agoImprove doc for system font things. Return font regardless of use_system_font.
Jan D [Wed, 30 Jun 2010 11:16:01 +0000 (13:16 +0200)]
Improve doc for system font things.  Return font regardless of use_system_font.

* xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
Improve documentation.  Return font regardless of use_system_font.
(syms_of_xsettings): Improve documentation for font-use-system-font.

13 years agoCheck FC_DUAL too. For such fonts, check width one by one.
Kenichi Handa [Wed, 30 Jun 2010 06:55:41 +0000 (15:55 +0900)]
Check FC_DUAL too.  For such fonts, check width one by one.

13 years agoRemove comment that is no longer true.
Glenn Morris [Wed, 30 Jun 2010 06:38:13 +0000 (23:38 -0700)]
Remove comment that is no longer true.

13 years agoFix CFLAGS for non-GCC compilers.
Dan Nicolaescu [Wed, 30 Jun 2010 05:51:07 +0000 (22:51 -0700)]
Fix CFLAGS for non-GCC compilers.
* configure.in (CFLAGS): Always use -g like it was done before the
2010-03-30 change.
(REAL_CFLAGS): Use CFLAGS for non-GCC to get optimization flags.  (Bug#6538)

13 years agoFix some whitespace in previous.
Glenn Morris [Wed, 30 Jun 2010 04:29:49 +0000 (21:29 -0700)]
Fix some whitespace in previous.

13 years ago* configure.in (HAVE_SOUND, HAVE_X_I18N, HAVE_X11R6_XIM):
Glenn Morris [Wed, 30 Jun 2010 03:43:30 +0000 (20:43 -0700)]
* configure.in (HAVE_SOUND, HAVE_X_I18N, HAVE_X11R6_XIM):
Set with AC_DEFINE rather than AH_BOTTOM.

* src/s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.

* admin/CPP-DEFINES: Remove INHIBIT_X11R6_XIM.

* configure, src/config.in: Regenerate.

13 years agoRemove last internal use of cpp and src/{m,s}/*.h files in configure.in.
Glenn Morris [Wed, 30 Jun 2010 02:55:15 +0000 (19:55 -0700)]
Remove last internal use of cpp and src/{m,s}/*.h files in configure.in.

* configure.in (CFLAGS, REAL_CFLAGS): Set with shell, not cpp.
* configure, src/config.in: Regenerate.

13 years agoRemove some cpp that is internal to configure.in.
Glenn Morris [Wed, 30 Jun 2010 02:48:54 +0000 (19:48 -0700)]
Remove some cpp that is internal to configure.in.

* configure.in (C_OPTIMIZE_SWITCH, CANNOT_DUMP, SYSTEM_MALLOC):
(USE_MMAP_FOR_BUFFERS, C_WARNING_SWITCH): Set with shell, not cpp.
(LIBX): Remove, just use -lX11 in the one place this was used.
(cannot_dump): Replace with CANNOT_DUMP.

* src/Makefile.in (CANNOT_DUMP): Update for configure name change.

* src/s/freebsd.h (USE_MMAP_FOR_BUFFERS):
* src/s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
* src/s/darwin.h (SYSTEM_MALLOC):
* src/s/sol2-10.h (SYSTEM_MALLOC): Move to configure.

* src/m/alpha.h: Remove old comment.
* src/s/aix4-2.h: Update comment.
* src/s/template.h: Remove USE_MMAP_FOR_BUFFERS.

* msdos/sed1v2.inp (CANNOT_DUMP): Update for configure name change.

* admin/CPP-DEFINES: Remove USE_MMAP_FOR_BUFFERS, CANNOT_DUMP.

* etc/DEBUG: Update SYSTEM_MALLOC and CANNOT_DUMP references.
Some re-filling.

13 years agoAllow global VC ops like `C-x v D' in Diff and Log-View buffers.
Chong Yidong [Tue, 29 Jun 2010 18:17:31 +0000 (14:17 -0400)]
Allow global VC ops like `C-x v D' in Diff and Log-View buffers.

* vc/diff-mode.el (diff-vc-backend): New var.

* vc/vc.el (vc-deduce-backend): New fun.  Handle diff buffers.
(vc-root-diff, vc-print-root-log, vc-log-incoming)
(vc-log-outgoing): Use it.
(vc-diff-internal): Set diff-vc-backend.

13 years agoFix some compilation errors in nsfns.c
Jan D [Tue, 29 Jun 2010 09:49:20 +0000 (11:49 +0200)]
Fix some compilation errors in nsfns.c

* nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
(ns_get_screen): Don't assign integer to f.
(Fx_display_color_cells): Declarations before statements.

13 years agodynamic-setting.el (font-setting-change-default-font): Remove call to message.
Jan D [Mon, 28 Jun 2010 12:54:44 +0000 (14:54 +0200)]
dynamic-setting.el (font-setting-change-default-font): Remove call to message.

13 years agoxfns.c (x_default_font_parameter): Remove got_from_system (Bug#6526).
Jan D [Mon, 28 Jun 2010 12:46:39 +0000 (14:46 +0200)]
xfns.c (x_default_font_parameter): Remove got_from_system (Bug#6526).

13 years agoMention bug number
Jan D [Mon, 28 Jun 2010 10:15:34 +0000 (12:15 +0200)]
Mention bug number

13 years agoUse non-deprecated Gtk+ functions, add changes for Gtk+3 with GSEAL_ENABLE.
Jan D [Mon, 28 Jun 2010 10:11:26 +0000 (12:11 +0200)]
Use non-deprecated Gtk+ functions, add changes for Gtk+3 with GSEAL_ENABLE.

* configure.in: Add --with-x-toolkit=gtk3. Remove HAVE_GTK_MULTIDISPLAY,
check for gtk_file_chooser_dialog_new, and HAVE_GTK_FILE_BOTH (implied
by minimum required Gtk+ 2.6).  Add checks for functions introduced
in Gtk+ 2.14 or newer.

* xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
(gtk_adjustment_get_page_size, gtk_adjustment_get_upper): New
defines based on what configure finds.

* xterm.c (XTflash): Use gtk_widget_get_window.
(xg_scroll_callback): Use gtk_adjustment_get_upper and
gtk_adjustment_get_page_size.
(handle_one_xevent): Use gtk_widget_get_mapped.
(x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
messages.

* xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.

* gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
HAVE_GTK_FILE_SELECTION_NEW.

* gtkutil.c (xg_display_open, xg_display_close): Remove
HAVE_GTK_MULTIDISPLAY, it is always defined.
(xg_display_open): Return type is void.
(gtk_widget_set_has_window)
(gtk_dialog_get_action_area, gtk_dialog_get_content_area)
(gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
(gtk_adjustment_set_page_increment)
(gtk_adjustment_get_step_increment): #define these if not found
by configure.
(remove_submenu): New define based on Gtk+ version.
(xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar): Use
gtk_widget_get_window.
(xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
(xg_create_frame_widgets): Use gtk_widget_set_has_window.
(create_dialog): Use gtk_dialog_get_action_area and
gtk_dialog_get_content_area.
(xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW.  File chooser is always
available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
(xg_update_menubar, xg_update_submenu, xg_show_toolbar_item): Use
g_object_ref and g_object_unref.
(xg_update_menu_item, xg_tool_bar_menu_proxy): Use
gtk_widget_get_sensitive.
(xg_update_submenu): Use remove_submenu.
(xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
properties instead to get old x and y position.
(xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
(xg_get_tool_bar_widgets): New function.
(xg_tool_bar_menu_proxy, xg_show_toolbar_item)
(update_frame_tool_bar): Call xg_get_tool_bar_widgets.
(toolbar_set_orientation): New #define based on if configure
finds gtk_orientable_set_orientation.
(xg_create_tool_bar): Call toolbar_set_orientation.
(xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
instead of gtk_box_pack_start_defaults.

13 years agointernational/quail.el (quail-insert-kbd-layout): Fix the showing of untranslated...
Kenichi Handa [Mon, 28 Jun 2010 05:41:36 +0000 (14:41 +0900)]
international/quail.el (quail-insert-kbd-layout): Fix the showing of untranslated characters.

13 years ago* bindings.el (global-map): Bind delete and DEL, the former to
Chong Yidong [Mon, 28 Jun 2010 01:01:11 +0000 (21:01 -0400)]
* bindings.el (global-map): Bind delete and DEL, the former to
delete-forward-char.

* mouse.el (mouse-region-delete-keys): Deleted.
(mouse-show-mark): Simplify.

* simple.el (delete-active-region): New option.
(delete-backward-char): Implement in Lisp.
(delete-forward-char): New command.

* src/cmds.c (Fdelete_backward_char): Move into Lisp.

13 years ago* src/s/freebsd.h (BSD4_2): Remove redundant definition.
Dan Nicolaescu [Sun, 27 Jun 2010 21:28:51 +0000 (14:28 -0700)]
* src/s/freebsd.h (BSD4_2): Remove redundant definition.
bsd-common.h defines it already.

13 years ago* progmodes/ruby-mode.el (ruby-mode-map): Don't bind TAB.
Chong Yidong [Sun, 27 Jun 2010 18:18:49 +0000 (14:18 -0400)]
* progmodes/ruby-mode.el (ruby-mode-map): Don't bind TAB.
(ruby-mode): Bind indent-line-function (Bug#5119).

13 years ago* startup.el (command-line): Recognize "0" X resource value.
Chong Yidong [Sun, 27 Jun 2010 18:11:16 +0000 (14:11 -0400)]
* startup.el (command-line): Recognize "0" X resource value.

13 years agoChange default-frame-alist and menu/tool-bar-mode interaction (Bug#2249).
Chong Yidong [Sun, 27 Jun 2010 00:30:52 +0000 (20:30 -0400)]
Change default-frame-alist and menu/tool-bar-mode interaction (Bug#2249).
Don't add entries for `menu-bar-lines' and `tool-bar-lines' to
`default-frame-alist' and `initial-frame-alist' at startup.
Instead, use X resources to update the `menu-bar-mode' and
`tool-bar-mode' variables at startup, and use them as defaults during
frame creation.

* lisp/frame.el (frame-notice-user-settings): Don't change
default-frame-alist based on menu-bar-mode and tool-bar-mode, or
vice versa.

* lisp/menu-bar.el (menu-bar-mode):
* lisp/tool-bar.el (tool-bar-mode): Don't change default-frame-alist.
Set init-value to t.

* lisp/startup.el (command-line): Use X resources to set the value of
menu-bar-mode and tool-bar-mode, before calling frame-initialize.

* src/frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.

* src/w32fns.c (Fx_create_frame):
* src/nsfns.m (Fx_create_frame): Likewise.

* src/xfns.c (Fx_create_frame): Don't consult X resouces when setting
menu-bar-lines and tool-bar-lines.  Use menu-bar-mode and
tool-bar-mode, which are now set using these X resources at
startup, to determine the defaults.

13 years agoFix the MS-DOS build due to changes in configury.
Eli Zaretskii [Sat, 26 Jun 2010 14:36:27 +0000 (17:36 +0300)]
Fix the MS-DOS build due to changes in configury.

 config.bat: Remove white space around "+" in COPY commands.
 msods/mainmake.v2 (version): Use emacs_version[] in src/emacs.c
 instead of lisp/version.el (see 2010-05-15T21:11:37Z!raeburn@raeburn.org).
 msdos/sed1v2.inp (MKDEPDIR): Edit to empty.
 Delete lines in rules that invoke $(MKDEPDIR).
 Fix editing rules that begin with "cd ../lisp".
 Edit out sh if-then-else-fi constructs that test ${CANNOT_DUMP}.
 Edit out "|| exit ;\" constructs in emacs${EXEEXT} rule.

13 years agoRevert 2010-06-26T12:01:31Z!eliz@gnu.org (fixed in emacs-23 branch).
Eli Zaretskii [Sat, 26 Jun 2010 12:21:24 +0000 (15:21 +0300)]
Revert 2010-06-26T12:01:31Z!eliz@gnu.org (fixed in emacs-23 branch).

13 years agow32-fns.el (w32-convert-standard-filename): Doc fix.
Eli Zaretskii [Sat, 26 Jun 2010 12:11:06 +0000 (15:11 +0300)]
w32-fns.el (w32-convert-standard-filename): Doc fix.

13 years agoPROBLEMS: Update Cygwin-related info regarding GCC versions.
Eli Zaretskii [Sat, 26 Jun 2010 12:01:31 +0000 (15:01 +0300)]
PROBLEMS: Update Cygwin-related info regarding GCC versions.

13 years agoCherry-pick commit 8bd9308 from the org-mode Git repository.
Carsten Dominik [Sat, 26 Jun 2010 09:53:06 +0000 (11:53 +0200)]
Cherry-pick commit 8bd9308 from the org-mode Git repository.

2010-06-26  Carsten Dominik  <carsten.dominik@gmail.com>

* org-agenda.el (org-agenda-goto-calendar): Do not bind obsolete
variables.

* org.el (calendar): Require calendar now on top level in org.el
and define aliases to new variables when needed.
(org-read-date, org-goto-calendar): Do not bind obsolete
variables.

13 years agoRevert last change.
Chong Yidong [Fri, 25 Jun 2010 19:32:37 +0000 (15:32 -0400)]
Revert last change.

13 years agoChange initial-frame-alist and default-frame-alist defaults (Bug#2249).
Chong Yidong [Fri, 25 Jun 2010 19:24:05 +0000 (15:24 -0400)]
Change initial-frame-alist and default-frame-alist defaults (Bug#2249).
Since the menu-bar and tool-bar are now unconditionally turned on by
default, we can let the defcustom defaults reflect that.

* frame.el (initial-frame-alist): Give default value entries for
menu-bar-lines and tool-bar-lines consistent with the startup
default (Bug#2249).

* frame.c (Vdefault_frame_alist): Give default value entries for
menu-bar-lines and tool-bar-lines consistent with the startup
default (Bug#2249).

13 years agoAdd missing Changelog entries for textmodes/ispell.el (bzr#100641) and textmodes...
Agustín Martín [Fri, 25 Jun 2010 08:31:50 +0000 (10:31 +0200)]
Add missing Changelog entries for textmodes/ispell.el (bzr#100641) and textmodes/flyspell.el (bzr#100640)

13 years agoispell.el (ispell-init-process): Make sure ispell and default directories are expanded.
Agustín Martín [Fri, 25 Jun 2010 08:28:01 +0000 (10:28 +0200)]
ispell.el (ispell-init-process): Make sure ispell and default directories are expanded.

13 years agoMake sure `flyspell-word' checks word after (flyspell-check-previous-highlighted...
Agustín Martín [Fri, 25 Jun 2010 08:19:11 +0000 (10:19 +0200)]
Make sure `flyspell-word' checks word after (flyspell-check-previous-highlighted-word) run.

13 years agoAdd redisplay test for image and overlay string interaction.
Chong Yidong [Fri, 25 Jun 2010 00:33:25 +0000 (20:33 -0400)]
Add redisplay test for image and overlay string interaction.

13 years ago* lisp/minibuffer.el (completions-format): Change default from nil to
Juri Linkov [Thu, 24 Jun 2010 21:51:14 +0000 (00:51 +0300)]
* lisp/minibuffer.el (completions-format): Change default from nil to
`horizontal'.  Remove `nil' value from :type.  Doc fix.  (Bug#6459)

13 years ago* lisp/vc/vc.el (vc-diff-internal): Set `revert-buffer-function'
Juri Linkov [Thu, 24 Jun 2010 21:38:07 +0000 (00:38 +0300)]
* lisp/vc/vc.el (vc-diff-internal): Set `revert-buffer-function'
buffer-locally to lambda that re-runs the vc diff command.  (Bug#6447)

13 years agoDon't issue kmacro hint if echo area is in use (Bug#3412).
Chong Yidong [Thu, 24 Jun 2010 19:16:33 +0000 (15:16 -0400)]
Don't issue kmacro hint if echo area is in use (Bug#3412).

* lisp/kmacro.el (kmacro-call-macro): Don't issue hint message if the
echo area is in use (Bug#3412).

13 years agolib-src/movemail.c (error): Avoid warning when there are no args.
Juanma Barranquero [Thu, 24 Jun 2010 16:12:35 +0000 (18:12 +0200)]
lib-src/movemail.c (error): Avoid warning when there are no args.

13 years agosrc/gtkutil.c (xg_update_scrollbar_pos): Avoid C99 mid-block variable declaration.
Juanma Barranquero [Thu, 24 Jun 2010 16:08:22 +0000 (18:08 +0200)]
src/gtkutil.c (xg_update_scrollbar_pos): Avoid C99 mid-block variable declaration.

13 years agoAdd in some useful convenience functions for handling HTTP.
Mark A. Hershberger [Tue, 22 Jun 2010 16:48:53 +0000 (12:48 -0400)]
Add in some useful convenience functions for handling HTTP.

13 years agoHide scroll bar when window is too small to avoid Gtk+ warning.
Jan Djärv [Tue, 22 Jun 2010 12:28:08 +0000 (14:28 +0200)]
Hide scroll bar when window is too small to avoid Gtk+ warning.

* gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
if height is less than scroll bar min size.
(xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.

* gtkutil.h (xg_show_scroll_bar): : Remove.

* xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.

13 years agoMinor simplification.
Glenn Morris [Tue, 22 Jun 2010 08:10:26 +0000 (01:10 -0700)]
Minor simplification.
* lisp/textmodes/texinfmt.el (texinfo-format-region)
(texinfo-raise-lower-sections, texinfo-format-separate-node)
(texinfo-itemize-item, texinfo-multitable-item, texinfo-alias)
(texinfo-format-option, texinfo-noindent):
Use line-beginning-position and line-end-position.

13 years agoDon't use font names from GConf if font backend can't handle it (bug#6478).
Jan Djärv [Tue, 22 Jun 2010 07:55:08 +0000 (09:55 +0200)]
Don't use font names from GConf if font backend can't handle it (bug#6478).

* xfns.c (x_default_font_parameter): Try to open font from system
before using it (bug#6478).  Rename got_from_gconf to got_from_system.

13 years ago* lisp/org/org-entities.el: Add explicit utf-8 coding cookie.
Glenn Morris [Tue, 22 Jun 2010 07:51:46 +0000 (00:51 -0700)]
* lisp/org/org-entities.el: Add explicit utf-8 coding cookie.

13 years agoAdd some utf-8 coding cookies.
Glenn Morris [Tue, 22 Jun 2010 07:41:10 +0000 (00:41 -0700)]
Add some utf-8 coding cookies.

* lisp/calc/calc-aent.el, lisp/calc/calc-ext.el, lisp/calc/calc-lang.el:
* lisp/calc/calc-store.el, lisp/calc/calc-units.el, lisp/calc/calc.el:
* lisp/calc/calccomp.el:
Add explicit utf-8 coding cookies to files with utf-8 characters.
Also delete trailing whitespace.

13 years ago* font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
Jan Djärv [Tue, 22 Jun 2010 06:42:00 +0000 (08:42 +0200)]
* font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).

13 years ago* lisp/simple.el (compose-mail): Fix doc string to refer to
Karl Fogel [Mon, 21 Jun 2010 23:26:46 +0000 (19:26 -0400)]
* lisp/simple.el (compose-mail): Fix doc string to refer to
  `compose-mail-user-agent-warnings', instead of to the
  nonexistent `compose-mail-check-user-agent'.

13 years agoFix an indentation bug:
Alan Mackenzie [Mon, 21 Jun 2010 21:08:26 +0000 (21:08 +0000)]
Fix an indentation bug:

progmodes/cc-mode.el (c-common-init): Initialise c-new-BEG/END.
(c-neutralize-syntax-in-and-mark-CPP): c-new-BEG/END: Take account
of existing values.

progmodes/cc-engine.el (c-clear-<-pair-props-if-match-after)
(c-clear->-pair-props-if-match-before): now return t when they've cleared
properties, nil otherwise.
(c-before-change-check-<>-operators): Set c-new-beg/end correctly by
taking account of the existing value.

progmodes/cc-defs.el (c-clear-char-property-with-value-function): Fix
this to clear the property rather than overwriting it with nil.

13 years ago* INSTALL: Info files are compressed by default.
Glenn Morris [Mon, 21 Jun 2010 07:37:16 +0000 (00:37 -0700)]
* INSTALL: Info files are compressed by default.

13 years agoAvoid recentering when lines differ in their height.
Eli Zaretskii [Sun, 20 Jun 2010 18:04:30 +0000 (21:04 +0300)]
Avoid recentering when lines differ in their height.

 xdisp.c (try_scrolling): When scroll-conservatively is set to
 most-positive-fixnum, be extra accurate when scrolling window
 start, to avoid missing the cursor line.

13 years agoTweaks to package list UI.
Chong Yidong [Sun, 20 Jun 2010 04:55:14 +0000 (00:55 -0400)]
Tweaks to package list UI.

* help-mode.el (help-package): New button type.

* emacs-lisp/package.el (package-print-package): Add link to
package description via describe-package.
(describe-package-1): List package requirements.  Add button to
perform installation.
(package-menu-describe-package): New command.

13 years agoAdd preliminary describe-package functionality, and some cleanup.
Chong Yidong [Sat, 19 Jun 2010 22:36:51 +0000 (18:36 -0400)]
Add preliminary describe-package functionality, and some cleanup.

* help-mode.el (help-package-def): New button type.

* menu-bar.el: Move package-list-packages binding here from
package.el.

* emacs-lisp/package.el: Move package-list-packages binding to
menu-bar.el.
(describe-package, describe-package-1, package--dir): New funs.
(package-activate-1): Use package--dir.

* emacs-lisp/package-x.el (gnus-article-buffer): Require package.

13 years agoxdisp.c (try_scrolling): Fix last change.
Eli Zaretskii [Sat, 19 Jun 2010 11:57:19 +0000 (14:57 +0300)]
xdisp.c (try_scrolling): Fix last change.

13 years agoFix occasional recentering under scroll-conservatively.
Eli Zaretskii [Sat, 19 Jun 2010 09:40:15 +0000 (12:40 +0300)]
Fix occasional recentering under scroll-conservatively.

 xdisp.c (try_scrolling): Compute the limit for searching point
 in forward scroll from scroll_max, instead of an arbitrary limit
 of 10 screen lines.  See
 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html and
 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html for
 details.

13 years ago* lisp/descr-text.el (describe-char): Avoid trailing whitespace. (Bug#6423)
Gustav Hållberg [Sat, 19 Jun 2010 02:39:04 +0000 (19:39 -0700)]
* lisp/descr-text.el (describe-char): Avoid trailing whitespace.  (Bug#6423)

13 years ago* lisp/emacs-lisp/edebug.el (edebug-read-list): Phase out old-style backquotes.
Stefan Monnier [Fri, 18 Jun 2010 14:05:43 +0000 (10:05 -0400)]
* lisp/emacs-lisp/edebug.el (edebug-read-list): Phase out old-style backquotes.

13 years agoFix revert-buffer functionality of Help mode and Info.
Juri Linkov [Thu, 17 Jun 2010 20:56:17 +0000 (23:56 +0300)]
Fix revert-buffer functionality of Help mode and Info.

* lisp/help-mode.el (help-mode): Set buffer-local variable
revert-buffer-function to help-mode-revert-buffer.
(help-mode-revert-buffer): New function.

* lisp/info.el (Info-revert-find-node): Check for major-mode Info-mode
before popping to "*info*" (like in other Info functions).
Keep buffer-name in old-buffer-name.  Keep Info-history-forward in
old-history-forward.  Pop to old-buffer-name or "*info*" to
recreate the killed buffer.  Set Info-history-forward from
old-history-forward.
(Info-breadcrumbs-depth): Add :group and :version.

13 years ago* lisp/emacs-lisp/package.el (package-menu-mode-map): Add a menu.
Dan Nicolaescu [Thu, 17 Jun 2010 16:41:13 +0000 (09:41 -0700)]
* lisp/emacs-lisp/package.el (package-menu-mode-map): Add a menu.

13 years agoispell.el (ispell-aspell-find-dictionary): Fix regexp for full xx_YY search.
Agustín Martín [Thu, 17 Jun 2010 14:44:34 +0000 (16:44 +0200)]
ispell.el (ispell-aspell-find-dictionary): Fix regexp for full xx_YY search.

This is needed for languages like Portuguese where there are aspell dicts
for pt_BR and pt_PT, not for plain pt. If we strip country part
`ispell-aspell-find-dictionary' does not find dicts for portuguese.

13 years agoemacs-lisp/package.el (package-menu-mode-map): Move initialization into declaration.
Juanma Barranquero [Thu, 17 Jun 2010 11:02:42 +0000 (13:02 +0200)]
emacs-lisp/package.el (package-menu-mode-map): Move initialization into declaration.

13 years agomenu-bar.el (menu-bar-options-menu): Fix typo in menu entry.
Juanma Barranquero [Thu, 17 Jun 2010 10:45:25 +0000 (12:45 +0200)]
menu-bar.el (menu-bar-options-menu): Fix typo in menu entry.

13 years agoMerge package.el, written by Tom Tromey <tromey@redhat.com>.
Chong Yidong [Thu, 17 Jun 2010 02:08:10 +0000 (22:08 -0400)]
Merge package.el, written by Tom Tromey <tromey@redhat.com>.
Changes relative to version 0.9 of package.el are listed below:

* emacs-lisp/package-x.el: New file.  Package uploading
functionality split out from package.el.

* emacs-lisp/package.el (package-archive-base): Point to
elpa.gnu.org.
(package-enable, package-load-list): New defcustoms.
(package-user-dir, package-directory-list): Turn into defcustoms.
Don't include package-user-dir in package-directory-list.
(package--builtins-base): Don't include Emacs as a "package".
(package-subdirectory-regexp): New var.
(package-load-all-descriptors, package-compute-transaction)
(package-download-transaction): Obey package-load-list.
(package-activate-1): Rename from package-do-activate.
(package-list-packages-internal): Check package-load-list.
(package-load-descriptor, package-generate-autoloads)
(package-unpack, package-unpack-single)
(package--read-archive-file, package-delete): Use
expand-file-name.

* startup.el (command-line): Load packages after reading init
file.

13 years ago* lisp/emacs-lisp/macroexp.el (macroexpand-all-1): Put back special
Stefan Monnier [Thu, 17 Jun 2010 00:17:22 +0000 (20:17 -0400)]
* lisp/emacs-lisp/macroexp.el (macroexpand-all-1): Put back special
handling for `lambda' (misunderstanding).

13 years agocalc-poly.el: (math-accum-factors): Make sure that constants aren't distributed
Jay Belanger [Wed, 16 Jun 2010 23:27:20 +0000 (18:27 -0500)]
calc-poly.el: (math-accum-factors):  Make sure that constants aren't distributed
after they are factored out.

13 years ago* lisp/facemenu.el (list-colors-display): Call `pop-to-buffer' before
Juri Linkov [Wed, 16 Jun 2010 21:33:54 +0000 (00:33 +0300)]
* lisp/facemenu.el (list-colors-display): Call `pop-to-buffer' before
`list-colors-print'.  (Bug#6332)

13 years ago* lisp/emacs-lisp/macroexp.el (macroexpand-all-1): Don't handle `lambda'
Stefan Monnier [Wed, 16 Jun 2010 21:11:06 +0000 (17:11 -0400)]
* lisp/emacs-lisp/macroexp.el (macroexpand-all-1): Don't handle `lambda'
specially, since it's a macro.  Fix up wrong hint passed to maybe-cons.

13 years agoMerge from emacs-23
Stefan Monnier [Wed, 16 Jun 2010 20:08:41 +0000 (16:08 -0400)]
Merge from emacs-23

13 years ago* lisp/font-lock.el (font-lock-major-mode): Rename from
Stefan Monnier [Wed, 16 Jun 2010 20:00:22 +0000 (16:00 -0400)]
* lisp/font-lock.el (font-lock-major-mode): Rename from
font-lock-mode-major-mode to distinguish it from
global-font-lock-mode's own font-lock-mode-major-mode.
(font-lock-set-defaults):
* lisp/font-core.el (font-lock-default-function): Adjust users.
(font-lock-mode): Don't set it at all.

Fixes: debbugs:6135

13 years ago* src/lread.c (read1): Phase out old-style backquotes a bit more.
Stefan Monnier [Wed, 16 Jun 2010 14:10:02 +0000 (10:10 -0400)]
* src/lread.c (read1): Phase out old-style backquotes a bit more.

13 years agoispell.el: Fix portuguese casechars/not-casechars for missing 'çÇ'. (bug#6434).
Agustín Martín [Wed, 16 Jun 2010 13:42:59 +0000 (15:42 +0200)]
ispell.el: Fix portuguese casechars/not-casechars for missing 'çÇ'. (bug#6434).

13 years ago* auth-source.el (auth-source-pick): If choice does not contain a
Michael Albinus [Tue, 15 Jun 2010 20:13:34 +0000 (22:13 +0200)]
* auth-source.el (auth-source-pick): If choice does not contain a
questioned keyword, set the check to t.

13 years ago* etc/NEWS.1-17: Fix typos.
Juanma Barranquero [Tue, 15 Jun 2010 11:41:21 +0000 (13:41 +0200)]
* etc/NEWS.1-17: Fix typos.

13 years ago* facemenu.el (list-colors-sort): Doc fix.
Juanma Barranquero [Tue, 15 Jun 2010 11:05:06 +0000 (13:05 +0200)]
* facemenu.el (list-colors-sort): Doc fix.

13 years agoBackport from trunk: * src/editfns.c (Fbyte_to_string): Pacify compiler.
Glenn Morris [Tue, 15 Jun 2010 06:16:19 +0000 (23:16 -0700)]
Backport from trunk: * src/editfns.c (Fbyte_to_string): Pacify compiler.

13 years ago* lisp/vc-annotate.el (vc-annotate): Use vc-read-revision.
Stefan Monnier [Tue, 15 Jun 2010 04:51:42 +0000 (00:51 -0400)]
* lisp/vc-annotate.el (vc-annotate): Use vc-read-revision.

13 years ago* etc/NEWS: appt-add.
Glenn Morris [Tue, 15 Jun 2010 03:49:39 +0000 (20:49 -0700)]
* etc/NEWS: appt-add.

13 years agoTweak previous change.
Glenn Morris [Tue, 15 Jun 2010 03:42:33 +0000 (20:42 -0700)]
Tweak previous change.

* lisp/calendar/appt.el (appt-time-msg-list): Doc fix.
(appt-check): Let-bind appt-warn-time.
(appt-add): Make the 3rd argument optional.
Simplify argument names.  Doc fix.  Check for integer WARNTIME.
Only add WARNTIME to the output list if non-nil.

13 years agoClose bug#5176.
Ivan Kanis [Tue, 15 Jun 2010 03:38:58 +0000 (20:38 -0700)]
Close bug#5176.

* lisp/calendar/appt.el (appt-check): Let the 3rd element of
appt-time-msg-list specify the warning time.
(appt-add): Add new argument with the warning time.

13 years ago* lisp/progmodes/sql.el (sql-connect-mysql): Fix typo.
Bob Rogers [Tue, 15 Jun 2010 03:34:12 +0000 (20:34 -0700)]
* lisp/progmodes/sql.el (sql-connect-mysql): Fix typo.