bpt/emacs.git
14 years agoFix fringe truncation bitmaps in R2L lines.
Eli Zaretskii [Sat, 8 May 2010 09:29:49 +0000 (12:29 +0300)]
Fix fringe truncation bitmaps in R2L lines.

 fringe.c (update_window_fringes): Set up truncation bitmaps for R2L lines.

14 years agoRegenerate configure.
Glenn Morris [Sat, 8 May 2010 02:13:50 +0000 (19:13 -0700)]
Regenerate configure.

14 years agoRemove unused Makefile definition THIS_IS_MAKEFILE.
Glenn Morris [Sat, 8 May 2010 02:11:06 +0000 (19:11 -0700)]
Remove unused Makefile definition THIS_IS_MAKEFILE.
* src/Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
* lib-sc/Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
* admin/CPP-DEFINES (THIS_IS_MAKEFILE): Remove.

14 years agoMove TERMINFO, LIBS_TERMCAP from cpp to configure.
Glenn Morris [Sat, 8 May 2010 02:05:24 +0000 (19:05 -0700)]
Move TERMINFO, LIBS_TERMCAP from cpp to configure.

* configure.in (HAVE_LIBNCURSES): New local variable.
(TERMINFO, LIBS_TERMCAP, TERMCAP_OBJ): New output variables,
replacing cpp in src/s/*.h and src/Makefile.in.

* src/Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
(TERMCAP_OBJ): New, set by configure, replacing termcapobj.
(termcapobj): Replace with TERMCAP_OBJ.
(otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
(LIBES): Use LIBS_TERMCAP as a variable.

* src/s/freebsd.h (osreldate.h): No longer include, since this file
does not use __FreeBSD_version any more.

* srs/s/aix4-2.h (TERMINFO):
* srs/s/cygwin.h (TERMINFO):
* srs/s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
* srs/s/freebsd.h (TERMINFO, LIBS_TERMCAP):
* srs/s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
* srs/s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
* srs/s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
* srs/s/irix6-5.h (TERMINFO):
* srs/s/netbsd.h (LIBS_TERMCAP):
* srs/s/openbsd.h (TERMINFO, LIBS_TERMCAP):
* srs/s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
* srs/s/usg5-4.h (TERMINFO):
Move to configure.

* msdos/sed1v2.inp (LIBS_TERMCAP): Edit to empty.
(TERMCAP_OBJ): Edit to tparam.o.

* admin/CPP-DEFINES (LIBS_TERMCAP, TERMINFO): Remove.

14 years agoMisc code tweaks.
Stefan Monnier [Sat, 8 May 2010 00:20:30 +0000 (20:20 -0400)]
Misc code tweaks.
* electric.el (Electric-command-loop): Minor tweak.
* ebuff-menu.el (electric-buffer-list): Try and make it behave a bit
better with dedicated windows.

14 years agoTry and fix unbind_to when localness of binding has changed
Stefan Monnier [Fri, 7 May 2010 20:33:00 +0000 (16:33 -0400)]
Try and fix unbind_to when localness of binding has changed
* eval.c (unbind_to): Don't unbind a local binding into the global
binding when the local binding disappeared.  Inversely, don't unbind
a global binding into a newly created local binding.
* data.c (set_internal): Make its `buf' arg into a `where' arg so we
can specify the frame to use, when applicable.  Adjust callers.

14 years ago* floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
Vincent Belaïche [Fri, 7 May 2010 18:55:18 +0000 (14:55 -0400)]
* floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
* configure.in: Add tests for `isnan' and `copysign'.

14 years agoHighlight vendor specific properties.
Stefan Monnier [Fri, 7 May 2010 17:47:56 +0000 (13:47 -0400)]
Highlight vendor specific properties.
* textmodes/css-mode.el (css-proprietary-nmstart-re): New var.
(css-proprietary-property): New face.
(css-font-lock-keywords): Use them.

14 years agoFix bug #6126.
Eli Zaretskii [Fri, 7 May 2010 17:14:26 +0000 (20:14 +0300)]
Fix bug #6126.

 w32fns.c: Include w32.h.
 (Fw32_shell_execute): Decode the error message before passing it to `error'.

14 years agoFix bug #6126.
Eli Zaretskii [Fri, 7 May 2010 17:08:31 +0000 (20:08 +0300)]
Fix bug #6126.

 w32fns.c: Include w32.h.
 (Fw32_shell_execute): Decode the error message before passing it
 to `error'.

14 years agoNEWS: Remove FUD from description of bidirectional editing.
Eli Zaretskii [Fri, 7 May 2010 17:04:15 +0000 (20:04 +0300)]
NEWS: Remove FUD from description of bidirectional editing.

14 years ago* textmodes/dns-mode.el (auto-mode-alist): Add entry for .zone files.
Stefan Monnier [Fri, 7 May 2010 14:18:27 +0000 (10:18 -0400)]
* textmodes/dns-mode.el (auto-mode-alist): Add entry for .zone files.
* files.el (auto-mode-alist): Remove redundant entries.

14 years agoFix MSDOS build broken by autoconfiscation and changes in symbol handling.
Eli Zaretskii [Fri, 7 May 2010 14:07:51 +0000 (17:07 +0300)]
Fix MSDOS build broken by autoconfiscation and changes in symbol handling.

 src/msdos.c (dos_set_window_size):
 src/w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
 instead of `XSYMBOL (foo)->value'.
 config.bat: Allow for 2 leading `#'s in comments in
 src/Makefile.in.
 src/Makefile.in: Don't use Make-style comments past the "start of
 cpp stuff" line.
 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
 src/s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
 edited directly by msdos/sed1v2.inp).
 msdos/sed3v2.inp (C_SWITCH_MACHINE): Edit to empty.
 msdos/sed1v2.inp (@LIB_MATH@): Edit to -lm.
 (C_SWITCH_MACHINE, C_SWITCH_SYSTEM, LD_SWITCH_SYSTEM_TEMACS)
 (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH)
 (LD_SWITCH_SYSTEM, LD_SWITCH_SYSTEM_EXTRA, LIBTIFF, LIBJPEG)
 (LIBPNG, LIBGIF, LIBXPM, XFT_LIBS, DBUS_CFLAGS, DBUS_LIBS)
 (DBUS_OBJ, GCONF_CFLAGS, GCONF_LIBS, GTK_OBJ, LIBXMU, LIBXSM)
 (LIBXTR6, XOBJ, TOOLKIT_LIBW, WIDGET_OBJ, CYGWIN_OBJ, NS_OBJ)
 (NS_SUPPORT, LIBSELINUX_LIBS, START_FILES): Edit to empty.
 (XMENU_OBJ): Edit to xmenu.o.
 (FONT_OBJ): Edit to value used for X on Unix.
 (PRE_ALLOC_OBJ): Edit to lastfile.o.
 (POST_ALLOC_OBJ): Edit to $(vmlimitobj).
 (@unexec@): Edit to unexec.o.
 lisp/cus-start.el (all): Add native condition for tool-bar-* symbols.

14 years agocus-start.el (all): Add native condition for tool-bar-* symbols.
Eli Zaretskii [Fri, 7 May 2010 13:52:25 +0000 (16:52 +0300)]
cus-start.el (all): Add native condition for tool-bar-* symbols.

14 years agoDon't use XSYMBOL (foo)->value.
Eli Zaretskii [Fri, 7 May 2010 13:51:16 +0000 (16:51 +0300)]
Don't use XSYMBOL (foo)->value.

 msdos.c (dos_set_window_size):
 w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
 instead of `XSYMBOL (foo)->value'.

14 years agoFix MS-DOS configuring in lib-src/ and src/, broken by autoconfiscation.
Eli Zaretskii [Fri, 7 May 2010 12:57:24 +0000 (15:57 +0300)]
Fix MS-DOS configuring in lib-src/ and src/, broken by autoconfiscation.

 src/Makefile.in: Don't use Make-style comments past the "start of
 cpp stuff" line.
 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
 src/s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
 edited directly by msdos/sed1v2.inp).
 msdos/sed3v2.inp (C_SWITCH_MACHINE): Edit to empty.
 msdos/sed1v2.inp (@LIB_MATH@): Edit to -lm.
 (C_SWITCH_MACHINE, C_SWITCH_SYSTEM, LD_SWITCH_SYSTEM_TEMACS)
 (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH)
 (LD_SWITCH_SYSTEM, LD_SWITCH_SYSTEM_EXTRA, LIBTIFF, LIBJPEG)
 (LIBPNG, LIBGIF, LIBXPM, XFT_LIBS, DBUS_CFLAGS, DBUS_LIBS)
 (DBUS_OBJ, GCONF_CFLAGS, GCONF_LIBS, GTK_OBJ, LIBXMU, LIBXSM)
 (LIBXTR6, XOBJ, TOOLKIT_LIBW, WIDGET_OBJ, CYGWIN_OBJ, NS_OBJ)
 (NS_SUPPORT, LIBSELINUX_LIBS, START_FILES): Edit to empty.
 (XMENU_OBJ): Edit to xmenu.o.
 (FONT_OBJ): Edit to value used for X on Unix.
 (PRE_ALLOC_OBJ): Edit to lastfile.o.
 (POST_ALLOC_OBJ): Edit to $(vmlimitobj).
 (@unexec@): Edit to unexec.o.

14 years ago* files.el (auto-save-mode): Move to simple.el to fix bootstrap.
Stefan Monnier [Fri, 7 May 2010 12:49:14 +0000 (08:49 -0400)]
* files.el (auto-save-mode): Move to simple.el to fix bootstrap.
* simple.el (auto-save-mode): Move from files.el.
* minibuffer.el (completion--common-suffix): Fix copy&paste error.

14 years agoFix the "config msdos" step of MS-DOS build (due to removal of some cpp stuff from...
Eli Zaretskii [Fri, 7 May 2010 11:21:29 +0000 (14:21 +0300)]
Fix the "config msdos" step of MS-DOS build (due to removal of some cpp stuff from configury).

 config.bat: Allow for 2 leading `#'s in comments in src/Makefile.in.
 src/Makefile.in: Don't use Make-style comments past the
 "start of cpp stuff" line.

14 years agoHELLO: Reorder Arabic greetings into logical order.
Eli Zaretskii [Fri, 7 May 2010 10:45:54 +0000 (13:45 +0300)]
HELLO: Reorder Arabic greetings into logical order.

14 years agoSkip disabled PGP key when encrypting mail with Gnus.
Daiki Ueno [Fri, 7 May 2010 08:10:28 +0000 (17:10 +0900)]
Skip disabled PGP key when encrypting mail with Gnus.

* lisp/epg.el (epg-key-capablity-alist): Add "D" flag (Bug#5592).
* lisp/gnus/mml2015.el (mml2015-epg-find-usable-key): Skip disabled key (Bug#5592).

14 years agoFix typos.
Katsumi Yamaoka [Fri, 7 May 2010 07:41:53 +0000 (07:41 +0000)]
Fix typos.

14 years agoSynch with Gnus trunk.
Katsumi Yamaoka [Fri, 7 May 2010 07:28:15 +0000 (07:28 +0000)]
Synch with Gnus trunk.
Note: Julien has already sent a form to FSF to sign a paper.
2010-05-07  Julien Danjou  <julien@danjou.info>
 * gnus-art.el (gnus-mime-pipe-part): Add optional argument `cmd'; pass
 it to mm-pipe-part.

 * mm-decode.el (mm-pipe-part): Add optional argument `cmd'; use it if
 it is given.

14 years agoSynch with Gnus trunk.
Katsumi Yamaoka [Fri, 7 May 2010 06:58:17 +0000 (06:58 +0000)]
Synch with Gnus trunk.
* mail/binhex.el (binhex-decode-region-internal)
* mail/uudecode.el (uudecode-decode-region-internal)
* net/dns.el (dns-read-string-name, dns-write, dns-read)
(dns-read-type, dns-query)
* pgg-parse.el (pgg-parse-armor)
* pgg.el (pgg-verify-region)
* sha1.el (sha1-string-external): Don't run set-buffer-multibyte for
XEmacs.

* net/imap.el (imap-disable-multibyte): Redefine them as a macro.

* nnweb.el (nnweb-gmane-search)
* yenc.el (yenc-decode-region): Don't run set-buffer-multibyte for
XEmacs.

* gnus-art.el (gnus-article-browse-html-parts)
* gnus-group.el (gnus-read-ephemeral-gmane-group)
(gnus-read-ephemeral-bug-grou): Use mm-make-temp-file instead of
make-temp-file.

* gnus-dired.el (gnus-dired-mode): Bind gnus-dired-mode-hook,
gnus-dired-mode-on-hook and gnus-dired-mode-off-hook for XEmacs when
compiling.

* gnus-ml.el (gnus-mailing-list-mode): Bind gnus-mailing-list-mode-hook,
gnus-mailing-list-mode-on-hook and gnus-mailing-list-mode-off-hook for
XEmacs when compiling.

* gnus-salt.el (gnus-pick-mode): Bind gnus-pick-mode-on-hook and
gnus-pick-mode-off-hook for XEmacs when compiling.
(gnus-binary-mode): Bind gnus-binary-mode-on-hook and
gnus-binary-mode-off-hook for XEmacs when compiling.

* gnus-sum.el (gnus-summary-limit-strange-charsets-predicate): Return
nil if char-charset is not available.

* sieve-manage.el (sieve-manage-disable-multibyte): Redefine them as a
macro.

* mm-url.el (mm-url-form-encode-xwfu): Use mm-encode-coding-string
instead of encode-coding-string.

* mm-util.el (mm-enable-multibyte, mm-disable-multibyte): Use (featurep
'xemacs) instead of mm-emacs-mule to switch function definitions.
(mm-with-unibyte-current-buffer): Make it a progn macro for XEmacs.

14 years ago* progmodes/cperl-mode.el (cperl-mode-unload-function): New function.
Juanma Barranquero [Fri, 7 May 2010 03:21:06 +0000 (05:21 +0200)]
* progmodes/cperl-mode.el (cperl-mode-unload-function): New function.

14 years ago* minibuffer.el: Revert previous change.
Juanma Barranquero [Fri, 7 May 2010 03:11:56 +0000 (05:11 +0200)]
* minibuffer.el: Revert previous change.

14 years agoRegenerate configure.
Glenn Morris [Fri, 7 May 2010 03:01:40 +0000 (20:01 -0700)]
Regenerate configure.

14 years agoMissing part of previous commit.
Glenn Morris [Fri, 7 May 2010 02:59:20 +0000 (19:59 -0700)]
Missing part of previous commit.
* s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.

14 years agoMove LD_SWITCH_SYSTEM from cpp to configure.
Glenn Morris [Fri, 7 May 2010 02:55:47 +0000 (19:55 -0700)]
Move LD_SWITCH_SYSTEM from cpp to configure.

* configure.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
Merges logic from src/s/* and src/Makefile.in.
(LD_SWITCH_SYSTEM_TEMACS): New output variable.

* src/Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
(LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
(TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
move out of cpp section.
* src/s/freebsd.h (LD_SWITCH_SYSTEM):
* src/s/gnu-linux.h (LD_SWITCH_SYSTEM):
* src/s/netbsd.h (LD_SWITCH_SYSTEM):

* admin/CPP-DEFINES: Remove LD_SWITCH_SYSTEM.

14 years ago* minibuffer.el (comps): Declare for byte-compiler.
Juanma Barranquero [Fri, 7 May 2010 00:50:26 +0000 (02:50 +0200)]
* minibuffer.el (comps): Declare for byte-compiler.

14 years ago* cua-base.el, cua-gmrk.el: Fix use of `filter-buffer-substring'.
Juanma Barranquero [Fri, 7 May 2010 00:46:09 +0000 (02:46 +0200)]
* cua-base.el, cua-gmrk.el: Fix use of `filter-buffer-substring'.

14 years agoRemove more unused symbols.
Dan Nicolaescu [Fri, 7 May 2010 00:35:44 +0000 (17:35 -0700)]
Remove more unused symbols.

14 years agoDefine LIB_STANDARD and START_FILES using autoconf.
Dan Nicolaescu [Fri, 7 May 2010 00:30:56 +0000 (17:30 -0700)]
Define LIB_STANDARD and START_FILES using autoconf.
* s/usg5-4.h (LIB_STANDARD):
* s/netbsd.h (START_FILES):
* s/irix6-5.h (LIB_STANDARD):
* s/hpux10-20.h (LIB_STANDARD, START_FILES):
* s/gnu-linux.h (START_FILES, LIB_STANDARD):
* s/freebsd.h (START_FILES):
* s/darwin.h (START_FILES):
* s/cygwin.h (START_FILES):
* s/aix4-2.h (LIB_STANDARD):
* m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
* Makefile.in (STARTFILES): Rename to START_FILES, define using
autoconf, not cpp.

Define START_FILES and LIB_STANDARD using autoconf.
* configure.in (START_FILES, LIB_STANDARD): New definitions, moved
here from src/s/*.h.
(HAVE_CRTIN): Remove, inline logic in the netbsd
START_FILES/LIB_STANDARD computation.

14 years agoRemove NEED_BSDTTY and NEED_UNISTD_H.
Dan Nicolaescu [Thu, 6 May 2010 19:46:47 +0000 (12:46 -0700)]
Remove NEED_BSDTTY and NEED_UNISTD_H.
* s/hpux10-20.h (NEED_BSDTTY): Remove.
* s/aix4-2.h (NEED_UNISTD_H): Remove.
* systty.h: Simplify conditionals for including <sys/bsdtty.h>,
<sys/ptyio.h> and <unistd.h>.

14 years ago* emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
Dan Nicolaescu [Thu, 6 May 2010 19:40:02 +0000 (12:40 -0700)]
* emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.

14 years ago* Makefile.in (STARTFILES): Conditionally define to make the usage clear.
Dan Nicolaescu [Thu, 6 May 2010 16:18:33 +0000 (09:18 -0700)]
* Makefile.in (STARTFILES): Conditionally define to make the usage clear.
* s/gnu.h (START_FILES): Remove empty definition.

14 years ago* xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
Jan Djärv [Thu, 6 May 2010 09:34:56 +0000 (11:34 +0200)]
* xterm.c (x_draw_image_relief): Move declaration of extra to beginning.

14 years ago* net/tramp.el (top, with-progress-reporter): Use
Michael Albinus [Thu, 6 May 2010 08:40:06 +0000 (10:40 +0200)]
* net/tramp.el (top, with-progress-reporter): Use
`symbol-function' inside `funcall'.

* net/tramp-compat.el (tramp-compat-file-attributes)
(tramp-compat-delete-file, tramp-compat-delete-directory): Handle
only `wrong-number-of-arguments' error.

* net/tramp-gvfs.el (tramp-gvfs-handle-copy-file): Fix typo.
(tramp-gvfs-handle-file-selinux-context): Use `symbol-function'
inside `funcall'.

14 years agoRegenerate configure.
Glenn Morris [Thu, 6 May 2010 08:07:12 +0000 (01:07 -0700)]
Regenerate configure.

14 years agoMinimize blessmail-related cpp usage, with an eye to future removal.
Glenn Morris [Thu, 6 May 2010 08:03:27 +0000 (01:03 -0700)]
Minimize blessmail-related cpp usage, with an eye to future removal.

* lib-src/Makefile.in: (BLESSMAIL_TARGET): New variable.
(MOVEMAIL_NEEDS_BLESSING): Remove, replace by above variable.
(blessmail): Always define this rule.
(need-blessmail): New rule, split out from maybe-blessmail.
(maybe-blessmail): Use BLESSMAIL_TARGET.

14 years agoLet configure handle ranlib.
Glenn Morris [Thu, 6 May 2010 07:29:09 +0000 (00:29 -0700)]
Let configure handle ranlib.

* oldXMenu/Makefile.in (RANLIB): Let configure set it.
(libXMenu11.a): configure sets RANLIB = : on systems without it.

14 years agoRemove some unused Makefile.in variables.
Glenn Morris [Thu, 6 May 2010 07:24:18 +0000 (00:24 -0700)]
Remove some unused Makefile.in variables.

* configure.in (AC_PROG_LN_S): Remove test, nothing uses @LN_S@.

* Makefile.in (CPP, C_SWITCH_SYSTEM, ALLOCA, LN_S, C_SWITCH_X_SITE)
(LD_SWITCH_X_SITE): Remove unused variables.

* lwlib/Makefile.in (CPP, LN_S, TOP, LN): Remove unused variables.

* oldXMenu/Makefile.in (CPP, LN_S, AS, LD, MV, LS, LINTOPTS, LINTLIBFLAG, MAKE)
(STD_DEFINES, CDEBUGFLAGS, RM_CMD): Remove unused variables.

* src/Makefile.in (CPP, LN_S): Remove unused variables.

* msdos/sed1v2.inp, msdos/sed5x.inp: Remove LN_S, unused.

14 years agoSynch with Gnus trunk.
Katsumi Yamaoka [Thu, 6 May 2010 06:05:48 +0000 (06:05 +0000)]
Synch with Gnus trunk.
(mml-secure-message-sign): Fix cut and paste error.

14 years agoSynch with Gnus trunk.
Katsumi Yamaoka [Thu, 6 May 2010 05:54:57 +0000 (05:54 +0000)]
Synch with Gnus trunk.
(mml-secure-message-sign): Fix cut and paste error.

14 years agosrc/Makefile.in: Convert comment in cpp section to the right format.
Glenn Morris [Thu, 6 May 2010 05:50:26 +0000 (22:50 -0700)]
src/Makefile.in: Convert comment in cpp section to the right format.

14 years agoComment changes for some src/m/*.h files.
Glenn Morris [Thu, 6 May 2010 05:27:17 +0000 (22:27 -0700)]
Comment changes for some src/m/*.h files.

Remove some out-of-date comments, reformat others.

14 years agoUpdate.
Katsumi Yamaoka [Thu, 6 May 2010 04:19:22 +0000 (04:19 +0000)]
Update.

14 years agoRequire easy-mmode for XEmacs when compiling.
Katsumi Yamaoka [Thu, 6 May 2010 04:15:34 +0000 (04:15 +0000)]
Require easy-mmode for XEmacs when compiling.

14 years agoSynch with Gnus trunk.
Katsumi Yamaoka [Thu, 6 May 2010 03:27:20 +0000 (03:27 +0000)]
Synch with Gnus trunk.
(mml-generate-mime-1,mml-compute-boundary-1): Update 'mml
handles on recursive mml-to-mime translation and check them for
boundary delimiter collisions.  Reported by: Greg Troxel.

14 years agoExtract common suffix for * in partial-completion.
Stefan Monnier [Thu, 6 May 2010 02:59:07 +0000 (22:59 -0400)]
Extract common suffix for * in partial-completion.
* minibuffer.el (completion--sreverse, completion--common-suffix):
New functions.
(completion-pcm--merge-completions): Extract common suffix when safe.

14 years agoDefine auto-save-mode with define-minor-mode.
Stefan Monnier [Thu, 6 May 2010 02:53:56 +0000 (22:53 -0400)]
Define auto-save-mode with define-minor-mode.
* emacs-lisp/easy-mmode.el (define-minor-mode):
Make :variable more flexible.
* files.el (auto-save-mode): Use it to define using define-minor-mode.

14 years agolib-src/ChangeLog: Remove duplicate entry.
Juanma Barranquero [Wed, 5 May 2010 22:14:15 +0000 (00:14 +0200)]
lib-src/ChangeLog: Remove duplicate entry.

14 years agoAdd `slow' and `history' tags to the desktop data.
Juri Linkov [Wed, 5 May 2010 21:56:15 +0000 (00:56 +0300)]
Add `slow' and `history' tags to the desktop data.

* info.el (Info-virtual-nodes) [*Index*]: Add `slow' tag.
(Info-virtual-files) [*Apropos*]: Add `slow' tag.
(Info-finder-find-node): Require `finder.el' to be able
to restore node from the desktop.
(Info-desktop-buffer-misc-data): Save all nodes.  Save additional
data `Info-history' and `slow' tag in the assoc list.
(Info-restore-desktop-buffer): Don't restore nodes with the
`slow' tag.  Restore `Info-history'.

14 years ago* syntax.c (Fchar_syntax): Check the arg is a character.
Stefan Monnier [Wed, 5 May 2010 17:51:40 +0000 (13:51 -0400)]
* syntax.c (Fchar_syntax): Check the arg is a character.

Fixes: debbugs:6080

14 years ago* src/m/sparc.h: Fix typo in earlier change.
Lawrence Mitchell [Wed, 5 May 2010 15:51:32 +0000 (08:51 -0700)]
* src/m/sparc.h: Fix typo in earlier change.

14 years agoAdd FORCE argument to `delete-file'.
Michael Albinus [Wed, 5 May 2010 10:20:23 +0000 (12:20 +0200)]
Add FORCE argument to `delete-file'.

* net/ange-ftp.el (ange-ftp-del-tmp-name): Make it a defun,
forcing to delete the temporary file.
(ange-ftp-delete-file): Add FORCE arg.
(ange-ftp-rename-remote-to-remote)
(ange-ftp-rename-local-to-remote, ange-ftp-rename-remote-to-local)
(ange-ftp-load, ange-ftp-compress, ange-ftp-uncompress): Force
file deletion.

* net/tramp-compat.el (tramp-compat-delete-file): New defun.

* net/tramp.el (tramp-handle-delete-file): Add FORCE arg.
(tramp-handle-make-symbolic-link, tramp-handle-load)
(tramp-do-copy-or-rename-file-via-buffer)
(tramp-do-copy-or-rename-file-directly)
(tramp-do-copy-or-rename-file-out-of-band)
(tramp-handle-process-file, tramp-handle-call-process-region)
(tramp-handle-shell-command, tramp-handle-file-local-copy)
(tramp-handle-insert-file-contents, tramp-handle-write-region)
(tramp-delete-temp-file-function): Use `tramp-compat-delete-file'.

* net/tramp-fish.el (tramp-fish-handle-delete-file): Add FORCE arg.
(tramp-fish-handle-make-symbolic-link)
(tramp-fish-handle-process-file): Use `tramp-compat-delete-file'.

* net/tramp-ftp.el (tramp-ftp-file-name-handler): Use
`tramp-compat-delete-file'.

* net/tramp-gvfs.el (tramp-gvfs-handle-delete-file): Add FORCE arg.
(tramp-gvfs-handle-write-region): Use `tramp-compat-delete-file'.

* net/tramp-imap.el (tramp-imap-handle-delete-file): Add FORCE arg.
(tramp-imap-do-copy-or-rename-file): Use `tramp-compat-delete-file'.

* net/tramp-smb.el (tramp-smb-handle-delete-file): Add FORCE arg.
(tramp-smb-handle-copy-file, tramp-smb-handle-file-local-copy)
(tramp-smb-handle-rename-file, tramp-smb-handle-write-region): Use
`tramp-compat-delete-file'.

14 years agoMinor cleanups.
Stefan Monnier [Wed, 5 May 2010 04:27:16 +0000 (00:27 -0400)]
Minor cleanups.
* org-table.el (orgtbl-setup):
* org-agenda.el (org-agenda-entry-text-mode): Simplify.
* subr.el (add-minor-mode): Use push.
* mail/supercite.el (sc-electric-mode): Use more descriptive arg name.
* emulation/edt.el (edt-select-mode): Simplify.

14 years agoUse define-minor-mode in more cases.
Stefan Monnier [Wed, 5 May 2010 03:45:21 +0000 (23:45 -0400)]
Use define-minor-mode in more cases.
* term/tvi970.el (tvi970-set-keypad-mode):
* simple.el (auto-fill-mode, overwrite-mode, binary-overwrite-mode)
(normal-erase-is-backspace-mode):
* scroll-bar.el (scroll-bar-mode): Use it and define-minor-mode.
(set-scroll-bar-mode-1): (Re)move to its sole caller.
(get-scroll-bar-mode): New function.
* emacs-lisp/cl-macs.el (eq): Handle a non-variable first arg.

14 years agoUse define-minor-mode for less obvious cases.
Stefan Monnier [Wed, 5 May 2010 02:08:25 +0000 (22:08 -0400)]
Use define-minor-mode for less obvious cases.
* emacs-lisp/easy-mmode.el (define-minor-mode): Add :variable keyword.
* emacs-lisp/cl-macs.el (terminal-parameter, eq): Add setf method.
* international/iso-ascii.el (iso-ascii-mode):
* frame.el (auto-raise-mode, auto-lower-mode):
* composite.el (global-auto-composition-mode): Use define-minor-mode.

14 years ago* src/ChangeLog: Formatting fixes.
Juanma Barranquero [Tue, 4 May 2010 18:21:32 +0000 (20:21 +0200)]
* src/ChangeLog: Formatting fixes.

14 years agoMisc tweaks.
Stefan Monnier [Tue, 4 May 2010 17:44:54 +0000 (13:44 -0400)]
Misc tweaks.
* eval.c (Fdefvaralias): Remove unintended nested if.
(internal_condition_case_2, internal_condition_case_n): Use ANSI type.

14 years agoDelete names that have been removed from the tree.
Dan Nicolaescu [Tue, 4 May 2010 16:53:59 +0000 (09:53 -0700)]
Delete names that have been removed from the tree.

14 years agoxsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
Jan Djärv [Tue, 4 May 2010 16:03:23 +0000 (18:03 +0200)]
xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).

14 years ago* net/tramp.el (tramp-methods): Remove "-q" from `tramp-login-args'
Michael Albinus [Tue, 4 May 2010 08:44:47 +0000 (10:44 +0200)]
* net/tramp.el (tramp-methods): Remove "-q" from `tramp-login-args'
in order to see error messages for failed logins.

14 years agoRemove BSD_PGRPS.
Dan Nicolaescu [Tue, 4 May 2010 07:40:53 +0000 (00:40 -0700)]
Remove BSD_PGRPS.
* s/bsd-common.h (BSD_PGRPS): Remove undef.
* s/gnu-linux.h (BSD_PGRPS): Remove.
* term.c (dissociate_if_controlling_tty):
* sysdep.c (narrow_foreground_group, widen_foreground_group)
(init_sys_modes, reset_sys_modes):
* emacs.c (main):
* callproc.c (Fcall_process, child_setup): Remove code depending
on BSD_PGRPS.

14 years agoRemove POSIX_SIGNALS.
Dan Nicolaescu [Tue, 4 May 2010 04:00:10 +0000 (21:00 -0700)]
Remove POSIX_SIGNALS.
* s/usg5-4.h (POSIX_SIGNALS):
* s/netbsd.h (POSIX_SIGNALS):
* s/msdos.h (POSIX_SIGNALS):
* s/ms-w32.h (POSIX_SIGNALS):
* s/hpux11.h (POSIX_SIGNALS):
* s/gnu.h (POSIX_SIGNALS):
* s/gnu-linux.h (POSIX_SIGNALS):
* s/freebsd.h (POSIX_SIGNALS):
* s/darwin.h (POSIX_SIGNALS):
* s/cygwin.h (POSIX_SIGNALS):
* s/aix4-2.h (POSIX_SIGNALS): Remove definition.
* s/unixware.h:
* s/sol2-6.h: Remove comments on POSIX_SIGNALS.
* process.c (create_process):
* syssignal.h:
* sysdep.c (wait_for_termination, init_signals):
* process.c (create_process):
* msdos.c: POSIX_SIGNALS is always defined on all platforms,
remove all code that assumes the contrary.

14 years agoRegenerate configure, src/config.in.
Glenn Morris [Tue, 4 May 2010 03:33:04 +0000 (20:33 -0700)]
Regenerate configure, src/config.in.

14 years agoYet another missing piece of C_SWITCH commit.
Glenn Morris [Tue, 4 May 2010 03:26:38 +0000 (20:26 -0700)]
Yet another missing piece of C_SWITCH commit.

* Makefile.in (C_SWITCH_SYSTEM): Use @C_SWITCH_SYSTEM@ rather than
@c_switch_system@.

* oldXMenu/Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE): Use
@C_SWITCH_SYSTEM@, @C_SWITCH_MACHINE@ rather than
@c_switch_system@, @c_switch_machine@.

14 years agoMissing lwlib part of earlier C_SWITCH commit.
Glenn Morris [Tue, 4 May 2010 03:20:50 +0000 (20:20 -0700)]
Missing lwlib part of earlier C_SWITCH commit.

* lwlib/Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE):
Use @C_SWITCH_SYSTEM@, @C_SWITCH_MACHINE@ instead of
@c_switch_system@, @c_switch_machine@.

14 years ago* admin/CPP-DEFINES: Remove some no-longer-used defines.
Glenn Morris [Tue, 4 May 2010 03:17:05 +0000 (20:17 -0700)]
* admin/CPP-DEFINES: Remove some no-longer-used defines.

14 years agoMove LD_SWITCH_X_SITE_AUX from cpp to autoconf.
Glenn Morris [Tue, 4 May 2010 03:13:35 +0000 (20:13 -0700)]
Move LD_SWITCH_X_SITE_AUX from cpp to autoconf.

* configure.in (LD_SWITCH_X_SITE_AUX): Use AC_SUBST only, not AC_DEFINE as well.
(LD_SWITCH_X_SITE_AUX_RPATH): New output variable.

* nt/config.nt (LD_SWITCH_X_SITE_AUX): Remove.

* src/s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
variable.
* src/s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
(LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
* src/s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
(LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
LD_SWITCH_SYSTEM_tmp.
* src/Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
New variables, set by configure.

14 years agoMove LD_SWITCH_SYSTEM_TEMACS from cpp to autoconf.
Glenn Morris [Tue, 4 May 2010 03:06:27 +0000 (20:06 -0700)]
Move LD_SWITCH_SYSTEM_TEMACS from cpp to autoconf.

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

* src/s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
* src/s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
(LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
* src/Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
(TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.

14 years agoMove C_SWITCH_MACHINE, C_SWITCH_SYSTEM from cpp to autoconf.
Glenn Morris [Tue, 4 May 2010 02:56:19 +0000 (19:56 -0700)]
Move C_SWITCH_MACHINE, C_SWITCH_SYSTEM from cpp to autoconf.

* configure.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM): New output
variables, replacing c_switch_machine, c_switch_system.

* src/s/aix4-2.h (C_SWITCH_SYSTEM):
* src/m/alpha.h (C_SWITCH_MACHINE):
Move to configure.in.
* src/Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
New variables, set by configure.
(ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
$c_switch_machine and $c_switch_system.

* lib-src/Makefile.in: Use @C_SWITCH_SYSTEM@, @C_SWITCH_MACHINE@
rather than @c_switch_system@, @c_switch_machine@.

14 years ago* s/hpux10-20.h (LIB_STANDARD): New definition.
Dan Nicolaescu [Tue, 4 May 2010 02:51:49 +0000 (19:51 -0700)]
* s/hpux10-20.h (LIB_STANDARD): New definition.
* Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
on it, not used anymore.

14 years ago* ibuffer.el: Update autoload checksum.
Juanma Barranquero [Mon, 3 May 2010 22:42:19 +0000 (00:42 +0200)]
* ibuffer.el: Update autoload checksum.

14 years ago* mm-util.el (mm-decompress-buffer): Use `delete-file'.
Juanma Barranquero [Mon, 3 May 2010 22:38:50 +0000 (00:38 +0200)]
* mm-util.el (mm-decompress-buffer): Use `delete-file'.

14 years agoAdd optional arg to delete-file to force deletion (Bug#6070).
Chong Yidong [Mon, 3 May 2010 15:01:21 +0000 (11:01 -0400)]
Add optional arg to delete-file to force deletion (Bug#6070).

* eval.c (internal_condition_case_n): Rename from
internal_condition_case_2.
(internal_condition_case_2): New function.

* xdisp.c (safe_call): Use internal_condition_case_n.

* fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
(internal_delete_file, Frename_file): Callers changed.

* buffer.c (Fkill_buffer):
* callproc.c (delete_temp_file): Callers changed (Bug#6070).

* lisp.h: Update prototypes.

* diff.el (diff-sentinel):

* epg.el (epg--make-temp-file, epg-decrypt-string)
(epg-verify-string, epg-sign-string, epg-encrypt-string):

* jka-compr.el (jka-compr-partial-uncompress)
(jka-compr-call-process, jka-compr-write-region, jka-compr-load):

* server.el (server-sentinel): Use delete-file's new FORCE arg
(Bug#6070).

14 years agoFix typo.
Juanma Barranquero [Mon, 3 May 2010 12:46:56 +0000 (14:46 +0200)]
Fix typo.

14 years agoFix some ChangeLog attributions.
Glenn Morris [Mon, 3 May 2010 06:23:01 +0000 (23:23 -0700)]
Fix some ChangeLog attributions.

14 years agoUse define-minor-mode where applicable.
Stefan Monnier [Mon, 3 May 2010 02:29:46 +0000 (22:29 -0400)]
Use define-minor-mode where applicable.
* mh-show.el (mh-showing-mode): Move function to mh-e.el.
* mh-e.el (mh-showing-mode):
* url-dired.el (url-dired-minor-mode):
* org-table.el (orgtbl-mode):
* view.el (view-mode):
* type-break.el (type-break-query-mode)
(type-break-mode-line-message-mode):
* textmodes/reftex.el (reftex-mode):
* term/vt100.el (vt100-wide-mode):
* tar-mode.el (tar-subfile-mode):
* savehist.el (savehist-mode):
* ibuf-ext.el (ibuffer-auto-mode):
* composite.el (auto-composition-mode):
* progmodes/vhdl-mode.el (vhdl-electric-mode, vhdl-stutter-mode):
Use define-minor-mode.
(vhdl-mode): Use static mode-line format.
(vhdl-mode-line-update): Delete.
(vhdl-create-mode-menu, vhdl-activate-customizations)
(vhdl-hs-minor-mode): Don't bother calling it.

14 years ago* src/m/amdx86-64.h: Fix typo in previous.
Glenn Morris [Mon, 3 May 2010 02:23:42 +0000 (19:23 -0700)]
* src/m/amdx86-64.h: Fix typo in previous.

14 years agoRegenerate configure.
Glenn Morris [Mon, 3 May 2010 02:15:26 +0000 (19:15 -0700)]
Regenerate configure.

14 years agoReplace some X-related cpp with autoconf.
Glenn Morris [Mon, 3 May 2010 02:10:43 +0000 (19:10 -0700)]
Replace some X-related cpp with autoconf.

* configure.in (LIBXT_OTHER, LIBX_OTHER): New output variables.

* src/Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
(LIBXT_OTHER, LIBX_OTHER): New, set by configure.
(LIBXT): Set with configure, not cpp.
(LIBX): Remove.
(LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.

14 years ago* make-dist: There are no more src/m/*.inp files.
Glenn Morris [Mon, 3 May 2010 01:53:58 +0000 (18:53 -0700)]
* make-dist: There are no more src/m/*.inp files.

14 years agoUse define-minor-mode in Gnus where applicable.
Stefan Monnier [Mon, 3 May 2010 00:41:45 +0000 (20:41 -0400)]
Use define-minor-mode in Gnus where applicable.
* mml.el (mml-mode): Use define-minor-mode.
* gnus-undo.el (gnus-undo-mode-map): Initialize in declaration.
(gnus-undo-mode): Use define-minor-mode.
* gnus-sum.el (gnus-dead-summary-mode-map): Initialize in declaration.
(gnus-dead-summary-mode): Use define-minor-mode.
* gnus-salt.el (gnus-pick-mode-map, gnus-binary-mode-map):
Initialize in declaration.
(gnus-pick-mode, gnus-binary-mode): Use define-minor-mode.
* gnus-ml.el (gnus-mailing-list-mode-map): Initialize in declaration.
(gnus-mailing-list-mode): Use define-minor-mode.
* gnus-draft.el (gnus-draft-mode-map): Initialize in declaration.
(gnus-draft-mode): Use define-minor-mode.
* gnus-dired.el (gnus-dired-mode-map): Initialize in declaration.
(gnus-dired-mode): Use define-minor-mode.

14 years ago* m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
Dan Nicolaescu [Sun, 2 May 2010 19:32:18 +0000 (12:32 -0700)]
* m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
The FreeBSD is not needed, the default works, Solaris version is
not needed, and the remaining case is not supported by configure.

14 years agoRun kill-emacs when exiting for display closed or SIGTERM/HUP.
Jan Djärv [Sun, 2 May 2010 18:44:04 +0000 (20:44 +0200)]
Run kill-emacs when exiting for display closed or SIGTERM/HUP.

* xsmfns.c (CHDIR_OPT): New define.
(smc_save_yourself_CB): Add CHDIR_OPT to options to use when
restarting emacs.

* xterm.c (x_connection_closed): Call Fkill_emacs instead of
shut_down_emacs.

* emacs.c (USAGE1): Mention --chdir.
(main): Handle --chdir.
(standard_args): Add --chdir.
(fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
#5552).

* cmdargs.texi (Initial Options): Mention --chdir.

14 years agoNew hook filter-buffer-substring-functions.
Stefan Monnier [Sun, 2 May 2010 05:56:30 +0000 (01:56 -0400)]
New hook filter-buffer-substring-functions.
* simple.el (with-wrapper-hook): Move.
(buffer-substring-filters): Mark obsolete.
(filter-buffer-substring-functions): New variable.
(buffer-substring-filters): Use it.  Remove unused arg `noprops'.

14 years agoUse a mode-line spec rather than a static string in Semantic.
Stefan Monnier [Sun, 2 May 2010 05:06:53 +0000 (01:06 -0400)]
Use a mode-line spec rather than a static string in Semantic.
* cedet/semantic/util-modes.el:
(semantic-minor-modes-format): New var to replace...
(semantic-minor-modes-status): Remove.
(semantic-mode-line-update): Construct a mode-line spec rather than
a static string so that mouse buttons can be used on individual minor
modes and so that semantic-mode-line-update only needs to be called
when global settings are changed.
(semantic-add-minor-mode, semantic-toggle-minor-mode-globally):
Call semantic-mode-line-update.
(semantic-toggle-minor-mode-globally): Don't assume mode is on
minor-mode-alist, check semantic-minor-mode-alist as well.
(semantic-stickyfunc-mode, semantic-show-parser-state-auto-marker)
(semantic-show-parser-state-marker, semantic-show-parser-state-mode)
(semantic-show-unmatched-syntax-mode, semantic-highlight-edits-mode):
* cedet/semantic/mru-bookmark.el (semantic-mru-bookmark-mode):
* cedet/semantic/idle.el (semantic-idle-scheduler-mode)
(define-semantic-idle-service, semantic-idle-summary-mode):
* cedet/semantic/decorate/mode.el (semantic-decoration-mode):
Don't call semantic-mode-line-update any more.

14 years agoUse define-minor-mode in CEDET where applicable.
Stefan Monnier [Sun, 2 May 2010 03:38:19 +0000 (23:38 -0400)]
Use define-minor-mode in CEDET where applicable.
* cedet/srecode/mode.el (srecode-minor-mode,global-srecode-minor-mode):
Use define-minor-mode.

* cedet/semantic/util-modes.el (semantic-add-minor-mode):
Remove unused arg `keymap' and code redundant with define-minor-mode.
(semantic-toggle-minor-mode-globally): Only handle arg -1 and 1.
(semantic-stickyfunc-mode, global-semantic-show-unmatched-syntax-mode)
(semantic-highlight-func-mode, global-semantic-show-parser-state-mode)
(global-semantic-highlight-edits-mode, semantic-highlight-edits-mode)
(semantic-show-unmatched-syntax-mode, semantic-show-parser-state-mode)
(global-semantic-stickyfunc-mode, global-semantic-highlight-func-mode):
Use define-minor-mode.
(semantic-stickyfunc-mode-setup, semantic-highlight-edits-mode-setup)
(semantic-show-unmatched-syntax-mode-setup)
(semantic-show-parser-state-mode-setup)
(semantic-highlight-func-mode-setup): Inline into sole caller.

* cedet/semantic/mru-bookmark.el (global-semantic-mru-bookmark-mode)
(semantic-mru-bookmark-mode): Use define-minor-mode.
(semantic-mru-bookmark-mode-setup): Inline into sole caller.

* cedet/semantic/idle.el (define-semantic-idle-service):
Use define-minor-mode and inline setup function into its sole caller.
(semantic-idle-scheduler-mode-setup)
(semantic-idle-summary-mode-setup): Inline into sole caller.
(global-semantic-idle-scheduler-mode, semantic-idle-scheduler-mode):
Use define-minor-mode.

* cedet/semantic/decorate/mode.el (global-semantic-decoration-mode)
(semantic-decoration-mode): Use define-minor-mode.
(semantic-decoration-mode-setup): Inline into sole caller.

* cedet/ede/dired.el (ede-dired-minor-mode): Initialize in declaration.
(ede-dired-minor-mode): Use define-minor-mode and derived-mode-p.
(ede-dired-add-to-target): Use dolist.

14 years ago* allout.el: Fix commenting convention.
Stefan Monnier [Sun, 2 May 2010 02:39:50 +0000 (22:39 -0400)]
* allout.el: Fix commenting convention.

14 years ago(Tutorial): Use ^{\prime} to indicate primes.
Daniel E. Doherty [Sat, 1 May 2010 23:47:59 +0000 (18:47 -0500)]
(Tutorial): Use ^{\prime} to indicate primes.

14 years agoRemove LD_SWITCH_MACHINE.
Dan Nicolaescu [Sat, 1 May 2010 21:38:59 +0000 (14:38 -0700)]
Remove LD_SWITCH_MACHINE.
* Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
(TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.

* configure.in (LD_SWITCH_MACHINE, ld_switch_machine): Remove, unused.
(ac_link): Do not use ld_switch_machine.

14 years agoClean up IRIX code.
Dan Nicolaescu [Sat, 1 May 2010 20:23:29 +0000 (13:23 -0700)]
Clean up IRIX code.
* m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
* s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.

14 years agoClean up AIX code.
Dan Nicolaescu [Sat, 1 May 2010 20:19:41 +0000 (13:19 -0700)]
Clean up AIX code.
* m/ibmrs6000.inp: Remove file, unused.
* m/ibmrs6000.h (IBMR2AIX): Remove, unused.
(LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
definition ...
* s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.

14 years ago* sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code, unused.
Dan Nicolaescu [Sat, 1 May 2010 20:14:10 +0000 (13:14 -0700)]
* sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code, unused.

14 years agocomposite.el (find-composition): Fix a typo in the doc string.
Eli Zaretskii [Sat, 1 May 2010 18:53:23 +0000 (21:53 +0300)]
composite.el (find-composition): Fix a typo in the doc string.

14 years agoEmulate POSIX_SIGNALS on MS-Windows.
Eli Zaretskii [Sat, 1 May 2010 18:38:33 +0000 (21:38 +0300)]
Emulate POSIX_SIGNALS on MS-Windows.

 s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
 (SIG_SETMASK, SIG_UNBLOCK): Define.
 sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
 w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask): New stubs.

14 years agoEmulate POSIX_SIGNALS on MS-Windows.
Eli Zaretskii [Sat, 1 May 2010 18:28:00 +0000 (21:28 +0300)]
Emulate POSIX_SIGNALS on MS-Windows.

 w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask): New stubs.
 sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
 s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
 (SIG_SETMASK, SIG_UNBLOCK): Define.

14 years agoFix display of R2L lines and cursor motion in bidi buffers.
Eli Zaretskii [Sat, 1 May 2010 18:11:20 +0000 (21:11 +0300)]
Fix display of R2L lines and cursor motion in bidi buffers.

 xdisp.c (find_row_end): New function, refactored from display_line.
 (display_line): Use it.
 (extend_face_to_end_of_line): In almost-filled rows, extend only
 if the row is R2L and not continued.
 (display_line): Fix prepending of truncation glyphs to R2L rows.
 Preserve overlay and string info in row->end.
 (insert_left_trunc_glyphs): Support addition of left truncation
 glyphs to R2L rows.
 (set_cursor_from_row): Don't place cursor on the vertical border
 glyph between adjacent windows.  Fix a crash when a display string
 is continued to the next line.  Don't return zero if cursor was
 found by `cursor' property of a display string.
 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
 test for that explicitly.

14 years agoFix cursor positioning in partial width windows on TTY.
Eli Zaretskii [Sat, 1 May 2010 15:53:35 +0000 (18:53 +0300)]
Fix cursor positioning in partial width windows on TTY.

 xdisp.c (set_cursor_from_row): Don't place cursor on the vertical border
 glyph between adjacent windows.
 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
 test for that explicitly.