Dan Nicolaescu [Sun, 4 Jul 2010 07:50:25 +0000 (00:50 -0700)]
Convert (most) functions in src to standard C.
* src/alloc.c: Convert function definitions to standard C.
* src/atimer.c:
* src/bidi.c:
* src/bytecode.c:
* src/callint.c:
* src/callproc.c:
* src/casefiddle.c:
* src/casetab.c:
* src/category.c:
* src/ccl.c:
* src/character.c:
* src/charset.c:
* src/chartab.c:
* src/cmds.c:
* src/coding.c:
* src/composite.c:
* src/data.c:
* src/dbusbind.c:
* src/dired.c:
* src/dispnew.c:
* src/doc.c:
* src/doprnt.c:
* src/ecrt0.c:
* src/editfns.c:
* src/fileio.c:
* src/filelock.c:
* src/filemode.c:
* src/fns.c:
* src/font.c:
* src/fontset.c:
* src/frame.c:
* src/fringe.c:
* src/ftfont.c:
* src/ftxfont.c:
* src/gtkutil.c:
* src/indent.c:
* src/insdel.c:
* src/intervals.c:
* src/keymap.c:
* src/lread.c:
* src/macros.c:
* src/marker.c:
* src/md5.c:
* src/menu.c:
* src/minibuf.c:
* src/prefix-args.c:
* src/print.c:
* src/ralloc.c:
* src/regex.c:
* src/region-cache.c:
* src/scroll.c:
* src/search.c:
* src/sound.c:
* src/strftime.c:
* src/syntax.c:
* src/sysdep.c:
* src/termcap.c:
* src/terminal.c:
* src/terminfo.c:
* src/textprop.c:
* src/tparam.c:
* src/undo.c:
* src/unexelf.c:
* src/window.c:
* src/xfaces.c:
* src/xfns.c:
* src/xfont.c:
* src/xftfont.c:
* src/xgselect.c:
* src/xmenu.c:
* src/xrdb.c:
* src/xselect.c:
* src/xsettings.c:
* src/xsmfns.c:
* src/xterm.c: Likewise.
Dan Nicolaescu [Sun, 4 Jul 2010 06:05:43 +0000 (23:05 -0700)]
* lib-src/fakemail.c (action): Convert function definitions to standard C.
(add_a_stream):
* lib-src/test-distrib.c (cool_read):
(main): Likewise.
Dan Nicolaescu [Sun, 4 Jul 2010 05:57:11 +0000 (22:57 -0700)]
Convert function definitions in oldXMenu to standard C.
* oldXMenu/Activate.c: Convert function definitions to standard C.
* oldXMenu/AddPane.c:
* oldXMenu/AddSel.c:
* oldXMenu/ChgPane.c:
* oldXMenu/ChgSel.c:
* oldXMenu/Create.c:
* oldXMenu/DelPane.c:
* oldXMenu/DelSel.c:
* oldXMenu/Destroy.c:
* oldXMenu/Error.c:
* oldXMenu/EvHand.c:
* oldXMenu/FindPane.c:
* oldXMenu/FindSel.c:
* oldXMenu/InsPane.c:
* oldXMenu/InsSel.c:
* oldXMenu/Internal.c:
* oldXMenu/Locate.c:
* oldXMenu/Post.c:
* oldXMenu/Recomp.c:
* oldXMenu/SetAEQ.c:
* oldXMenu/SetFrz.c:
* oldXMenu/SetPane.c:
* oldXMenu/SetSel.c:
* oldXMenu/X10.h:
* oldXMenu/XCrAssoc.c:
* oldXMenu/XDelAssoc.c:
* oldXMenu/XDestAssoc.c:
* oldXMenu/XLookAssoc.c:
* oldXMenu/XMakeAssoc.c:
* oldXMenu/XMenu.h:
* oldXMenu/XMenuInt.h:
* oldXMenu/insque.c: Likewise.
Dan Nicolaescu [Sun, 4 Jul 2010 05:47:55 +0000 (22:47 -0700)]
Convert function definitions in lwlib files to standard C.
* lwlib/lwlib-Xaw.c: Convert function definitions to standard C.
* lwlib/lwlib-Xlw.c:
* lwlib/lwlib-utils.c:
* lwlib/lwlib.c:
* lwlib/lwlib.h:
* lwlib/xlwmenu.c: Likewise.
Eli Zaretskii [Sat, 3 Jul 2010 15:15:30 +0000 (18:15 +0300)]
ebrowse.c (check_namespace): Fix indentation.
Eli Zaretskii [Sat, 3 Jul 2010 14:42:02 +0000 (17:42 +0300)]
Fix menu bar and colors on MS-DOS.
msdos.c (IT_set_frame_parameters): Set menu-bar-lines
according to menu-bar-mode, if not set in the frame parameters
or in default-frame-alist. Fix setting of colors in frames
other than the initial one. Fix reversal of colors when
`reverse' is specified in the frame parameters. Call
update_face_from_frame_parameter instead of
internal-set-lisp-face-attribute. Initialize screen colors
from initial_screen_colors[] when f->default_face_done_p is
zero, instead of depending on being called with
default-frame-alist as the alist argument.
xfaces.c (update_face_from_frame_parameter): Move out of
HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
with HAVE_WINDOW_SYSTEM.
Eli Zaretskii [Sat, 3 Jul 2010 14:36:18 +0000 (17:36 +0300)]
Fix setting colors on MS-DOS frames.
msdos.c (IT_set_frame_parameters): Fix setting of colors in
frames other than the initial one. Fix reversal of colors when
`reverse' is specified in the frame parameters. Call
update_face_from_frame_parameter instead of
internal-set-lisp-face-attribute. Initialize screen colors from
initial_screen_colors[] when f->default_face_done_p is zero,
instead of depending on being called with default-frame-alist as
the alist argument.
xfaces.c (update_face_from_frame_parameter): Move out of
HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
with HAVE_WINDOW_SYSTEM.
Andreas Schwab [Sat, 3 Jul 2010 12:11:03 +0000 (14:11 +0200)]
Fix invalid cast
* sorted-doc.c (cmpdoc): Fix signature.
(qsort_compare): Delete.
(main): Remove cast.
Eli Zaretskii [Sat, 3 Jul 2010 11:54:21 +0000 (14:54 +0300)]
Fix menu bar display on MS-DOS.
msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
to menu-bar-mode, if not set in the frame parameters or in
default-frame-alist.
Juanma Barranquero [Sat, 3 Jul 2010 10:46:27 +0000 (12:46 +0200)]
lib-src/ebrowse.c (match_qualified_namespace_alias): Check for null pointer.
Eli Zaretskii [Sat, 3 Jul 2010 07:49:55 +0000 (10:49 +0300)]
w32console.c (sys_tputs): Adjust argument list to prototype in term.c.
Juanma Barranquero [Sat, 3 Jul 2010 07:44:17 +0000 (09:44 +0200)]
Fix prototypes.
* src/cm.c (evalcost): Fix arg type.
* src/cm.h (evalcost): Fix prototype.
* src/lisp.h (memory_warnings): Fix prototype.
* lib-src/ebrowse.c (match_qualified_namespace_alias):
Pass sym* to find_namespace, not link*.
* lib-src/emacsclient.c (send_to_emacs, quote_argument): Arg s is HSOCKET.
* lib-src/sorted-doc.c (qsort_compare): New typedef.
(main): Use it to cast cmpdoc.
Chong Yidong [Sat, 3 Jul 2010 03:16:11 +0000 (23:16 -0400)]
Fix typo in last change.
Chong Yidong [Sat, 3 Jul 2010 03:13:26 +0000 (23:13 -0400)]
Take note of mouse dragging changes in NEWS.
Chong Yidong [Sat, 3 Jul 2010 03:07:48 +0000 (23:07 -0400)]
Simplify mouse-dragging implementation.
Now that DEL deletes active regions, we can handle it by using the
ordinary region instead of a separate overlay.
* mouse.el (mouse-drag-overlay): Variable deleted.
(mouse-move-drag-overlay, mouse-show-mark): Functions deleted.
(mouse--remap-link-click-p): New function.
(mouse-drag-track): Handle dragging by using temporary Transient
Mark mode, instead of a special overlay.
(mouse-kill-ring-save, mouse-save-then-kill): Don't call
mouse-show-mark.
* mouse-sel.el (mouse-sel-selection-alist): mouse-drag-overlay
deleted.
Dan Nicolaescu [Sat, 3 Jul 2010 00:50:23 +0000 (17:50 -0700)]
Convert function definitions to standard C.
* lib-src/update-game-score.c: Convert function definitions to standard C.
* lib-src/sorted-doc.c:
* lib-src/profile.c:
* lib-src/pop.c:
* lib-src/movemail.c:
* lib-src/make-docfile.c:
* lib-src/hexl.c:
* lib-src/fakemail.c:
* lib-src/etags.c:
* lib-src/ebrowse.c:
* lib-src/digest-doc.c:
* lib-src/b2m.c: Likewise.
Juri Linkov [Fri, 2 Jul 2010 22:35:09 +0000 (01:35 +0300)]
* lisp/autoinsert.el (auto-insert-alist): Fix readability
by using dotted pair notation for lambda.
Juri Linkov [Fri, 2 Jul 2010 22:28:52 +0000 (01:28 +0300)]
* lisp/faces.el (read-face-name): Rename arg `string-describing-default'
to `default'. Doc fix. Display the default value in quotes
in the prompt. With empty input, return the `default' arg,
unless the default value is a string (in which case return nil).
(describe-face): Replace the string `default' arg of `read-face-name'
with the symbol `default'.
http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg01109.html
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.
Juanma Barranquero [Fri, 2 Jul 2010 14:46:22 +0000 (16:46 +0200)]
* config.nt (__P): Remove.
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).
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.
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.
Jan D [Fri, 2 Jul 2010 12:55:51 +0000 (14:55 +0200)]
Remove __P.
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.
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.
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.
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.
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.
Jan D [Thu, 1 Jul 2010 18:09:28 +0000 (20:09 +0200)]
* window.c (Fwindow_absolute_pixel_edges): Doc fix.
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"))
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).
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.
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.
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.
Chong Yidong [Thu, 1 Jul 2010 05:32:01 +0000 (01:32 -0400)]
* ruler-mode.el (ruler--save-header-line-format): Fix typos.
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.
Juanma Barranquero [Thu, 1 Jul 2010 00:08:29 +0000 (02:08 +0200)]
Fix whitespace in ChangeLogs.
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.
Andreas Schwab [Wed, 30 Jun 2010 23:07:00 +0000 (01:07 +0200)]
Fix typo
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.
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).
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.
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.
Glenn Morris [Wed, 30 Jun 2010 06:38:13 +0000 (23:38 -0700)]
Remove comment that is no longer true.
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)
Glenn Morris [Wed, 30 Jun 2010 04:29:49 +0000 (21:29 -0700)]
Fix some whitespace in previous.
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.
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.
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.
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.
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.
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.
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).
Jan D [Mon, 28 Jun 2010 10:15:34 +0000 (12:15 +0200)]
Mention bug number
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.
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.
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.
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.
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).
Chong Yidong [Sun, 27 Jun 2010 18:11:16 +0000 (14:11 -0400)]
* startup.el (command-line): Recognize "0" X resource value.
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.
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.
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).
Eli Zaretskii [Sat, 26 Jun 2010 12:11:06 +0000 (15:11 +0300)]
w32-fns.el (w32-convert-standard-filename): Doc fix.
Eli Zaretskii [Sat, 26 Jun 2010 12:01:31 +0000 (15:01 +0300)]
PROBLEMS: Update Cygwin-related info regarding GCC versions.
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.
Chong Yidong [Fri, 25 Jun 2010 19:32:37 +0000 (15:32 -0400)]
Revert last change.
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).
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)
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.
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.
Chong Yidong [Fri, 25 Jun 2010 00:33:25 +0000 (20:33 -0400)]
Add redisplay test for image and overlay string interaction.
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)
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)
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).
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.
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.
Mark A. Hershberger [Tue, 22 Jun 2010 16:48:53 +0000 (12:48 -0400)]
Add in some useful convenience functions for handling HTTP.
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.
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.
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.
Glenn Morris [Tue, 22 Jun 2010 07:51:46 +0000 (00:51 -0700)]
* lisp/org/org-entities.el: Add explicit utf-8 coding cookie.
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.
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).
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'.
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.
Glenn Morris [Mon, 21 Jun 2010 07:37:16 +0000 (00:37 -0700)]
* INSTALL: Info files are compressed by default.
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.
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.
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.
Eli Zaretskii [Sat, 19 Jun 2010 11:57:19 +0000 (14:57 +0300)]
xdisp.c (try_scrolling): Fix last change.
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.
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)
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.
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.
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.
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.
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.
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.