bpt/emacs.git
14 years agoRevert last bug-reference-url-format change.
Chong Yidong [Wed, 28 Apr 2010 15:45:45 +0000 (11:45 -0400)]
Revert last  bug-reference-url-format change.

* progmodes/bug-reference.el (bug-reference-url-format): Revert
2010-04-27 change due to security risk.

14 years agoMake it possible to locally disable a globally enabled mode.
Stefan Monnier [Wed, 28 Apr 2010 15:18:37 +0000 (11:18 -0400)]
Make it possible to locally disable a globally enabled mode.
* simple.el (fundamental-mode): Run fundamental-mode-hook.
* emacs-lisp/derived.el (define-derived-mode): Use fundamental-mode
rather than kill-all-local-variables so it runs fundamental-mode-hook.
* emacs-lisp/easy-mmode.el (define-globalized-minor-mode):
Use fundamental-mode-hook to run MODE-enable-in-buffers earlier, so
that subsequent hooks get a chance to disable it.

14 years agoRegenerate configure.
Glenn Morris [Wed, 28 Apr 2010 07:33:48 +0000 (00:33 -0700)]
Regenerate configure.

14 years agosrc/Makefile.in minor simplification,
Glenn Morris [Wed, 28 Apr 2010 07:25:47 +0000 (00:25 -0700)]
src/Makefile.in minor simplification,
* src/Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
(WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.

14 years agoDefine CYGWIN_OBJ with configure, not cpp.
Glenn Morris [Wed, 28 Apr 2010 07:20:39 +0000 (00:20 -0700)]
Define CYGWIN_OBJ with configure, not cpp.
* configure.in (CYGWIN_OBJ): New output variable.
* src/Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.

14 years agoSet GPM part of MOUSE_SUPPORT with configure, not cpp.
Glenn Morris [Wed, 28 Apr 2010 07:15:10 +0000 (00:15 -0700)]
Set GPM part of MOUSE_SUPPORT with configure, not cpp.
* configure.in (GPM_MOUSE_SUPPORT): New output variable.
* src/Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
(MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.

14 years agoSet FONT_DRIVERS with configure rather than cpp.
Glenn Morris [Wed, 28 Apr 2010 07:08:53 +0000 (00:08 -0700)]
Set FONT_DRIVERS with configure rather than cpp.
* configure.in (FONT_OBJ): New output variable.
* src/Makefile.in (FONT_OBJ): New, set by configure.
(FONT_DRIVERS): Use $FONT_OBJ.

14 years agoMove LIBXMU from cpp to configure.
Glenn Morris [Wed, 28 Apr 2010 07:01:43 +0000 (00:01 -0700)]
Move LIBXMU from cpp to configure.

* configure.in (LIBXMU): New output variable.

* src/Makefile.in (LIBXMU): Set with configure, not cpp.
* src/s/aix4-2.h (LIBXMU):
* src/s/hpux10-20.h (LIBXMU):
Remove definition, now set in configure.

14 years agoMove NS_OBJ, NS_SUPPORT from cpp to configure.
Glenn Morris [Wed, 28 Apr 2010 06:54:25 +0000 (23:54 -0700)]
Move NS_OBJ, NS_SUPPORT from cpp to configure.
* configure.in (NS_OBJ, NS_SUPPORT): New output variables.
* src/Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.

14 years agoMissing src/ChangeLog for previous commit.
Glenn Morris [Wed, 28 Apr 2010 06:45:35 +0000 (23:45 -0700)]
Missing src/ChangeLog for previous commit.

14 years agoMove test for 64-bit kernel with 32-bit userland to configure.
Glenn Morris [Wed, 28 Apr 2010 06:43:38 +0000 (23:43 -0700)]
Move test for 64-bit kernel with 32-bit userland to configure.
See discussion in bug#5655.

* configure.in (machine, canonical): On amdx86-64, check for a 32-bit
userland and maybe change values to i386 (move test from s/amdx86-64.h).

* src/m/amdx86-64.h [i386]: Move this test to configure.in.

14 years agoLet the user turn off locally a globalized minor mode
Stefan Monnier [Tue, 27 Apr 2010 18:14:16 +0000 (14:14 -0400)]
Let the user turn off locally a globalized minor mode
* emacs-lisp/easy-mmode.el (define-globalized-minor-mode):
Avoid re-enabling a minor mode after the user turned the minor mode
off if MODE-enable-in-buffers is run twice (typically once from
fundamental-mode's after-change-major-mode-hook and a second time from
run-mode-hook's own after-change-major-mode-hook).

14 years ago* emacs-lisp/lisp.el (lisp-complete-symbol): Fail gracefully.
Stefan Monnier [Tue, 27 Apr 2010 17:57:32 +0000 (13:57 -0400)]
* emacs-lisp/lisp.el (lisp-complete-symbol): Fail gracefully.

14 years ago(bug-reference-url-format): Mark as `safe-local-variable' if the value
Sam Steingold [Tue, 27 Apr 2010 15:13:42 +0000 (11:13 -0400)]
(bug-reference-url-format): Mark as `safe-local-variable' if the value
is a string or a function, as documented and implemented on 2010-04-02.

14 years agoWhen killing buffers with ido, don't offer virtual buffers for completion.
Juanma Barranquero [Tue, 27 Apr 2010 11:47:19 +0000 (13:47 +0200)]
When killing buffers with ido, don't offer virtual buffers for completion.

* ido.el (ido-buffer-internal): Bind `ido-use-virtual-buffers' to nil
  when method is 'kill.

14 years agoCommit missing lisp/Changelog entries.
Agustín Martín [Tue, 27 Apr 2010 10:49:02 +0000 (12:49 +0200)]
Commit missing lisp/Changelog entries.

14 years agoispell.el: Kill ispell process when killing its associated buffer.
Agustín Martín [Tue, 27 Apr 2010 10:44:44 +0000 (12:44 +0200)]
ispell.el: Kill ispell process when killing its associated buffer.

(ispell-init-process,ispell-kill-ispell,kill-buffer-hook):
Kill ispell process when killing its associated buffer.

14 years agoispell.el (ispell-init-process): Fix personal dictionary condition in default directo...
Agustín Martín [Tue, 27 Apr 2010 10:35:00 +0000 (12:35 +0200)]
ispell.el (ispell-init-process): Fix personal dictionary condition in default directory check.

14 years agoRegenerate configure.
Glenn Morris [Tue, 27 Apr 2010 08:11:11 +0000 (01:11 -0700)]
Regenerate configure.

14 years agoMove LIBXTR6 from cpp to autoconf.
Glenn Morris [Tue, 27 Apr 2010 08:09:01 +0000 (01:09 -0700)]
Move LIBXTR6 from cpp to autoconf.

* configure.in (LIBXTR6): New output variable.  Move unixware special
case here from src/s/unixware.h.

* src/Makefile.in (LIBXTR6): Set with configure, not cpp.
* src/s/unixware.h (NEED_LIBW): Remove definition.

* admin/CPP-DEFINES: Remove NEED_LIBW.

14 years agoRegenerate configure.
Glenn Morris [Tue, 27 Apr 2010 07:38:05 +0000 (00:38 -0700)]
Regenerate configure.

14 years agoReplace LUCID_LIBW, MOTIF_LIBW with TOOLKIT_LIBW.
Glenn Morris [Tue, 27 Apr 2010 07:33:35 +0000 (00:33 -0700)]
Replace LUCID_LIBW, MOTIF_LIBW with TOOLKIT_LIBW.

* configure.in (LUCID_LIBW, MOTIF_LIBW): No longer substitute in Makefiles.
(TOOLKIT_LIBW): New output variable, replacing LUCID_LIBW/MOTIF_LIBW.

* src/Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
(TOOLKIT_LIBW): New, set by configure.
(@X_TOOLKIT_TYPE@): No longer define it.

14 years agoMove MOTIF_LIBW to autoconf.
Glenn Morris [Tue, 27 Apr 2010 07:02:12 +0000 (00:02 -0700)]
Move MOTIF_LIBW to autoconf.

* configure.in (HAVE_MOTIF_2_1): Remove unused variable.
(LIBXP): No longer substitute in Makefiles.
(MOTIF_LIBW): New output variable.  Move system-specific settings here
from src/s files.

* src/Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
(MOTIF_LIBW): Set with configure, not cpp.
* s/aix4-2.h (LIB_MOTIF):
* s/gnu-linux.h (LIB_MOTIF):
* s/unixware.h (LIB_MOTIF): Move to configure.in.

* admin/CPP-DEFINES: Remove LIB_MOTIF.

14 years agodesktop.el (desktop-kill): ask-if-new: Ask if desktop file exists,
Jan Djärv [Tue, 27 Apr 2010 06:45:43 +0000 (08:45 +0200)]
desktop.el (desktop-kill): ask-if-new: Ask if desktop file exists,
but we aren't using it.

14 years agoDon't load tm and apel XEmacs packages when compiling.
Katsumi Yamaoka [Tue, 27 Apr 2010 06:40:58 +0000 (06:40 +0000)]
Don't load tm and apel XEmacs packages when compiling.

14 years agoRegenerate configure and cibfig.in
Jan Djärv [Tue, 27 Apr 2010 06:20:03 +0000 (08:20 +0200)]
Regenerate configure and cibfig.in

14 years agoReduce CPP usage.
Dan Nicolaescu [Tue, 27 Apr 2010 05:24:53 +0000 (22:24 -0700)]
Reduce CPP usage.
* Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE): Remove
definitions and undefs.  Inline definitions in the only user.
(ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.

* Makefile.in (C_SWITCH_X_SYSTEM): Define using autoconf.

* Makefile.in (C_SWITCH_X_SYSTEM): Define using autoconf.

* configure.in (C_SWITCH_X_SYSTEM): Define using autoconf, not cpp.

14 years agoReduce CPP usage.
Dan Nicolaescu [Tue, 27 Apr 2010 03:47:47 +0000 (20:47 -0700)]
Reduce CPP usage.
* Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
(obj): Use autoconf for unexec instead of cpp.

* configure.in (LIB_X11_LIB): Remove, inline in the only user.
(unexec): Define unconditionally, all platforms define
UNEXEC.  AC_SUBST it.
(UNEXEC_SRC): Remove, unused.

14 years agoRemove some AC_DEFINEs that are now unused.
Glenn Morris [Tue, 27 Apr 2010 03:32:39 +0000 (20:32 -0700)]
Remove some AC_DEFINEs that are now unused.

* configure.in (HAVE_MOTIF_2_1, HAVE_LIBXP): Remove unused AC_DEFINEs,
replaced by LIBXP.

* configure, src/config.in: Regenerate.

14 years agoRegenerate configure.
Glenn Morris [Tue, 27 Apr 2010 03:18:39 +0000 (20:18 -0700)]
Regenerate configure.

14 years agoUse $CRT_DIR in more places.
Glenn Morris [Tue, 27 Apr 2010 03:14:14 +0000 (20:14 -0700)]
Use $CRT_DIR in more places.

* configure.in (--with-crt-dir): Doc fix (now valid for all platforms).
(CRT_DIR): On (powerpc64|sparc64)-*-linux-gnu*, default to /usr/lib64.
On hpux10-20, default to /lib.

* src/m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
since the defaults (set by the system file) are fine in most cases.
[GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
* src/m/ibms390x.h (START_FILES, LIB_STANDARD):
* src/m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
* src/m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
Remove definitions, since they are set correctly in s/gnu-linux.h.
* src/s/freebsd.h (START_FILES, LIB_STANDARD):
* src/s/gnu-linux.h (START_FILES, LIB_STANDARD):
* src/s/hpux10-20.h (START_FILES):
* src/s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
Use $CRT_DIR in place of fixed /usr/lib, /lib directories.

* src/Makefile.in: Comment.

14 years agoRegenerate configure.
Glenn Morris [Tue, 27 Apr 2010 02:38:36 +0000 (19:38 -0700)]
Regenerate configure.

14 years agoReplace some more cpp with autoconf.
Glenn Morris [Tue, 27 Apr 2010 02:36:20 +0000 (19:36 -0700)]
Replace some more cpp with autoconf.

* configure.in (LUCID_LIBW, LIBXP, WIDGET_OBJ): New output variables.

* src/Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
(MOTIF_LIBW): Use $LIBXP.
(otherobj): Use $WIDGET_OBJ.

14 years ago* Makefile.in (LIBS_MACHINE): Remove, unused.
Dan Nicolaescu [Mon, 26 Apr 2010 18:23:01 +0000 (11:23 -0700)]
* Makefile.in (LIBS_MACHINE): Remove, unused.

14 years ago* Makefile.in (LIBS_MACHINE): Remove, unused.
Dan Nicolaescu [Mon, 26 Apr 2010 18:14:24 +0000 (11:14 -0700)]
* Makefile.in (LIBS_MACHINE): Remove, unused.
* Makefile.in (LIBS_MACHINE): Remove all uses, unused.
* configure.in (LIBS_MACHINE): Remove, unused.

14 years agoUse autoconf instead of cpp for LIB_MATH.
Dan Nicolaescu [Mon, 26 Apr 2010 17:10:09 +0000 (10:10 -0700)]
Use autoconf instead of cpp for LIB_MATH.
* s/darwin.h (LIB_MATH): Do not define here, move to configure.
* s/cygwin.h (LIB_MATH): Likewise.
* Makefile.in (LIB_MATH): Do not define with cpp.
(LIBES): Use autoconf for LIB_MATH.

* configure.in (LIB_MATH): New output variable.  Set it for some systems.

14 years agocomposite.c (Ffind_composition_internal): Fix the return value for an automatic compo...
Kenichi Handa [Mon, 26 Apr 2010 12:02:08 +0000 (21:02 +0900)]
composite.c (Ffind_composition_internal): Fix the return value for an automatic composition.

14 years agoRemove all NO_ARG_ARRAY uses.
Dan Nicolaescu [Sun, 25 Apr 2010 22:16:58 +0000 (15:16 -0700)]
Remove all NO_ARG_ARRAY uses.
* fns.c (concat2, concat3, nconc2):
* eval.c (apply1, call1, call2, call3, call4, call5, call6)
(call7): Remove NO_ARG_ARRAY usage, assume it's always true.
* m/xtensa.h (NO_ARG_ARRAY):
* m/template.h (NO_ARG_ARRAY):
* m/sparc.h (NO_ARG_ARRAY):
* m/sh3.h (NO_ARG_ARRAY):
* m/mips.h (NO_ARG_ARRAY):
* m/macppc.h (NO_ARG_ARRAY):
* m/iris4d.h (NO_ARG_ARRAY):
* m/intel386.h (NO_ARG_ARRAY):
* m/ibms390x.h (NO_ARG_ARRAY):
* m/ibms390.h (NO_ARG_ARRAY):
* m/ibmrs6000.h (NO_ARG_ARRAY):
* m/ia64.h (NO_ARG_ARRAY):
* m/hp800.h (NO_ARG_ARRAY):
* m/arm.h (NO_ARG_ARRAY):
* m/amdx86-64.h (NO_ARG_ARRAY):
* m/alpha.h (NO_ARG_ARRAY): Remove definition.

14 years agoFix crash with bidi display on the last empty line (bug#6030).
Eli Zaretskii [Sun, 25 Apr 2010 17:06:41 +0000 (20:06 +0300)]
Fix crash with bidi display on the last empty line (bug#6030).

 xdisp.c (display_line): Don't assume 2nd call to
 get_next_display_element cannot return zero.  (Bug#6030)

Move code that bidi-iterates out of display property to a separate function.

 xdisp.c (iterate_out_of_display_property): New function, body from pop_it.
 (pop_it): Use it.

14 years agoMove code that bidi-iterates out of display property to a separate function.
Eli Zaretskii [Sun, 25 Apr 2010 16:55:59 +0000 (19:55 +0300)]
Move code that bidi-iterates out of display property to a separate function.

 xdisp.c (iterate_out_of_display_property): New function, body from pop_it.
 (pop_it): Use it.

14 years agoFix crash with bidi display on the last empty line (bug#6030).
Eli Zaretskii [Sun, 25 Apr 2010 14:42:34 +0000 (17:42 +0300)]
Fix crash with bidi display on the last empty line (bug#6030).

 xdisp.c (display_line): Don't assume 2nd call to
 get_next_display_element cannot return zero.

14 years agotool-bar.el: Revert unintended checkin in 2010-04-23T16:26:11Z!monnier@iro.umontreal.ca.
Jan D [Sun, 25 Apr 2010 07:23:01 +0000 (09:23 +0200)]
tool-bar.el: Revert unintended checkin in 2010-04-23T16:26:11Z!monnier@iro.umontreal.ca.

14 years agoMinor simplications for src/m/amdx86-64.h.
Glenn Morris [Sat, 24 Apr 2010 19:50:03 +0000 (12:50 -0700)]
Minor simplications for src/m/amdx86-64.h.

* m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
(START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
since CRT_DIR defaults to /usr/lib.  Suggested by Dan Nicolaescu.

14 years ago* etc/NEWS: Mention --with-crt-dir.
Glenn Morris [Sat, 24 Apr 2010 18:10:17 +0000 (11:10 -0700)]
* etc/NEWS: Mention --with-crt-dir.

14 years agoFix typos in comments of composite.c
Eli Zaretskii [Sat, 24 Apr 2010 16:46:20 +0000 (19:46 +0300)]
Fix typos in comments of composite.c

14 years agocomposite.el (find-composition): Doc fix.
Eli Zaretskii [Sat, 24 Apr 2010 16:23:29 +0000 (19:23 +0300)]
composite.el (find-composition): Doc fix.

14 years agocomposite.c (composition_compute_stop_pos): Fix a typo in the commentary.
Eli Zaretskii [Sat, 24 Apr 2010 13:24:25 +0000 (16:24 +0300)]
composite.c (composition_compute_stop_pos): Fix a typo in the commentary.

14 years agoRemove conflict markers.
Juanma Barranquero [Sat, 24 Apr 2010 12:33:31 +0000 (14:33 +0200)]
Remove conflict markers.

14 years agoFix cursor motion at end of line that ends in a composed character.
Eli Zaretskii [Sat, 24 Apr 2010 11:11:40 +0000 (14:11 +0300)]
Fix cursor motion at end of line that ends in a composed character.

 xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
 use `get_next_display_element' and `set_iterator_to_next' to
 advance to the next character, when looking for the character that
 begins the next row.

14 years agoFix cursor motion at end of line that ends with a composite character.
Eli Zaretskii [Sat, 24 Apr 2010 11:07:27 +0000 (14:07 +0300)]
Fix cursor motion at end of line that ends with a composite character.

 xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
 use `get_next_display_element' and `set_iterator_to_next' to
 advance to the next character, when looking for the character that
 begins the next row.

14 years agoFix GDB startup with src/.gdbinit.
Eli Zaretskii [Sat, 24 Apr 2010 07:36:27 +0000 (10:36 +0300)]
Fix GDB startup with src/.gdbinit.

 .gdbinit: Add a "set Fmake_symbol" line to force GDB load the
 definition of "struct Lisp_Symbol".

14 years agoFix GDB startup with .gdbinit.
Eli Zaretskii [Sat, 24 Apr 2010 07:32:48 +0000 (10:32 +0300)]
Fix GDB startup with .gdbinit.

 .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
 definition of "struct Lisp_Symbol".

14 years agoMinor htmlfontify simplifications.
Glenn Morris [Sat, 24 Apr 2010 02:36:43 +0000 (19:36 -0700)]
Minor htmlfontify simplifications.

* hfy-cmap.el (htmlfontify-load-rgb-file, hfy-fallback-colour-values):
Add autoload cookies.
(htmlfontify-unload-rgb-file, hfy-fallback-colour-values): Add docs.
(generated-autoload-file): Set file-local value to "htmlfontify.el".
* htmlfontify.el (caddr, cadddr): Remove fallback definitions.
They have definitions / compiler macros in cl.el.
(htmlfontify-load-rgb-file, hfy-fallback-colour-values):
Replace manual autoloads with generated ones.
(htmlfontify-unload-rgb-file): Remove autoload.

14 years agoAccidentally omitted from previous commit.
Glenn Morris [Sat, 24 Apr 2010 02:30:11 +0000 (19:30 -0700)]
Accidentally omitted from previous commit.

* src/m/amdx86-64.h (START_FILES, LIB_STANDARD):
  Use $CRT_DIR rather than HAVE_LIB64_DIR.  (Bug#5655)

14 years agoRegenerate configure, src/config.in.
Glenn Morris [Sat, 24 Apr 2010 02:25:45 +0000 (19:25 -0700)]
Regenerate configure, src/config.in.

14 years agoClose bug#5655.
Glenn Morris [Sat, 24 Apr 2010 02:23:22 +0000 (19:23 -0700)]
Close bug#5655.

* configure.in (CRT_DIR): New output variable.
(--with-crt-dir): New option.  (Bug#5655)
(HAVE_LIB64_DIR): Remove.

* src/Makefile.in (CRT_DIR): New variable, set by configure.
* src/m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
Use $CRT_DIR rather than HAVE_LIB64_DIR.  (Bug#5655)

14 years agoMinor authors.el updates.
Glenn Morris [Sat, 24 Apr 2010 02:16:13 +0000 (19:16 -0700)]
Minor authors.el updates.

* emacs-lisp/authors.el (authors-obsolete-files-regexps):
Ignore VCS-ignore files, and deleted nextstep preferences files.
(authors-ignored-files): Ignore deleted cedet test files, and "*.el".
(authors-ambiguous-files): New list.
(authors-valid-file-names): Add some deleted files.
(authors-renamed-files-alist): Add font-setting.el, edt-user.doc.
(authors-disambiguate-file-name): New function.  (Bug#5501)
(authors-canonical-file-name): Doc fix.
Don't warn about obsolete files.
(authors-canonical-file-name, authors-scan-el):
Use authors-disambiguate-file-name.

14 years ago* Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
Dan Nicolaescu [Fri, 23 Apr 2010 22:28:10 +0000 (15:28 -0700)]
* Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
* Makefile.in (ALL_CFLAGS): Remove C_SWITCH_X_MACHINE, unused.

14 years ago* s/cygwin.h (LIBS_DEBUG): Remove, unused.
Dan Nicolaescu [Fri, 23 Apr 2010 22:22:06 +0000 (15:22 -0700)]
* s/cygwin.h (LIBS_DEBUG): Remove, unused.

14 years agoRemove redundant flags.
Dan Nicolaescu [Fri, 23 Apr 2010 22:18:49 +0000 (15:18 -0700)]
Remove redundant flags.
* s/freebsd.h (C_SWITCH_SYSTEM):
* s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
* s/netbsd.h (C_SWITCH_SYSTEM):
* s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
of these.

14 years agoSimplify m/intel386.h.
Dan Nicolaescu [Fri, 23 Apr 2010 22:14:14 +0000 (15:14 -0700)]
Simplify m/intel386.h.
* m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
user: ecrt0.c.
(SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
(USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
the only user: s/unixware.h.
* ecrt0.c: Remove #ifndef static.  Inline CRT0_DUMMIES definition
from m/intel386.h.
* s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Definitions
moved here from m/intel386.h.

14 years ago* m/mips.h: Remove #if 0 code.
Dan Nicolaescu [Fri, 23 Apr 2010 21:58:07 +0000 (14:58 -0700)]
* m/mips.h: Remove #if 0 code.

14 years agoFix display of composed characters from L2R scripts in bidi buffers. (Bug#5977)
Eli Zaretskii [Fri, 23 Apr 2010 18:23:51 +0000 (21:23 +0300)]
Fix display of composed characters from L2R scripts in bidi buffers. (Bug#5977)

 xdisp.c (set_iterator_to_next, next_element_from_composition):
 After advancing IT past the composition, resync the bidi iterator
 with IT's position.

14 years agoFix display of composed characters from L2R scripts in bidi buffers.
Eli Zaretskii [Fri, 23 Apr 2010 18:10:31 +0000 (21:10 +0300)]
Fix display of composed characters from L2R scripts in bidi buffers.

 xdisp.c (set_iterator_to_next, next_element_from_composition): After
 advancing IT past the composition, resync the bidi iterator with
 IT's position.  (Bug#5977)

14 years agodispextern.h: Fix a typo in a comment.
Eli Zaretskii [Fri, 23 Apr 2010 17:48:22 +0000 (20:48 +0300)]
dispextern.h: Fix a typo in a comment.

14 years ago* Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
Dan Nicolaescu [Fri, 23 Apr 2010 17:40:47 +0000 (10:40 -0700)]
* Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
(TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.

14 years agoProvide byte-compiler warnings when set-default a read-only var.
Stefan Monnier [Fri, 23 Apr 2010 16:26:11 +0000 (12:26 -0400)]
Provide byte-compiler warnings when set-default a read-only var.
* emacs-lisp/bytecomp.el (byte-compile-set-default): New function.
(byte-compile-setq-default): Optimize for the
single-var case and don't call byte-compile-form in this case to avoid
inf-loop with byte-compile-set-default.

14 years ago* mm-util.el (mm-find-buffer-file-coding-system):
Stefan Monnier [Fri, 23 Apr 2010 16:15:51 +0000 (12:15 -0400)]
* mm-util.el (mm-find-buffer-file-coding-system):
* yenc.el (yenc-decode-region): Don't let-bind a read-only variable.

14 years ago* progmodes/compile.el: (compilation-start): Abbreviate default directory.
Stefan Monnier [Fri, 23 Apr 2010 15:59:32 +0000 (11:59 -0400)]
* progmodes/compile.el: (compilation-start): Abbreviate default directory.

14 years ago* gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
Stefan Monnier [Fri, 23 Apr 2010 15:50:48 +0000 (11:50 -0400)]
* gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.

14 years agoxdisp.c (pop_it): Fix last change.
Eli Zaretskii [Fri, 23 Apr 2010 15:24:39 +0000 (18:24 +0300)]
xdisp.c (pop_it): Fix last change.

14 years agoSupport `display' text properties and overlay strings in bidi buffers.
Eli Zaretskii [Fri, 23 Apr 2010 15:09:11 +0000 (18:09 +0300)]
Support `display' text properties and overlay strings in bidi buffers.

 xdisp.c (pop_it): When the stack is popped after displaying
 from a string, bidi-iterate to exit from the text portion covered
 by the `display' property or overlay.  (Bug#5988, bug#5920)

14 years agoSupport `display' text properties and overlays.
Eli Zaretskii [Fri, 23 Apr 2010 15:05:23 +0000 (18:05 +0300)]
Support `display' text properties and overlays.

 xdisp.c (pop_it): When the stack is popped after displaying
 from a string, bidi-iterate to exit from the text portion covered
 by the `display' property or overlay.  (Bug#5988, bug#5920)

14 years ago* etc/NEWS: Tramp supports SELinux.
Michael Albinus [Fri, 23 Apr 2010 14:19:44 +0000 (16:19 +0200)]
* etc/NEWS: Tramp supports SELinux.

14 years agoImplement SELINUX backends.
Michael Albinus [Fri, 23 Apr 2010 14:12:05 +0000 (16:12 +0200)]
Implement SELINUX backends.

* net/tramp.el (tramp-file-name-handler-alist): Add
`file-selinux-context' and `set-file-selinux-context'.
(tramp-handle-file-selinux-context)
(tramp-handle-set-file-selinux-context): New defuns.
(tramp-handle-copy-file, tramp-do-copy-or-rename-file): Handle
PRESERVE-SELINUX-CONTEXT.

* net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist): Add
`file-selinux-context' and `set-file-selinux-context'.
(tramp-gvfs-handle-file-selinux-context)
(tramp-gvfs-handle-set-file-selinux-context): New defuns.
(tramp-gvfs-handle-copy-file): Handle PRESERVE-SELINUX-CONTEXT.

* net/ange-ftp.el (ange-ftp-copy-file):
* net/tramp-fish.el (tramp-fish-handle-copy-file):
* net/tramp-imap.el (tramp-imap-handle-copy-file):
* net/tramp-smb.el (tramp-smb-handle-copy-file): Add
PRESERVE-SELINUX-CONTEXT.

14 years ago(LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
Dan Nicolaescu [Fri, 23 Apr 2010 09:06:43 +0000 (02:06 -0700)]
(LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
(LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.

14 years ago* s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
Dan Nicolaescu [Fri, 23 Apr 2010 07:37:42 +0000 (00:37 -0700)]
* s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
* s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.

14 years agoSimplify STARTFILES definition.
Dan Nicolaescu [Fri, 23 Apr 2010 07:21:18 +0000 (00:21 -0700)]
Simplify STARTFILES definition.
* s/hpux10-20.h (START_FILES): Explicitly define here instead of
relying on Makefile.in to define it.
* s/cygwin.h (START_FILES): Likewise.
* Makefile.in (STARTFILES): Remove conditional code, not needed anymore.

14 years agoClean up Solaris code.
Dan Nicolaescu [Fri, 23 Apr 2010 07:00:38 +0000 (00:00 -0700)]
Clean up Solaris code.
* s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
(LIB_MOTIF): Remove, configure takes care of this.
(NOT_USING_MOTIF): Remove, unused.
* xrdb.c: Remove #if 0-ed #include.
(SYSV): Remove conditional for old SysV.
* sysdep.c (closedir): Remove conditional code for Solaris,
Solaris has closedir.

14 years ago* etc/NEWS: More SELinux details and some minor fixes.
Glenn Morris [Fri, 23 Apr 2010 05:43:48 +0000 (22:43 -0700)]
* etc/NEWS: More SELinux details and some minor fixes.

14 years agoChangeLog fixes.
Glenn Morris [Fri, 23 Apr 2010 05:40:33 +0000 (22:40 -0700)]
ChangeLog fixes.

14 years agoRestore 0644 file permissions, which were changed accidently.
Michael Albinus [Fri, 23 Apr 2010 02:46:53 +0000 (04:46 +0200)]
Restore 0644 file permissions, which were changed accidently.

14 years agoRegenerate configure.
Dan Nicolaescu [Thu, 22 Apr 2010 20:32:43 +0000 (13:32 -0700)]
Regenerate configure.

14 years agoFix Bug#6001.
Jan Djärv [Thu, 22 Apr 2010 17:23:18 +0000 (19:23 +0200)]
Fix Bug#6001.

* xsettings.c (read_and_apply_settings): Check if current_font is
  NULL before strcmp (Bug#6001).

14 years ago* configure.in (REAL_CFLAGS, CFLAGS): Restore -g for gcc.
Dan Nicolaescu [Thu, 22 Apr 2010 16:37:58 +0000 (09:37 -0700)]
* configure.in (REAL_CFLAGS, CFLAGS): Restore -g for gcc.

14 years agoSynchronize with Tramp repository.
Michael Albinus [Thu, 22 Apr 2010 12:07:37 +0000 (14:07 +0200)]
Synchronize with Tramp repository.

* net/tramp.el (with-connection-property, tramp-completion-mode-p)
(tramp-action-process-alive, tramp-action-out-of-band)
(tramp-check-for-regexp, tramp-file-name-p, tramp-equal-remote)
(tramp-exists-file-name-handler): Fix docstring.
(with-progress-reporter): New defmacro.
(tramp-do-copy-or-rename-file, tramp-handle-dired-compress-file)
(tramp-maybe-open-connection): Use it.

14 years agoDetect ssh 'ControlMaster' argument automatically in some cases.
Michael Albinus [Thu, 22 Apr 2010 11:21:39 +0000 (13:21 +0200)]
Detect ssh 'ControlMaster' argument automatically in some cases.

* net/tramp.el (tramp-detect-ssh-controlmaster): New defun.
(tramp-default-method): Use it.

14 years ago* net/tramp.el (tramp-handle-copy-file): Add new optional
Michael Albinus [Thu, 22 Apr 2010 09:15:27 +0000 (11:15 +0200)]
* net/tramp.el (tramp-handle-copy-file): Add new optional
parameter `preserve-selinux-context'.
(tramp-file-name-for-operation): Add `set-file-selinux-context'.

14 years ago(message-generate-headers): Record insertion of optional headers as well.
Katsumi Yamaoka [Thu, 22 Apr 2010 08:24:25 +0000 (08:24 +0000)]
(message-generate-headers): Record insertion of optional headers as well.
Otherwise the check to prevent repeated insertion of optional headers
is a no-op.  By Andreas Seltenreich <seltenreich@gmx.de>.

14 years ago* net/tramp.el(tramp-completion-handle-file-name-all-completions):
Michael Albinus [Thu, 22 Apr 2010 04:30:16 +0000 (06:30 +0200)]
* net/tramp.el(tramp-completion-handle-file-name-all-completions):
Ensure, that non remote files are still checked.  Oops.

14 years agoUpdate ChangeLog
Miles Bader [Thu, 22 Apr 2010 00:15:20 +0000 (09:15 +0900)]
Update ChangeLog

14 years agoUpdate configure
Miles Bader [Thu, 22 Apr 2010 00:10:43 +0000 (09:10 +0900)]
Update configure

14 years agoget rid of "unix" pre-defined macro when preprocessing Makefile
Miles Bader [Thu, 22 Apr 2010 00:10:30 +0000 (09:10 +0900)]
get rid of "unix" pre-defined macro when preprocessing Makefile

14 years agoAvoid non-portable shell command negation
Andreas Schwab [Wed, 21 Apr 2010 21:44:48 +0000 (23:44 +0200)]
Avoid non-portable shell command negation
* configure.in: Revert last change.

14 years agoFix Bug#5840.
Michael Albinus [Wed, 21 Apr 2010 19:48:42 +0000 (21:48 +0200)]
Fix Bug#5840.

* icomplete.el (icomplete-completions): Use `non-essential'.

* net/tramp.el (tramp-connectable-p): New defun.
(tramp-handle-expand-file-name)
(tramp-completion-handle-file-name-all-completions)
(tramp-completion-handle-file-name-completion): Use it.

14 years agoClean up HP-UX files.
Dan Nicolaescu [Wed, 21 Apr 2010 19:32:54 +0000 (12:32 -0700)]
Clean up HP-UX files.
* m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
(DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
(LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
* s/hpux10-20.h: ... to the only user, here.

14 years ago* xsettings.c: Move misplaced HAVE_GCONF
Jan Djärv [Wed, 21 Apr 2010 18:25:13 +0000 (20:25 +0200)]
* xsettings.c: Move misplaced HAVE_GCONF

14 years agoFix bug #5992.
Eli Zaretskii [Wed, 21 Apr 2010 17:59:39 +0000 (20:59 +0300)]
Fix bug #5992.

 bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
 use buffer-local values of paragraph-start and paragraph-separate.
 <paragraph_start_re, paragraph_separate_re>: Rename from
 fallback_paragraph_start_re and fallback_paragraph_separate_re.

14 years ago(lisp-completion-at-point): Try and handle errors.
Stefan Monnier [Wed, 21 Apr 2010 17:53:03 +0000 (13:53 -0400)]
(lisp-completion-at-point): Try and handle errors.

14 years agoconfigure.in: Change "if test ! -f" to "if ! test -f".
Jan Djärv [Wed, 21 Apr 2010 16:41:29 +0000 (18:41 +0200)]
configure.in: Change "if test ! -f" to "if ! test -f".
Regenerate configure.