bpt/emacs.git
11 years ago* simple.el (list-processes): Doc fix.
Andreas Schwab [Sat, 4 Aug 2012 08:09:24 +0000 (10:09 +0200)]
* simple.el (list-processes): Doc fix.

11 years ago* simple.el (list-processes--refresh): For a server use :host or
Andreas Schwab [Sat, 4 Aug 2012 08:08:11 +0000 (10:08 +0200)]
* simple.el (list-processes--refresh): For a server use :host or
:local as the address.

11 years ago* lisp/mpc.el: Support password in host argument.
Michal Nazarewicz [Sat, 4 Aug 2012 07:37:27 +0000 (03:37 -0400)]
* lisp/mpc.el: Support password in host argument.
(mpc--proc-connect): Parse and use new password element.
Set mpc-proc variable instead of returning process.
(mpc-proc): Adjust accordingly.

11 years agoExport DEFAULT_REHASH_* to GDB.
Paul Eggert [Sat, 4 Aug 2012 00:52:10 +0000 (17:52 -0700)]
Export DEFAULT_REHASH_* to GDB.

* lisp.h (DEFAULT_REHASH_THRESHOLD, DEFAULT_REHASH_SIZE):
Now constants, not macros.

11 years agoComment why gc_aset can be triggered during GC.
Paul Eggert [Fri, 3 Aug 2012 23:40:20 +0000 (16:40 -0700)]
Comment why gc_aset can be triggered during GC.

11 years agoRemove unnecessary casts involving pointers.
Paul Eggert [Fri, 3 Aug 2012 23:36:11 +0000 (16:36 -0700)]
Remove unnecessary casts involving pointers.

These casts are no longer needed now that we assume C89 or later,
since they involve casting to or from void *.
* alloc.c (make_pure_string, make_pure_c_string, pure_cons)
(make_pure_float, make_pure_vector):
* lisp.h (SAFE_ALLOCA, SAFE_ALLOCA_LISP):
* macros.c (Fstart_kbd_macro):
* menu.c (find_and_return_menu_selection):
* minibuf.c (read_minibuf_noninteractive):
* sysdep.c (closedir):
* xdisp.c (x_produce_glyphs):
* xfaces.c (compare_fonts_by_sort_order):
* xfns.c (x_real_positions, select_visual):
* xselect.c (x_stop_queuing_selection_requests)
(x_get_window_property, x_get_window_property_as_lisp_data):
* xterm.c (x_set_frame_alpha, x_find_modifier_meanings):
Remove unnecessary pointer casts.
* alloc.c (record_xmalloc): New function.
* lisp.h (record_xmalloc): New decl.
(SAFE_ALLOCA): Now takes just one arg -- the size -- and acts
more like a function.  This is because the pointer cast is not
needed.  All uses changed.
* print.c (print_string, print_error_message): Avoid length recalc.

11 years agoImprove fix for macroexp crash with debugging.
Paul Eggert [Fri, 3 Aug 2012 20:55:27 +0000 (13:55 -0700)]
Improve fix for macroexp crash with debugging.

* lisp.h (ASET) [ENABLE_CHECKING]: Pay attention to
ARRAY_MARK_FLAG when checking subscripts, because ASET is
not supposed to be invoked from the garbage collector.
See Andreas Schwab in <http://bugs.gnu.org/12118#25>.
(gc_aset): New function, which is like ASET but can be
used in the garbage collector.
(set_hash_key, set_hash_value, set_hash_next, set_hash_hash)
(set_hash_index): Use it instead of ASET.

11 years agoconfigure.ac whitespace trivia
Glenn Morris [Fri, 3 Aug 2012 20:34:35 +0000 (16:34 -0400)]
configure.ac whitespace trivia
(Avoids some trailing whitespace in generated config.h.)

11 years ago* nt/config.nt: Sync with autogen/config.in.
Juanma Barranquero [Fri, 3 Aug 2012 12:16:40 +0000 (14:16 +0200)]
* nt/config.nt: Sync with autogen/config.in.
(DOS_NT, MSDOS): New macros.
(WRETCODE, wait3): Remove.

* nt/inc/ms-w32.h (DOS_NT): Remove; defined in config.nt.

* lib-src/makefile.w32-in (LOCAL_FLAGS): Remove WINDOWSNT and DOS_NT,
they are always defined in config.h.

11 years agoFix whitespace-display-mappings.
Eli Zaretskii [Fri, 3 Aug 2012 11:51:11 +0000 (14:51 +0300)]
Fix whitespace-display-mappings.

 lisp/whitespace.el (whitespace-display-mappings): Use Unicode
 codepoints, instead of emacs-mule codepoints.  See
 http://lists.gnu.org/archive/html/help-gnu-emacs/2012-07/msg00366.html
 for the details.

11 years agoSupport symlinks on latest versions of MS-Windows.
Eli Zaretskii [Fri, 3 Aug 2012 10:23:30 +0000 (13:23 +0300)]
Support symlinks on latest versions of MS-Windows.

 src/w32.c: Include winioctl.h and aclapi.h.
 (is_symlink, chase_symlinks, enable_privilege, restore_privilege)
 (revert_to_self): Forward declarations of static functions.
 <static BOOL g_b_init_get_security_info>:
 <g_b_init_create_symbolic_link>: New static flags.
 (globals_of_w32): Initialize them to zero.
 (GetSecurityInfo_Proc, CreateSymbolicLink_Proc): New typedefs.
 (map_w32_filename): Improve commentary.  Simplify switch.
 (SYMBOLIC_LINK_FLAG_DIRECTORY): Define if not defined in system
 headers (most versions of MinGW w32api don't).
 (get_security_info, create_symbolic_link)
 (get_file_security_desc_by_handle, is_symlink, chase_symlinks):
 New functions.
 (sys_access, sys_chmod): Call 'chase_symlinks' to resolve symlinks
 in the argument file name.
 (sys_access): Call unc_volume_file_attributes only if
 GetFileAttributes fails with network-related error codes.
 (sys_rename): Diagnose renaming of a symlink when the user doesn't
 have the required privileges.
 (get_file_security_desc_by_name): Renamed from
 get_file_security_desc.
 (stat_worker): New function, with most of the guts of 'stat', and
 with addition of handling of symlinks and support for 'lstat'.  If
 possible, get file's attributes and security information by
 handle, not by name.  Produce S_IFLNK bit for symlinks, when
 called from 'lstat'.
 (stat, lstat): New functions, call 'stat_worker'.
 (symlink, readlink, careadlinkat): Rewritten to create and resolve
 symlinks when the underlying filesystem supports them.

 lib/src/ntlib.c (lstat): New function, calls 'stat'.

 nt/inc/sys/stat.h (S_IFLNK): Define.
 (S_ISLNK): A non-trivial definition.
 (lstat): Prototype instead of a macro that redirects to 'stat'.

 lisp/files.el (file-truename): Don't skip symlink-chasing part on
 windows-nt.  Incorporate the resolution of 8+3 short aliases on
 Windows into the loop that recursively chases symlinks.  Compare
 directory and its parent case-insensitively on MS-Windows and
 MS-DOS.

 etc/NEWS: Announce the symlink support on MS-Windows.

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

11 years agoAdapt lib/makefile.w32-in to latest gnulib imports.
Eli Zaretskii [Fri, 3 Aug 2012 10:02:48 +0000 (13:02 +0300)]
Adapt lib/makefile.w32-in to latest gnulib imports.

 lib/makefile.w32-in (GNULIBOBJS): Add $(BLD)/stat-time.$(O),
 $(BLD)/timespec.$(O), and $(BLD)/u64.$(O).
 (SHA512_H): Don't mention u64.h twice.
 ($(BLD)/stat-time.$(O), ($(BLD)/timespec.$(O), ($(BLD)/u64.$(O)):
 New targets.

11 years agoFix a typo in top-level ChangeLog.
Eli Zaretskii [Fri, 3 Aug 2012 09:00:42 +0000 (12:00 +0300)]
Fix a typo in top-level ChangeLog.

11 years agoAdd NEWS entry for last change.
Chong Yidong [Fri, 3 Aug 2012 08:30:48 +0000 (16:30 +0800)]
Add NEWS entry for last change.

11 years ago* menu-bar.el (menu-bar-tools-menu): Remove PCL-CVS.
Chong Yidong [Fri, 3 Aug 2012 08:25:42 +0000 (16:25 +0800)]
* menu-bar.el (menu-bar-tools-menu): Remove PCL-CVS.

11 years ago* sort.el (sort-regexp-fields): Doc fix.
Chong Yidong [Fri, 3 Aug 2012 08:15:24 +0000 (16:15 +0800)]
* sort.el (sort-regexp-fields): Doc fix.

11 years ago* textmodes/reftex.el (reftex-compile-variables): Make keyvals
Tassilo Horn [Fri, 3 Aug 2012 06:47:32 +0000 (08:47 +0200)]
* textmodes/reftex.el (reftex-compile-variables): Make keyvals
labels regex position point at the expected place.

11 years agoDoc fixes for imap.el.
MON KEY [Fri, 3 Aug 2012 02:49:51 +0000 (10:49 +0800)]
Doc fixes for imap.el.

* net/imap.el (imap-interactive-login, imap-authenticate)
(imap-mailbox-lsub, imap-mailbox-list)
(imap-mailbox-status-asynch, imap-mailbox-acl-delete)
(imap-fetch, imap-message-flag-permanent-p, imap-envelope-from)
(imap-parse-response): Doc fix.

11 years agoWorkaround for latex-forward-sexp slowness.
João Távora [Fri, 3 Aug 2012 02:29:59 +0000 (10:29 +0800)]
Workaround for latex-forward-sexp slowness.

* textmodes/tex-mode.el (latex-forward-sexp): Terminate the loop if
sexp scanning does not move point.

Fixes: debbugs:5734

11 years agoMerge from gnulib.
Paul Eggert [Fri, 3 Aug 2012 00:42:11 +0000 (17:42 -0700)]
Merge from gnulib.

2012-08-02 stat-time, timespec, u64: support naive out-of-dir builds

11 years agoFix macroexp crash on Windows with debugging.
Paul Eggert [Thu, 2 Aug 2012 20:59:49 +0000 (13:59 -0700)]
Fix macroexp crash on Windows with debugging.

* lisp.h (ASET) [ENABLE_CHECKING]: Ignore ARRAY_MARK_FLAG when
checking subscripts; problem introduced with the recent
"ASET (a, i, v)" rather than "AREF (a, i) = v" patch.
(ARRAY_MARK_FLAG): Now a macro as well as a constant,
since it's used in non-static inline functions now.

Fixes: debbugs:12118

11 years agofixup ChangeLog
Tassilo Horn [Thu, 2 Aug 2012 19:04:53 +0000 (21:04 +0200)]
fixup ChangeLog

11 years ago* textmodes/reftex-vars.el (reftex-label-alist): Docfix.
Tassilo Horn [Thu, 2 Aug 2012 18:54:36 +0000 (20:54 +0200)]
* textmodes/reftex-vars.el (reftex-label-alist): Docfix.

11 years ago* textmodes/reftex-vars.el (reftex-default-label-alist-entries):
Tassilo Horn [Thu, 2 Aug 2012 18:24:11 +0000 (20:24 +0200)]
* textmodes/reftex-vars.el (reftex-default-label-alist-entries):
Add listings, minted, and ctable packages.
(reftex-label-alist-builtin): Move listings, minted, and ctable
entries before LaTeX.

11 years agoFix typo in docstring. Bug #12122.
Bastien Guerry [Thu, 2 Aug 2012 16:54:42 +0000 (18:54 +0200)]
Fix typo in docstring.  Bug #12122.

11 years ago* lisp.h (VALMASK) [!USE_LSB_TAG]: Now a macro
Paul Eggert [Thu, 2 Aug 2012 10:49:19 +0000 (03:49 -0700)]
* lisp.h (VALMASK) [!USE_LSB_TAG]: Now a macro

as well as a constant, since it's used in non-static inline functions now.

11 years ago* lib/Makefile.am (DEFAULT_INCLUDES): Add -I$(top_srcdir)/lib for out-of-tree build.
YAMAMOTO Mitsuharu [Thu, 2 Aug 2012 10:39:47 +0000 (19:39 +0900)]
* lib/Makefile.am (DEFAULT_INCLUDES): Add -I$(top_srcdir)/lib for out-of-tree build.

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

11 years ago* xfaces.c (face_for_overlay_string): Remove unused local.
Paul Eggert [Thu, 2 Aug 2012 09:33:13 +0000 (02:33 -0700)]
* xfaces.c (face_for_overlay_string): Remove unused local.

11 years ago* xfaces.c: Don't assume buffer size fits in 'int'.
Paul Eggert [Thu, 2 Aug 2012 09:20:01 +0000 (02:20 -0700)]
* xfaces.c: Don't assume buffer size fits in 'int'.

11 years ago* xfaces.c (face_at_buffer_position): Remove unused local.
Paul Eggert [Thu, 2 Aug 2012 08:47:07 +0000 (01:47 -0700)]
* xfaces.c (face_at_buffer_position): Remove unused local.

11 years agolisp/emacs-lisp/rx.el: Remove dead URL from commentary.
Chong Yidong [Thu, 2 Aug 2012 08:12:36 +0000 (16:12 +0800)]
lisp/emacs-lisp/rx.el: Remove dead URL from commentary.

11 years agoUse C99-style 'extern inline' if available.
Paul Eggert [Thu, 2 Aug 2012 07:31:34 +0000 (00:31 -0700)]
Use C99-style 'extern inline' if available.

* lib-src/profile.c (SYSTIME_INLINE): Define.
* nt/config.nt: Sync with autogen/config.in.
(_GL_INLINE, _GL_EXTERN_INLINE, _GL_INLINE_HEADER_BEGIN)
(_GL_INLINE_HEADER_END): New macros.
* src/buffer.h (BUFFER_INLINE):
* src/category.h (CATEGORY_INLINE):
* src/character.h (CHARACTER_INLINE):
* src/charset.h (CHARSET_INLINE):
* src/composite.h (COMPOSITE_INLINE):
* src/dispextern.h (DISPEXTERN_INLINE):
* src/lisp.h (LISP_INLINE):
* src/systime.h (SYSTIME_INLINE):
New macro, replacing 'static inline' in this header.
* src/buffer.h, src/category.h, src/character.h, src/charset.h:
* src/composite.h, src/dispextern.h, lisp.h, systime.h:
Use INLINE_HEADER_BEGIN, INLINE_HEADER_END.
* src/alloc.c (LISP_INLINE):
* src/buffer.c (BUFFER_INLINE):
* src/category.c (CATEGORY_INLINE):
* src/character.c (CHARACTER_INLINE):
* src/charset.c (CHARSET_INLINE):
* src/composite.c (COMPOSITE_INLINE):
* src/dispnew.c (DISPEXTERN_INLINE):
* src/sysdep.c (SYSTIME_INLINE):
Define to EXTERN_INLINE, so that the corresponding functions
are compiled into code.
* src/conf_post.h (INLINE, EXTERN_INLINE, INLINE_HEADER_BEGIN)
(INLINE_HEADER_END): New macros.
* src/lisp.h (PSEUDOVECTOR_FLAG): Now a macro as well as a constant,
since it's used in non-static inline functions now.

11 years agoMisc updates for CPP-DEFINES
Glenn Morris [Thu, 2 Aug 2012 06:47:17 +0000 (23:47 -0700)]
Misc updates for CPP-DEFINES

11 years agoComment
Glenn Morris [Thu, 2 Aug 2012 06:43:13 +0000 (23:43 -0700)]
Comment

11 years ago* src/s/: Remove empty directory.
Glenn Morris [Thu, 2 Aug 2012 06:21:48 +0000 (23:21 -0700)]
* src/s/: Remove empty directory.

* make-dist: Remove src/s.

11 years agoMove NT-specific include file to the NT include directory
Glenn Morris [Thu, 2 Aug 2012 06:19:48 +0000 (23:19 -0700)]
Move NT-specific include file to the NT include directory

* nt/inc/ms-w32.h: Move here from ../src/s.
* nt/config.nt (config_opsysfile): Change to <ms-w32.h>.

* s/ms-w32.h: Move to ../nt/inc.
* src/makefile.w32-in (TAGS, TAGS-gmake, MS_W32_H):
Update for new ms-w32.h location.

* lib-src/makefile.w32-in (MS_W32_H): Update for new ms-w32.h location.

* lib/makefile.w32-in (MS_W32_H): Update for new ms-w32.h location.

* lisp/emacs-lisp/authors.el (authors-renamed-files-alist): Add ms-w32.h.

11 years agoRemove files that no longer exist
Glenn Morris [Thu, 2 Aug 2012 06:17:21 +0000 (23:17 -0700)]
Remove files that no longer exist

11 years agoMerge from gnulib, for extern-inline.
Paul Eggert [Thu, 2 Aug 2012 04:46:10 +0000 (21:46 -0700)]
Merge from gnulib, for extern-inline.

2012-08-01 extern-inline: new module
2012-08-01 stat-time, timespec, u64, utimens: use extern-inline
* lib/stat-time.c, lib/utimespec.c, lib/u64.c, m4/extern-inline.m4:
New files.  The new .c files are for instantiating extern inline
functions.

Fixes: debbugs:12116

11 years agoPort to Solaris 8.
Paul Eggert [Thu, 2 Aug 2012 04:14:48 +0000 (21:14 -0700)]
Port to Solaris 8.

Without this change, 'configure' fails because the recently-added
wait3 prototype in config.h messes up later 'configure' tests.
Fix this problem by droping wait3 and WRETCODE, as they're
no longer needed on hosts that are current porting targets.
* configure.ac (wait3, WRETCODE): Remove, fixing a FIXME.
All uses changed to waitpid and WEXITSTATUS.
* src/syswait.h (WRETCODE): Remove, consistently with ../configure.ac.

11 years ago* src/nsterm.m (ns_exec_path, ns_load_path): Use SEPCHAR
Glenn Morris [Thu, 2 Aug 2012 04:06:38 +0000 (21:06 -0700)]
* src/nsterm.m (ns_exec_path, ns_load_path): Use SEPCHAR
(rather than hard-coding the path separator).

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.