bpt/emacs.git
11 years agoAvoid needless autoheader after autogen.sh.
Paul Eggert [Thu, 2 Aug 2012 01:59:19 +0000 (18:59 -0700)]
Avoid needless autoheader after autogen.sh.

* src/stamp-h.in: Remove from bzr repository; no longer needed there.
* .bzrignore: Add it.
* autogen.sh: Create it.

11 years agoObsolete alias inactivate-current-input-method-function.
Paul Eggert [Thu, 2 Aug 2012 01:36:14 +0000 (18:36 -0700)]
Obsolete alias inactivate-current-input-method-function.

* lisp/international/mule-cmds.el: Create
inactivate-current-input-method-function as an obsolete alias for
deactivate-current-input-method-function.  See Katsumi Yamaoka in
<http://bugs.gnu.org/10150#46>.

11 years agocalc.texi (Simplification modes, Conversions)
Jay Belanger [Wed, 1 Aug 2012 23:42:29 +0000 (18:42 -0500)]
calc.texi (Simplification modes, Conversions)
(Operating on Selections, Basic Simplifications)
(Algebraic Simplifications):  Mention "basic" simplifications.
(Algebraic Entry): Remove mention of default simplifications.

11 years agoUse "ASET (a, i, v)" rather than "AREF (a, i) = v".
Paul Eggert [Wed, 1 Aug 2012 20:51:44 +0000 (13:51 -0700)]
Use "ASET (a, i, v)" rather than "AREF (a, i) = v".

This how ASET and AREF are supposed to work, and makes
it easier to think about future improvements.  See
<http://lists.gnu.org/archive/html/emacs-devel/2012-08/msg00026.html>.
* charset.h (set_charset_attr): New function.
All lvalue-style uses of CHARSET_DECODER etc. changed to use it.
* lisp.h (ASET): Rewrite so as not to use AREF in an lvalue style.
(aref_addr): New function.  All uses of &AREF(...) changed.
(set_hash_key, set_hash_value, set_hash_next, set_hash_hash)
(set_hash_index): New functions.  All lvalue-style uses of
HASH_KEY etc. changed.
* keyboard.c (set_prop): New function.  All lvalue-style uses
of PROP changed.

11 years ago* nsterm.m (ns_set_vertical_scroll_bar, ns_redeem_scroll_bar)
Alp Aker [Wed, 1 Aug 2012 20:15:30 +0000 (16:15 -0400)]
* nsterm.m (ns_set_vertical_scroll_bar, ns_redeem_scroll_bar)
  (EmacsWindow-accessibilityAttributeValue, EmacsScroller-initFrame:)
  (EmacsScroller-dealloc):  Adjust to use WVAR.  (Bug#12114)
* nsfns.m (ns_set_name_as_filename): Likewise.
* nsmenu.m (ns_update_menubar): Likewise.
* nsselect.m (symbol_to_nsstring): Adjust to use SVAR.

11 years agocalc.texi (Simplification modes): Mention "basic" simplification.
Jay Belanger [Wed, 1 Aug 2012 18:24:13 +0000 (13:24 -0500)]
calc.texi (Simplification modes): Mention "basic" simplification.
(The Calc Mode Line): Mention the mode line display for Basic
simplification mode.
(Simplify Formulas): Refer to 'algebraic' rather than 'default'
simplifications.
(Basic Simplifications): Rename from "Limited Simplifications"
Replace "limited" by "basic" throughout.
(Algebraic Simplifications):  Indicate that the algebraic
simplifications are done by default.
(Unsafe Simplifications):  Mention `m E'.
(Simplification of Units): Mention `m U'.
(Trigonometric/Hyperbolic Functions, Reducing and Mapping,
Kinds of Declarations, Functions for Declarations):  Mention
"algebraic simplifications" instead of `a s'.

11 years ago* lwlib/Makefile.in (config_h): Add conf_post.h.
Glenn Morris [Wed, 1 Aug 2012 17:55:15 +0000 (13:55 -0400)]
* lwlib/Makefile.in (config_h): Add conf_post.h.

11 years agoUpdate lib-src config.h dependencies
Glenn Morris [Wed, 1 Aug 2012 17:54:06 +0000 (13:54 -0400)]
Update lib-src config.h dependencies

* lib-src/Makefile.in (config_h): New variable.
Use throughout in place of ../src/config.h.

11 years agoMore fixes in .gdbinit.
Eli Zaretskii [Wed, 1 Aug 2012 16:31:59 +0000 (19:31 +0300)]
More fixes in .gdbinit.

11 years agoFix typo in src/ChangeLog.
Eli Zaretskii [Wed, 1 Aug 2012 16:30:13 +0000 (19:30 +0300)]
Fix typo in src/ChangeLog.

11 years agoFix .gdbinit for latest INTERNAL_FIELD uses.
Eli Zaretskii [Wed, 1 Aug 2012 16:28:58 +0000 (19:28 +0300)]
Fix .gdbinit for latest INTERNAL_FIELD uses.

 src/.gdbinit (xcar, xcdr, xlist, xwindow, nextcons, xprintsym):
 Adapt to latest changes in field names of the corresponding Lisp
 objects.

11 years agoChangeLog fix
Glenn Morris [Wed, 1 Aug 2012 15:43:36 +0000 (08:43 -0700)]
ChangeLog fix

11 years agoFix fallout from 2012-08-01T05:11:36Z!dmantipov@yandex.ru that introduced WVAR.
Eli Zaretskii [Wed, 1 Aug 2012 15:39:21 +0000 (18:39 +0300)]
Fix fallout from 2012-08-01T05:11:36Z!dmantipov@yandex.ru that introduced WVAR.

 src/xdisp.c (try_window_id): Use WVAR in IF_DEBUG code.

11 years agocalc-mode.el (calc-set-simplify-mode): Use `cond' instead of nested `if's.
Jay Belanger [Wed, 1 Aug 2012 15:36:37 +0000 (10:36 -0500)]
calc-mode.el (calc-set-simplify-mode): Use `cond' instead of nested `if's.

11 years agoAlphabetic order is proving tricky today
Glenn Morris [Wed, 1 Aug 2012 15:33:09 +0000 (08:33 -0700)]
Alphabetic order is proving tricky today

11 years agoAlphabetical order
Glenn Morris [Wed, 1 Aug 2012 15:25:43 +0000 (08:25 -0700)]
Alphabetical order

11 years agoFix typo in previous
Glenn Morris [Wed, 1 Aug 2012 15:24:23 +0000 (08:24 -0700)]
Fix typo in previous

11 years ago* msdos/sed2v2.inp (HAVE_WCHAR_H): Fix typo.
Glenn Morris [Wed, 1 Aug 2012 15:20:59 +0000 (08:20 -0700)]
* msdos/sed2v2.inp (HAVE_WCHAR_H): Fix typo.

11 years agoRemove src/s/msdos.h
Glenn Morris [Wed, 1 Aug 2012 15:19:51 +0000 (08:19 -0700)]
Remove src/s/msdos.h

* msdos/sed2v2.inp (MSDOS, DOS_NT, FLOAT_CHECK_DOMAIN)
(HAVE_INVERSE_HYPERBOLIC, DEVICE_SEP, IS_DIRECTORY_SEP, IS_ANY_SEP)
(INTERNAL_TERMINAL, NULL_DEVICE, SEPCHAR, USER_FULL_NAME)
(_setjmp, _longjmp): Move here from src/s/msdos.h.
(config_opsysfile, config_machfile): Remove.
* msdos/sed1v2.inp (M_FILE, S_FILE): Remove.
* msdos/mainmake.v2 (TAGS tags): Remove src/s/msdos.h.

* src/s/msdos.h: Remove file.
* src/conf_post.h [MSDOS]: New section, moved from s/msdos.h.
* src/Makefile.in (S_FILE): Remove.
(config_h): Remove S_FILE.

11 years ago* configure.ac (DOS_NT, MSDOS): New system type templates.
Glenn Morris [Wed, 1 Aug 2012 15:00:49 +0000 (08:00 -0700)]
* configure.ac (DOS_NT, MSDOS): New system type templates.

11 years agoSync Windows port with autogen/config.in changes.
Juanma Barranquero [Wed, 1 Aug 2012 11:20:07 +0000 (13:20 +0200)]
Sync Windows port with autogen/config.in changes.

* nt/config.nt: Sync with autogen/config.in.
(DEVICE_SEP, FLOAT_CHECK_DOMAIN, HAVE_INVERSE_HYPERBOLIC)
(INTERNAL_TERMINAL, IS_ANY_SEP, IS_DEVICE_SEP, IS_DIRECTORY_SEP):
New macros.

* src/s/ms-w32.h (DEVICE_SEP, IS_DIRECTORY_SEP, IS_ANY_SEP):
Remove; moved to nt/config.nt.

11 years agoAuto-commit of loaddefs files.
Glenn Morris [Wed, 1 Aug 2012 10:20:52 +0000 (06:20 -0400)]
Auto-commit of loaddefs files.

11 years agoAuto-commit of generated files.
Glenn Morris [Wed, 1 Aug 2012 10:17:30 +0000 (06:17 -0400)]
Auto-commit of generated files.

11 years agoUse INTERNAL_FIELD for conses and overlays.
Dmitry Antipov [Wed, 1 Aug 2012 08:49:28 +0000 (12:49 +0400)]
Use INTERNAL_FIELD for conses and overlays.
* src/lisp.h (struct Lisp_Cons): Use INTERNAL_FIELD.
Remove obsolete comment.
(MVAR): New macro.
(struct Lisp_Overlay): Use INTERNAL_FIELD.
* src/alloc.c, src/buffer.c, src/buffer.h, src/fns.c: Adjust users.
* admin/coccinelle/overlay.cocci: Semantic patch to replace direct
access to Lisp_Object members of struct Lisp_Overlay to MVAR.

11 years agoCommit forgotten admin/coccinelle/symbol.cocci.
Dmitry Antipov [Wed, 1 Aug 2012 08:18:22 +0000 (12:18 +0400)]
Commit forgotten admin/coccinelle/symbol.cocci.

11 years agoUse INTERNAL_FIELD for symbols.
Dmitry Antipov [Wed, 1 Aug 2012 07:57:09 +0000 (11:57 +0400)]
Use INTERNAL_FIELD for symbols.
* src/lisp.h (SVAR): New macro.  Adjust users.
* src/alloc.c, src/bytecode.c, src/cmds.c, src/data.c, src/doc.c, src/eval.c:
* src/fns.c, src/keyboard.c, src/lread.c, src/xterm.c: Users changed.
* admin/coccinelle/symbol.cocci: Semantic patch to replace direct
access to Lisp_Object members of struct Lisp_Symbol to SVAR.

11 years agoSmall tweaks for autoconf mode
Glenn Morris [Wed, 1 Aug 2012 07:34:28 +0000 (00:34 -0700)]
Small tweaks for autoconf mode

* lisp/progmodes/autoconf.el (autoconf-definition-regexp):
Add AH_TEMPLATE, adjust submatch numbering.
(autoconf-font-lock-keywords, autoconf-imenu-generic-expression)
(autoconf-current-defun-function): Update for above change.
(autoconf-current-defun-function): First skip to end of current word.

11 years agoTweak FreeBSD LIB_STANDARD, START_FILES
Ulrich Müller [Wed, 1 Aug 2012 07:20:52 +0000 (00:20 -0700)]
Tweak FreeBSD LIB_STANDARD, START_FILES

* configure.ac (LIB_STANDARD, START_FILES) [FreeBSD]:
Don't include crtbegin.o and crtend.o.

Fixes: debbugs:12047

11 years ago* calendar/cal-html.el (cal-html-insert-agenda-days): Fix typo. (tiny change)
Rupert Swarbrick [Wed, 1 Aug 2012 07:15:44 +0000 (00:15 -0700)]
* calendar/cal-html.el (cal-html-insert-agenda-days): Fix typo.  (tiny change)

Fixes: debbugs:12018

11 years agoUse INTERNAL_FIELD for processes.
Dmitry Antipov [Wed, 1 Aug 2012 06:23:24 +0000 (10:23 +0400)]
Use INTERNAL_FIELD for processes.
* src/process.h (PVAR): New macro.  Adjust style.
(struct Lisp_Process): Change Lisp_Object members to INTERNAL_FIELD.
* src/print.c, src/process.c, src/sysdep.c, src/w32.c:
* src/xdisp.c: Users changed.
* admin/coccinelle/process.cocci: Semantic patch to replace direct
access to Lisp_Object members of struct Lisp_Process to PVAR.

11 years agoUse INTERNAL_FIELD for windows.
Dmitry Antipov [Wed, 1 Aug 2012 05:11:36 +0000 (09:11 +0400)]
Use INTERNAL_FIELD for windows.
* src/window.h (WVAR): New macro.
(struct window): Change Lisp_Object members to INTERNAL_FIELD.
* src/alloc.c, src/buffer.c, src/composite.c, src/dispextern.h:
* src/dispnew.c, src/editfns.c, src/fileio.c, src/font.c, src/fontset.c:
* src/frame.c, src/frame.h, src/fringe.c, src/indent.c, src/insdel.c:
* src/keyboard.c, src/keymap.c, src/lisp.h, src/minibuf.c, src/nsterm.m:
* src/print.c, src/textprop.c, src/w32fns.c, src/w32menu.c, src/w32term.c:
* src/window.c, src/xdisp.c, src/xfaces.c, src/xfns.c, src/xmenu.c:
* src/xterm.c: Users changed.
* admin/coccinelle/window.cocci: Semantic patch to replace direct
access to Lisp_Object members of struct window to WVAR.

11 years ago* coding.h (CODING_ATTR_FLUSHING): Remove; unused and wouldn't work.
Paul Eggert [Wed, 1 Aug 2012 03:51:44 +0000 (20:51 -0700)]
* coding.h (CODING_ATTR_FLUSHING): Remove; unused and wouldn't work.

11 years agoChangeLog fixes
Glenn Morris [Wed, 1 Aug 2012 02:14:20 +0000 (22:14 -0400)]
ChangeLog fixes

11 years ago* configure.ac (INTERNAL_TERMINAL): New.
Glenn Morris [Wed, 1 Aug 2012 02:02:47 +0000 (22:02 -0400)]
* configure.ac (INTERNAL_TERMINAL): New.

11 years ago* configure.ac (FLOAT_CHECK_DOMAIN, HAVE_INVERSE_HYPERBOLIC): New.
Glenn Morris [Wed, 1 Aug 2012 01:53:04 +0000 (21:53 -0400)]
* configure.ac (FLOAT_CHECK_DOMAIN, HAVE_INVERSE_HYPERBOLIC): New.

11 years agoMove definitions of directory and device separators to configure
Glenn Morris [Wed, 1 Aug 2012 01:43:08 +0000 (21:43 -0400)]
Move definitions of directory and device separators to configure

* configure.ac (DEVICE_SEP, IS_DEVICE_SEP, IS_DIRECTORY_SEP, IS_ANY_SEP):
Move here from src/lisp.h.

* src/lisp.h (IS_DIRECTORY_SEP, IS_DEVICE_SEP, IS_ANY_SEP):
Move to configure.ac.

11 years agoAdapt Windows port to recent changes in autogen/config.in.
Juanma Barranquero [Wed, 1 Aug 2012 00:29:59 +0000 (02:29 +0200)]
Adapt Windows port to recent changes in autogen/config.in.

* lib-src/makefile.w32-in (CONFIG_H): Update dependencies.
(CONF_POST_H): New macro.

* lib/makefile.w32-in (CONFIG_H): Update dependencies.
(CONF_POST_H): New macro.

* nt/config.nt: Sync with autogen/config.in.
Remove code moved to conf_post.h and include <conf_post.h>
(NULL_DEVICE, SEPCHAR, SIGNAL_H_AHB, TIOCSIGSEND, USER_FULL_NAME)
(USG5_4, WRETCODE, _longjmp, _setjmp, wait3): New macros.

* src/makefile.w32-in (CONFIG_H): Update dependencies.
(CONF_POST_H): New macro.

* src/s/ms-w32.h (SEPCHAR, NULL_DEVICE): Remove; moved to nt/config.nt.

11 years agoShell processes: enhancements to startup and CEDET compatibility.
Fabián Ezequiel Gallina [Tue, 31 Jul 2012 23:43:31 +0000 (20:43 -0300)]
Shell processes: enhancements to startup and CEDET compatibility.
* progmodes/python.el (python-shell-send-setup-max-wait): Delete var.
(python-shell-make-comint): accept-process-output at startup.
(run-python-internal): Set inferior-python-mode-hook to nil.
(python-shell-internal-get-or-create-process): call sit-for.
(python-preoutput-result): Add obsolete alias.
(python-shell-internal-send-string): Use it.
(python-shell-send-setup-code): Remove call to
accept-process-output.

11 years ago* configure.ac (S_FILE): Remove output variable.
Glenn Morris [Tue, 31 Jul 2012 23:20:25 +0000 (19:20 -0400)]
* configure.ac (S_FILE): Remove output variable.

* src/Makefile.in (S_FILE): No longer set by configure.

* msdos/sed1v2.inp (S_FILE): Update for format change.

11 years ago* configure.ac (opsysfile): Use AH_TEMPLATE. Doc fix.
Glenn Morris [Tue, 31 Jul 2012 23:12:24 +0000 (19:12 -0400)]
* configure.ac (opsysfile): Use AH_TEMPLATE.  Doc fix.

11 years agoAuto-commit of generated files.
Glenn Morris [Tue, 31 Jul 2012 23:03:04 +0000 (19:03 -0400)]
Auto-commit of generated files.

11 years agoMinor rearrangement for src/conf_post.h
Glenn Morris [Tue, 31 Jul 2012 23:02:12 +0000 (19:02 -0400)]
Minor rearrangement for src/conf_post.h

* src/conf_post.h (config_opsysfile):
Move earlier, so that WINDOWSNT is available.
(alloca.h) [WINDOWSNT]: Don't include it on MS Windows.

11 years agoFixes: debbugs:12108
Andreas Schwab [Tue, 31 Jul 2012 22:34:36 +0000 (00:34 +0200)]
Fixes: debbugs:12108

* buff-menu.el (list-buffers-noselect): Use prefix-numeric-value.

11 years ago* configure.ac (NULL_DEVICE, SEPCHAR, USER_FULL_NAME): Move here from src.
Glenn Morris [Tue, 31 Jul 2012 22:24:49 +0000 (18:24 -0400)]
* configure.ac (NULL_DEVICE, SEPCHAR, USER_FULL_NAME): Move here from src.

* src/editfns.c (USER_FULL_NAME):
* src/emacs.c (SEPCHAR):
* src/process.h (NULL_DEVICE): Let configure set them.

11 years agocalc-mode.el (calc-set-simplify-mode): Adjust message.
Jay Belanger [Tue, 31 Jul 2012 21:38:18 +0000 (16:38 -0500)]
calc-mode.el (calc-set-simplify-mode): Adjust message.

11 years agocalc-mode.el (calc-basic-simplification-mode): Rename from
Jay Belanger [Tue, 31 Jul 2012 21:32:28 +0000 (16:32 -0500)]
calc-mode.el (calc-basic-simplification-mode): Rename from
`calc-limited-simplification-mode'.
(calc-alg-simplification-mode): New function.

calc.el (calc-set-mode-line): Adjust mode line display
for basic simplification mode.

calc-help.el (calc-m-prefix-help): Update help message.

calc-ext.el (calc-init-extensions): Add bindings and autoloads
for `calc-basic-simplify-mode' and `calc-alg-simplify-mode'.

11 years ago* TODO (NS port): Add text about event loop.
Jan Djärv [Tue, 31 Jul 2012 19:23:33 +0000 (21:23 +0200)]
* TODO (NS port): Add text about event loop.

11 years ago* src/s/README, src/s/template.h: Remove files.
Glenn Morris [Tue, 31 Jul 2012 18:51:24 +0000 (14:51 -0400)]
* src/s/README, src/s/template.h: Remove files.

11 years agoComment
Glenn Morris [Tue, 31 Jul 2012 18:39:38 +0000 (14:39 -0400)]
Comment

11 years ago* src/conf_post.h [HPUX]: Undefine HAVE_RANDOM and HAVE_RINT.
Glenn Morris [Tue, 31 Jul 2012 18:34:26 +0000 (14:34 -0400)]
* src/conf_post.h [HPUX]: Undefine HAVE_RANDOM and HAVE_RINT.
This is a belt-and-braces approach.

* configure.ac: Related comment.

11 years agoMove AMPERSAND_FULL_NAME, subprocesses from conf_post.h to configure.ac
Glenn Morris [Tue, 31 Jul 2012 17:50:52 +0000 (13:50 -0400)]
Move AMPERSAND_FULL_NAME, subprocesses from conf_post.h to configure.ac

* configure.ac (AMPERSAND_FULL_NAME, subprocesses): Move here from conf_post.h.

* src/conf_post.h (AMPERSAND_FULL_NAME, subprocesses): Move to configure.ac.

11 years agoFix 'xframe' in .gdbinit.
Eli Zaretskii [Tue, 31 Jul 2012 17:34:51 +0000 (20:34 +0300)]
Fix 'xframe' in .gdbinit.

 src/.gdbinit (xframe): Adapt to introduction of FVAR and the
 resulting renaming of 'struct frame' members.

11 years agoFix some of the breakage introduced with 2012-07-31T12:36:19Z!dmantipov@yandex.ru.
Eli Zaretskii [Tue, 31 Jul 2012 16:59:55 +0000 (19:59 +0300)]
Fix some of the breakage introduced with 2012-07-31T12:36:19Z!dmantipov@yandex.ru.

 src/w32menu.c (w32_menu_show): Revert bogus introduction of FVAR.
 src/fontset.c (dump_fontset): Fix compilation with ENABLE_CHECKING
 after introduction of FVAR.

11 years agoFix compiler and run time warnings in nsmenu.m and nsterm.m
Jan Djärv [Tue, 31 Jul 2012 16:19:03 +0000 (18:19 +0200)]
Fix compiler and run time warnings in nsmenu.m and nsterm.m

*  nsfns.m, nsmenu.m, msterm.m: Adopt to struct frame/FVAR changes.

* nsmenu.m (update_frame_tool_bar): Change key from NSObject* to id.

* nsterm.m (ns_draw_fringe_bitmap, ns_dumpglyphs_image): Use drawInRect
instead of compositeToPoint.
(applicationShouldTerminate): Pass NS String literal to NSRunAlertPanel.

11 years ago* nsfns.m, nsmenu.m, msterm.m: Adopt to struct frame/FVAR changes.
Jan Djärv [Tue, 31 Jul 2012 15:15:29 +0000 (17:15 +0200)]
*  nsfns.m, nsmenu.m, msterm.m: Adopt to struct frame/FVAR changes.

11 years agoFix comment in man.el. See bug#12101.
Bastien Guerry [Tue, 31 Jul 2012 13:34:20 +0000 (15:34 +0200)]
Fix comment in man.el.  See bug#12101.

Thanks to Reuben Thomas for catching this.

11 years agoRemove outdate comment section in woman.el. See bug #12099.
Bastien Guerry [Tue, 31 Jul 2012 13:32:21 +0000 (15:32 +0200)]
Remove outdate comment section in woman.el.  See bug #12099.

11 years agoGeneralize INTERNAL_FIELD between buffers, keyboards and frames.
Dmitry Antipov [Tue, 31 Jul 2012 12:36:19 +0000 (16:36 +0400)]
Generalize INTERNAL_FIELD between buffers, keyboards and frames.
* src/lisp.h (INTERNAL_FIELD): New macro.
* src/buffer.h (BUFFER_INTERNAL_FIELD): Removed.
(BVAR): Change to use INTERNAL_FIELD.
* src/keyboard.h (KBOARD_INTERNAL_FIELD): Likewise.
(KVAR): Change to use INTERNAL_FIELD.
* src/frame.h (FVAR): New macro.
(struct frame): Use INTERNAL_FIELD for all Lisp_Object fields.
* src/alloc.c, src/buffer.c, src/data.c, src/dispnew.c, src/dosfns.c
* src/eval.c, src/frame.c, src/fringe.c, src/gtkutil.c, src/minibuf.c
* src/nsfns.m, src/nsterm.m, src/print.c, src/term.c, src/w32fns.c
* src/w32menu.c, src/w32term.c, src/window.c, src/window.h, src/xdisp.c
* src/xfaces.c, src/xfns.c, src/xmenu.c, src/xterm.c: Users changed.
* admin/coccinelle/frame.cocci: Semantic patch to replace direct
access to Lisp_Object members of struct frame to FVAR.

11 years agoMiscellaneous fixes for non-default X toolkits.
Dmitry Antipov [Tue, 31 Jul 2012 11:37:38 +0000 (15:37 +0400)]
Miscellaneous fixes for non-default X toolkits.
* configure.ac (MOTIF): Check for /usr/include/openmotif
and /usr/(lib|lib64)/openmotif if --with-x-toolkit=motif.
* lwlib/lwlib-Xm.c (make_menu_in_widget): Remove unused variable.
* src/xfns.c (Fx_file_dialog): Change to SSDATA to avoid warnings.
* src/xterm.c (x_frame_of_widget): Remove redundant prototype.
Move under #ifdef USE_LUCID.
(x_create_toolkit_scroll_bar): Adjust scroll_bar_name
definition and usage to avoid warnings.

11 years agoAuto-commit of generated files.
Glenn Morris [Tue, 31 Jul 2012 10:17:40 +0000 (06:17 -0400)]
Auto-commit of generated files.

11 years agoFix return values of switch-to-prev/next-buffer.
Martin Rudalics [Tue, 31 Jul 2012 08:36:32 +0000 (10:36 +0200)]
Fix return values of switch-to-prev/next-buffer.

* window.el (switch-to-prev-buffer, switch-to-next-buffer):
Don't return a non-nil value when no suitable buffer was found.

11 years ago* Makefile.in (install-arch-indep): Avoid eval.
Andreas Schwab [Tue, 31 Jul 2012 07:58:08 +0000 (09:58 +0200)]
* Makefile.in (install-arch-indep): Avoid eval.

11 years agoFix error in ChangeLog entry.
Jan Djärv [Tue, 31 Jul 2012 07:42:43 +0000 (09:42 +0200)]
Fix error in ChangeLog entry.

11 years agoRemove references to s/ and m/ files in INSTALL
Glenn Morris [Tue, 31 Jul 2012 07:15:11 +0000 (00:15 -0700)]
Remove references to s/ and m/ files in INSTALL
(in the massively pointless "Configuration By Hand" section)

11 years agoRemove references to s/ and m/ files in etc/MACHINES
Glenn Morris [Tue, 31 Jul 2012 07:09:39 +0000 (00:09 -0700)]
Remove references to s/ and m/ files in etc/MACHINES

11 years agoRemove INSTALL reference to s/ and m/ files.
Glenn Morris [Tue, 31 Jul 2012 07:00:19 +0000 (00:00 -0700)]
Remove INSTALL reference to s/ and m/ files.

11 years agoetc/PROBLEMS small updates
Glenn Morris [Tue, 31 Jul 2012 06:58:54 +0000 (23:58 -0700)]
etc/PROBLEMS small updates

Remove references to m/ and s/ files.
Remove reference to hpux _FILE_OFFSET_BITS issue, no longer true since
2012-05-31.

11 years ago* configure.ac (opsysfile, S_FILE): Now they are always empty.
Glenn Morris [Tue, 31 Jul 2012 06:52:13 +0000 (23:52 -0700)]
* configure.ac (opsysfile, S_FILE): Now they are always empty.

11 years ago* configure.ac (opsysfile): Forgot to set it to empty on sol2-10
Glenn Morris [Tue, 31 Jul 2012 06:46:42 +0000 (23:46 -0700)]
* configure.ac (opsysfile): Forgot to set it to empty on sol2-10
when removing src/s/sol2-6.h yesterday.

11 years agoRemove src/s/usg5-4-common.h
Glenn Morris [Tue, 31 Jul 2012 06:43:37 +0000 (23:43 -0700)]
Remove src/s/usg5-4-common.h

* configure.ac (USG5_4): Reintroduce this.
(opsysfile): Set to empty on irix6-5, sol2*, and unixware.

* src/conf_post.h [USG5_4]: Move remaining contents of s/usg5-4-common.h here.
* src/s/usg5-4-common.h: Remove file.

11 years agoMove wait3, WRETCODE from src/s to configure
Glenn Morris [Tue, 31 Jul 2012 06:35:08 +0000 (23:35 -0700)]
Move wait3, WRETCODE from src/s to configure

* configure.ac (wait3, WRETCODE): Move here from src/s/usg5-4-common.h.

* s/usg5-4-common.h (wait3, WRETCODE): Let configure set them.

11 years agoRemove src/s/irix6-5.h
Glenn Morris [Tue, 31 Jul 2012 06:19:40 +0000 (23:19 -0700)]
Remove src/s/irix6-5.h

* configure.ac (opsysfile): Set to s/usg5-4-common.h on irix6-5.

* src/conf_post.h [IRIX6_5]: Move remaining contents of s/irix6-5.h here.

* src/s/irix6-5.h: Remove file.

11 years ago* nsterm.m (openFiles): Fix previous checkin.
Jan Djärv [Tue, 31 Jul 2012 05:56:36 +0000 (07:56 +0200)]
* nsterm.m (openFiles): Fix previous checkin.

11 years ago* indent.c (compute_motion): Remove unused local.
Paul Eggert [Tue, 31 Jul 2012 05:07:03 +0000 (22:07 -0700)]
* indent.c (compute_motion): Remove unused local.

11 years ago* progmodes/python.el (run-python-internal): Disable font lock for
Fabián Ezequiel Gallina [Tue, 31 Jul 2012 03:31:10 +0000 (00:31 -0300)]
* progmodes/python.el (run-python-internal): Disable font lock for
internal shells.

11 years agognus.el (gnus-valid-select-methods): Fix custom type
Katsumi Yamaoka [Tue, 31 Jul 2012 01:39:58 +0000 (01:39 +0000)]
gnus.el (gnus-valid-select-methods): Fix custom type

11 years agoRemove src/s/darwin.h
Glenn Morris [Tue, 31 Jul 2012 01:38:04 +0000 (21:38 -0400)]
Remove src/s/darwin.h

* configure.ac (opsysfile): Set to empty on darwin.

* src/conf_post.h [DARWIN_OS]: Move remaining contents of src/s/darwin.h here.

* src/s/darwin.h: Remove file.

11 years agoRemove src/s/hpux10-20.h
Glenn Morris [Tue, 31 Jul 2012 01:32:19 +0000 (21:32 -0400)]
Remove src/s/hpux10-20.h

* configure.ac (opsysfile): Set to empty on hpux*.

* src/conf_post.h [HPUX]: Move random, srandom here from s/hpux10-20.h.

* src/s/hpux10-20.h: Remove file, which is now empty.

11 years agoUse an include file in configure.ac's AH_BOTTOM
Glenn Morris [Mon, 30 Jul 2012 21:20:43 +0000 (17:20 -0400)]
Use an include file in configure.ac's AH_BOTTOM

* configure.ac (AH_BOTTOM): Use an include file, so that the
contents do not get processed by autoheader.  Eg this prevents undefs
being commented out, and is the recommended technique from the
autoconf manual.

* src/conf_post.h: New, split from configure.ac's AH_BOTTOM.

* src/Makefile.in (config_h): Add conf_post.h.
* src/makefile.w32-in (CONFIG_H): Add conf_post.h.

11 years agoDo not overwrite config.status while executing it.
Paul Eggert [Mon, 30 Jul 2012 20:34:58 +0000 (13:34 -0700)]
Do not overwrite config.status while executing it.

* Makefile.in (MAKEFILE_NAME): New macro.
($(MAKEFILE_NAME)): Rename rule from Makefile.
* configure.ac (epaths): Set MAKEFILE_NAME to a bogus value,
so that GNU 'make' isn't tempted to make the Makefile and then
regenerate config.status while config.status is running.

Fixes: debbugs:11214

11 years agoDon't open files from Cocoa-parsed command line.
Jan Djärv [Mon, 30 Jul 2012 20:10:31 +0000 (22:10 +0200)]
Don't open files from Cocoa-parsed command line.

--eval '(whatever)' will open '(whatever)' if --eval is the last option.

* src/nsterm.m (ns_do_open_file): New variable.
(ns_term_init): Set ns_do_open_file to NO after run returns.
(openFile, openTempFile, openFileWithoutUI, openFiles): Open
files only if ns_do_open_file.

11 years agoSilence `checkdoc-ispell'.
Stefan Merten [Mon, 30 Jul 2012 19:54:07 +0000 (21:54 +0200)]
Silence `checkdoc-ispell'.
(rst-cvs-header, rst-svn-rev, rst-svn-timestamp)
(rst-official-version, rst-official-cvs-rev)
(rst-package-emacs-version-alist): Update to upstream V1.3.1.
(rst-mode-map): New key binding.

11 years ago* lisp.h (SWITCH_ENUM_CAST): Remove. All uses removed.
Paul Eggert [Mon, 30 Jul 2012 18:56:42 +0000 (11:56 -0700)]
* lisp.h (SWITCH_ENUM_CAST): Remove.  All uses removed.

This no-op macro hasn't been needed for many years.
* src/regex.c (SWITCH_ENUM_CAST) [!emacs]: Likewise.

11 years agoExport DIRECTORY_SEP, TYPEMASK, VALMASK to GDB.
Paul Eggert [Mon, 30 Jul 2012 18:44:51 +0000 (11:44 -0700)]
Export DIRECTORY_SEP, TYPEMASK, VALMASK to GDB.

* alloc.c (gdb_make_enums_visible) [USE_LSB_TAG]: Add lsb_bits.
* lisp.h (enum lsb_bits) [USE_LSB_TAG]: New enum, for
gdb_make_enums_visible.
(TYPEMASK, VALMASK) [USE_LSB_TAGS]: Now enum constants, not macros.
(DIRECTORY_SEP): Now a constant, not a macro.

11 years agoFix bug #12082 with input of Meta-non-ASCII-characters on MS-Windows.
Eli Zaretskii [Mon, 30 Jul 2012 17:07:33 +0000 (20:07 +0300)]
Fix bug #12082 with input of Meta-non-ASCII-characters on MS-Windows.

 src/w32fns.c (w32_wnd_proc): Pass w32_keyboard_codepage to
 w32_kbd_patch_key as the 2nd arg.
 src/w32term.c <w32_keyboard_codepage>: Renamed from
 keyboard_codepage and now external.  All users changed.
 src/w32term.h: Add declaration of w32_keyboard_codepage.
 src/w32inevt.c (w32_kbd_patch_key): Accept an additional argument --
 the codepage to translate keys to Unicode.  If this argument is
 -1, use the value returned by GetConsoleCP.  All callers changed.

11 years agoUpdate .PHONY listings in makefiles.
Paul Eggert [Mon, 30 Jul 2012 16:20:35 +0000 (09:20 -0700)]
Update .PHONY listings in makefiles.

11 years ago* lisp.h (STRING_BYTES_BOUND): Cast entire result to ptrdiff_t.
Paul Eggert [Mon, 30 Jul 2012 15:30:40 +0000 (08:30 -0700)]
* lisp.h (STRING_BYTES_BOUND): Cast entire result to ptrdiff_t.

This is a bit clearer.  Fix some commentary typos.

11 years agoMove TIOCSIGSEND from src/s to configure
Glenn Morris [Mon, 30 Jul 2012 14:52:08 +0000 (07:52 -0700)]
Move TIOCSIGSEND from src/s to configure

* configure.ac (TIOCSIGSEND): Move here from src/s.

* src/s/usg5-4-common.h (TIOCSIGSEND): Let configure set it.
* src/s/irix6-5.h (TIOCSIGSEND): No more need to undefine.

11 years agoEmpty src/s/netbsd.h and remove the file
Glenn Morris [Mon, 30 Jul 2012 14:46:48 +0000 (07:46 -0700)]
Empty src/s/netbsd.h and remove the file

* configure.ac (SIGNAL_H_AHB): New hack macro.
(opsysfile): Set to empty on netbsd, openbsd.
(AH_BOTTOM): Include signal.h if SIGNAL_H_AHB is defined.

* src/s/netbsd.h: Let configure include signal.h if needed.
Remove file, which is now empty.

11 years agoMove _longjmp, _setjmp from src/s to configure
Glenn Morris [Mon, 30 Jul 2012 14:30:20 +0000 (07:30 -0700)]
Move _longjmp, _setjmp from src/s to configure

* configure.ac (_longjmp, _setjmp): Move here from src/s.

* src/s/usg5-4-common.h (_longjmp, _setjmp): Let configure set them.
* src/s/irix6-5.h (_longjmp, _setjmp): No more need to undefine.

11 years agoAuto-commit of generated files.
Glenn Morris [Mon, 30 Jul 2012 10:17:41 +0000 (06:17 -0400)]
Auto-commit of generated files.

11 years agolisp/gnus/ChangeLog (2012-07-27): Fix author's address e-mail
Julien Danjou [Mon, 30 Jul 2012 10:13:52 +0000 (10:13 +0000)]
lisp/gnus/ChangeLog (2012-07-27): Fix author's address e-mail

11 years ago* Makefile.in (install-arch-indep): Remove sh -x.
Jan Djärv [Mon, 30 Jul 2012 07:51:29 +0000 (09:51 +0200)]
* Makefile.in (install-arch-indep): Remove sh -x.

11 years agoFixes: debbugs:12090
Andreas Schwab [Mon, 30 Jul 2012 07:45:58 +0000 (09:45 +0200)]
Fixes: debbugs:12090

* keymap.c (Fkey_description): Don't remove 0x80 bit from
non-single-byte char when adding meta modifier.

11 years agoConvert safe_call to use variable number of arguments.
Dmitry Antipov [Mon, 30 Jul 2012 06:43:46 +0000 (10:43 +0400)]
Convert safe_call to use variable number of arguments.
* xdisp.c (safe_call): Convert to use varargs.  Adjust users.
(safe_call2): Fix comment.
* lisp.h (safe_call): Adjust prototype.
* coding.c (encode_coding_object): Change to use safe_call2.
* xfaces.c (merge_face_heights): Change to use safe_call1.

11 years agoRemove s/aix4-2.h
Glenn Morris [Mon, 30 Jul 2012 06:34:22 +0000 (23:34 -0700)]
Remove s/aix4-2.h

* configure.ac (opsysfile): Set to empty on aix4-2.

* src/s/aix4-2.h: Remove empty file.

11 years ago* s/aix4-2.h (sigmask): No need to undefine it.
Glenn Morris [Mon, 30 Jul 2012 06:32:04 +0000 (23:32 -0700)]
* s/aix4-2.h (sigmask): No need to undefine it.
(syssignal.h does that unconditionally)

11 years ago* configure.ac (opsysfile): Tweak message for null case.
Glenn Morris [Mon, 30 Jul 2012 06:24:20 +0000 (23:24 -0700)]
* configure.ac (opsysfile): Tweak message for null case.
(The autoconf manual says this is portable.)

11 years agoRemove some empty src/s files.
Glenn Morris [Mon, 30 Jul 2012 06:18:28 +0000 (23:18 -0700)]
Remove some empty src/s files.

* configure.ac (opsysfile): Set to empty on freebsd, gnu-linux,
gnu-kfreebsd; and to usg5-4-common.h on sol2*, unixware.

* src/s/freebsd.h, src/s/gnu-linux.h, src/s/sol2-6.h, src/s/unixware.h:
Remove empty files.

11 years agoMerge from gnulib, incorporating:
Paul Eggert [Mon, 30 Jul 2012 06:07:22 +0000 (23:07 -0700)]
Merge from gnulib, incorporating:

* doc/misc/texinfo.tex: Update to 2012-07-29.17 version.