bpt/emacs.git
11 years agoFix last changes in make-docfile.c.
Eli Zaretskii [Sat, 20 Oct 2012 15:26:10 +0000 (17:26 +0200)]
Fix last changes in make-docfile.c.

 lib-src/make-docfile.c (IS_SLASH, DEF_ELISP_FILE): New macros.
 (scan_lisp_file): Only pass a .el file if its basename matches a
 known file in its entirety.  Use IS_SLASH and DEF_ELISP_FILE.

11 years agoFix a typo in lib-src/ChangeLog.
Eli Zaretskii [Sat, 20 Oct 2012 14:56:09 +0000 (16:56 +0200)]
Fix a typo in lib-src/ChangeLog.

11 years ago* make-docfile.c (scan_lisp_file): Add bounds checking.
Andreas Schwab [Sat, 20 Oct 2012 13:28:42 +0000 (15:28 +0200)]
* make-docfile.c (scan_lisp_file): Add bounds checking.

11 years agoAdd comments with instructions for creating new Lisp data types.
Eli Zaretskii [Sat, 20 Oct 2012 13:20:44 +0000 (15:20 +0200)]
Add comments with instructions for creating new Lisp data types.

11 years ago* lread.c (Fload): Doc fix.
Chong Yidong [Sat, 20 Oct 2012 12:50:49 +0000 (20:50 +0800)]
* lread.c (Fload): Doc fix.

Fixes: debbugs:12592

11 years agoFix *vc-diff* buffer's behavior for empty diffs.
Chong Yidong [Sat, 20 Oct 2012 12:04:45 +0000 (20:04 +0800)]
Fix *vc-diff* buffer's behavior for empty diffs.

* vc/vc.el (vc-diff-internal): Set up Diff mode even if there are
no changes to show.

Fixes: debbugs:12586

11 years agoFix for Eshell's for loop.
Chong Yidong [Sat, 20 Oct 2012 11:54:24 +0000 (19:54 +0800)]
Fix for Eshell's for loop.

* eshell/esh-cmd.el (eshell-rewrite-for-command): Copy the body
list explicitly.

Fixes: debbugs:12571

11 years agoFix last ChangeLog entry.
Chong Yidong [Sat, 20 Oct 2012 11:35:05 +0000 (19:35 +0800)]
Fix last ChangeLog entry.

11 years ago* progmodes/flymake.el (flymake-create-temp-inplace): Use file-truename.
Arne Jørgensen [Sat, 20 Oct 2012 11:34:06 +0000 (19:34 +0800)]
* progmodes/flymake.el (flymake-create-temp-inplace): Use file-truename.

Patch from:
http://lists.gnu.org/archive/html/emacs-devel/2012-07/msg00444.html

11 years agoFix bug #12395 with doc strings silently omitted from DOC on MS-Windows.
Eli Zaretskii [Sat, 20 Oct 2012 10:01:19 +0000 (12:01 +0200)]
Fix bug #12395 with doc strings silently omitted from DOC on MS-Windows.

 lib-src/make-docfile.c (scan_lisp_file): Barf if called with a .el file
 other than one of a small list of supported un-compiled files.
 lib-src/makefile.w32-in (lisp1, lisp2): Name .elc files wherever they
 exist.

 lisp/loadup.el: Update comment about uncompiled Lisp files.

11 years agocalc/calc-units.el (math-extract-units): Properly extract powers of units.
Jay Belanger [Sat, 20 Oct 2012 04:14:32 +0000 (23:14 -0500)]
calc/calc-units.el (math-extract-units): Properly extract powers of units.

11 years agoUnbreak starting an X11 frame from a non-X11 Emacs daemon
Daniel Colascione [Sat, 20 Oct 2012 03:42:02 +0000 (19:42 -0800)]
Unbreak starting an X11 frame from a non-X11 Emacs daemon

11 years agoUndo faccessat change.
Paul Eggert [Fri, 19 Oct 2012 19:25:18 +0000 (12:25 -0700)]
Undo faccessat change.

11 years ago* lisp/minibuffer.el (minibuffer-force-complete): Make the next completion use
Stefan Monnier [Fri, 19 Oct 2012 18:59:36 +0000 (14:59 -0400)]
* lisp/minibuffer.el (minibuffer-force-complete): Make the next completion use
the same completion-field (bug@12221).

11 years agoNew files from gnulib.
Paul Eggert [Fri, 19 Oct 2012 17:14:00 +0000 (10:14 -0700)]
New files from gnulib.

Fixes: debbugs:12632

11 years agoUse faccessat, not access, when checking file permissions.
Paul Eggert [Fri, 19 Oct 2012 16:52:02 +0000 (09:52 -0700)]
Use faccessat, not access, when checking file permissions.

* .bzrignore: Add lib/fcntl.h.
* configure.ac (euidaccess): Remove check; gnulib does this for us now.
(gl_FCNTL_O_FLAGS): Define a dummy version.
* lib/at-func.c, lib/euidaccess.c, lib/faccessat.c, lib/fcntl.in.h:
* lib/getgroups.c, lib/group-member.c, lib/root-uid.h:
* lib/xalloc-oversized.h, m4/euidaccess.m4, m4/faccessat.m4:
* m4/fcntl_h.m4, m4/getgroups.m4, m4/group-member.m4:
New files, from gnulib.
* lib/gnulib.mk, m4/gnulib-comp.m4: Regenerate.
* admin/merge-gnulib (GNULIB_MODULES): Add faccessat.
(GNULIB_TOOL_FLAGS): Avoid at-internal, fchdir, malloc-posix,
openat-die, openat-h, save-cwd.  Do not avoid fcntl-h.
Omit gnulib's m4/fcntl-o.m4.
* nt/inc/ms-w32.h (AT_FDCWD, AT_EACCESS): New symbols.
(access): Remove.
(faccessat): New macro.
* src/Makefile.in (LIB_EACCESS): New macro.
(LIBES): Use it.
* src/callproc.c (init_callproc):
* src/charset.c (init_charset):
* src/fileio.c (check_existing, check_executable):
* src/lread.c (openp, load_path_check):
* src/process.c (allocate_pty):
* src/xrdb.c (file_p):
Use faccessat, not access or euidaccess.  Use symbolic names
instead of integers for the flags, as they're portable now.
* src/charset.c, src/xrdb.c: Include <fcntl.h>, for the new flags used.
* src/fileio.c (Ffile_readable_p):
Use faccessat, not stat + open + close.
(file_directory_p): New function, which uses 'stat' on most places
but 'access' (for efficiency) if WINDOWSNT.
* src/fileio.c (Ffile_directory_p, Fset_file_times):
* src/xrdb.c (file_p): Use file_directory_p.
* src/lisp.h (file_directory_p): New decl.
* src/lread.c (openp): When opening a file, use fstat rather than
stat, as that avoids a permissions race.  When not opening a file,
use file_directory_p rather than stat.
* src/process.c, src/sysdep.c, src/term.c: All uses of '#ifdef O_NONBLOCK'
changed to '#if O_NONBLOCK', to accommodate gnulib O_* tyle.
* src/w32.c (sys_faccessat): Rename from sys_access and switch to
faccessat's API.  All uses changed.

Fixes: debbugs:12632

11 years agosrc/ChangeLog: Fix changers name.
Kenichi Handa [Fri, 19 Oct 2012 13:02:52 +0000 (22:02 +0900)]
src/ChangeLog: Fix changers name.

11 years agofont.c (Ffont_at): Fix previous change.
Kenichi Handa [Fri, 19 Oct 2012 12:59:42 +0000 (21:59 +0900)]
font.c (Ffont_at): Fix previous change.

11 years agoIncrease the value of BASE_PURESIZE to avoid pure space overflow.
Eli Zaretskii [Fri, 19 Oct 2012 10:05:09 +0000 (12:05 +0200)]
Increase the value of BASE_PURESIZE to avoid pure space overflow.

 src/puresize.h (BASE_PURESIZE): Bump the base value to 1700000.  See
 http://lists.gnu.org/archive/html/emacs-devel/2012-10/msg00593.html
 for the reasons.

11 years agoIn debug record height of debugger window also when debugger will be back (Bug#8789).
Martin Rudalics [Fri, 19 Oct 2012 09:28:50 +0000 (11:28 +0200)]
In debug record height of debugger window also when debugger will be back (Bug#8789).

* emacs-lisp/debug.el (debug): Record height of debugger window
also when debugger will be back (Bug#8789).

11 years agoDecrease NSTATICS to 0x800.
Eli Zaretskii [Fri, 19 Oct 2012 06:43:12 +0000 (08:43 +0200)]
Decrease NSTATICS to 0x800.

11 years ago* src/fns.c (Fnreverse): Include the problem element when signalling an error.
Stefan Monnier [Fri, 19 Oct 2012 00:54:35 +0000 (20:54 -0400)]
* src/fns.c (Fnreverse): Include the problem element when signalling an error.

Fixes: debbugs:12677

11 years agoFix how gdb-mi calls display-buffer to avoid switching frames.
Chong Yidong [Thu, 18 Oct 2012 19:46:18 +0000 (03:46 +0800)]
Fix how gdb-mi calls display-buffer to avoid switching frames.

* lisp/progmodes/gdb-mi.el (gdb-display-buffer-other-frame-action):
Convert to defcustom.
(gdb-get-source-file): Don't bind pop-up-windows.

* lisp/progmodes/gud.el (gud-display-line): Don't specially re-use
other frames for the gdb-mi case.

Fixes: debbugs:12648

11 years ago* nsterm.m (ns_select): Check writefds before call to
Jan Djärv [Thu, 18 Oct 2012 18:54:37 +0000 (20:54 +0200)]
* nsterm.m (ns_select): Check writefds before call to
FD_ISSET.

Fixes: debbugs:12668

11 years agoFix wording of error message in staticpro.
Eli Zaretskii [Thu, 18 Oct 2012 18:21:55 +0000 (20:21 +0200)]
Fix wording of error message in staticpro.

11 years agoIncrease NSTATICS; tell the user when we run out of static slots.
Daniel Colascione [Thu, 18 Oct 2012 17:00:08 +0000 (09:00 -0800)]
Increase NSTATICS; tell the user when we run out of static slots.

11 years ago* lisp/erc/erc-backend.el: Require `erc' instead of autoloading its macros.
Stefan Monnier [Thu, 18 Oct 2012 15:51:28 +0000 (11:51 -0400)]
* lisp/erc/erc-backend.el: Require `erc' instead of autoloading its macros.

Fixes: debbugs:12669

11 years ago* lisp/emacs-lisp/advice.el: Clean up commentary a bit.
Stefan Monnier [Thu, 18 Oct 2012 15:37:57 +0000 (11:37 -0400)]
* lisp/emacs-lisp/advice.el: Clean up commentary a bit.
(ad-do-advised-functions, ad-with-originals): Use `declare'.
(byte-code-function-p): Never redefine.

11 years ago* lisp/emacs-lisp/gv.el (cond): Same fix as before for `if'.
Stefan Monnier [Thu, 18 Oct 2012 12:56:10 +0000 (08:56 -0400)]
* lisp/emacs-lisp/gv.el (cond): Same fix as before for `if'.
* Makefile.in ($(MAKEFILE_NAME)): Depend on src/lisp.mk as well.

11 years ago* lisp/erc/erc-backend.el (erc-with-server-buffer): Autoload as well.
Stefan Monnier [Thu, 18 Oct 2012 12:49:18 +0000 (08:49 -0400)]
* lisp/erc/erc-backend.el (erc-with-server-buffer): Autoload as well.

Fixes: debbugs:12669

11 years agoIn window.c fix two flaws reported by Dmitry Antipov.
Martin Rudalics [Thu, 18 Oct 2012 08:27:49 +0000 (10:27 +0200)]
In window.c fix two flaws reported by Dmitry Antipov.

* window.c (Ftemp_output_buffer_show): Remove.
(Fwindow_vscroll, Fset_window_vscroll): Use decode_live_window.
(syms_of_window): Remove defsubr for Stemp_output_buffer_show.

11 years ago* dired.el (dired-sort-toggle): Some ls implementations only allow
Glenn Morris [Thu, 18 Oct 2012 03:50:15 +0000 (20:50 -0700)]
* dired.el (dired-sort-toggle): Some ls implementations only allow
a single option string.

Fixes: debbugs:12666

11 years ago* lisp/minibuffer.el (completion-cycle-threshold): Doc fix
Glenn Morris [Thu, 18 Oct 2012 03:30:04 +0000 (20:30 -0700)]
* lisp/minibuffer.el (completion-cycle-threshold): Doc fix

11 years ago* doc/emacs/mini.texi (Completion Options): Fix off-by-one error
Dani Moncayo [Thu, 18 Oct 2012 03:27:17 +0000 (20:27 -0700)]
* doc/emacs/mini.texi (Completion Options): Fix off-by-one error

Fixes: debbugs:12644

11 years agomerge trunk
Kenichi Handa [Thu, 18 Oct 2012 00:00:39 +0000 (09:00 +0900)]
merge trunk

11 years agointernational/mule.el (set-keyboard-coding-system): Recover input meta mode when...
Kenichi Handa [Wed, 17 Oct 2012 23:59:24 +0000 (08:59 +0900)]
international/mule.el (set-keyboard-coding-system): Recover input meta mode when the new coding system doesn not use 8-bit.  Supply TERMINAL arg to set-input-meta-mode.

11 years agoAvoid compiler warnings in lib-src/ntlib.c
Eli Zaretskii [Wed, 17 Oct 2012 21:13:20 +0000 (23:13 +0200)]
Avoid compiler warnings in lib-src/ntlib.c

 src/ntlib.c: Include <mbstring.h>, to avoid compiler warning about
 _mbspbrk.

11 years agoFix warnings when compiling on MS-Windows with -std=gnu99.
Eli Zaretskii [Wed, 17 Oct 2012 19:02:44 +0000 (21:02 +0200)]
Fix warnings when compiling on MS-Windows with -std=gnu99.

 src/makefile.w32-in ($(BLD)/w32.$(O)):
 ($(BLD)/vm-limit.$(O)):
 ($(BLD)/term.$(O)):
 ($(BLD)/unexw32.$(O)):
 ($(BLD)/fileio.$(O)):
 ($(BLD)/dispnew.$(O)): Update dependencies.
 src/w32term.h (w32_initialize_display_info, initialize_w32_display):
 Add prototypes.
 src/w32proc.c: Include ctype.h.
 src/w32.h (init_environment, check_windows_init_file)
 (syms_of_ntproc, syms_of_ntterm, dostounix_filename)
 (unixtodos_filename, init_winsock, srandom, random, sys_pipe)
 (set_process_dir, sys_spawnve, register_child, sys_sleep, getwd)
 (sys_link): Add prototypes.
 src/w32.c: Include w32select.h.
 (sys_access, e_malloc, sys_select): Add prototypes.
 (emacs_gnutls_pull): 'timeout' is now EMACS_TIME, not struct timeval.
 src/vm-limit.c [WINDOWSNT]: Include w32heap.h.
 src/unexw32.c: Include lisp.h and w32.h.
 src/term.c [WINDOWSNT]: Include w32term.h.
 src/process.c [WINDOWSNT]: Add prototype of sys_select.
 src/fileio.c [WINDOWSNT]: Include w32.h.
 src/dispnew.c [WINDOWSNT]: Include w32.h.

 nt/inc/pwd.h (getuid, geteuid): Add prototypes.
 nt/inc/ms-w32.h (sys_wait, _getpid, gmtgime_r, localtime_r)
 (signal_handler, sys_signal, sigemptyset, sigfillset, sigprocmask)
 (pthread_sigmask, sigismember, setpgrp, sigaction, alarm)
 (sys_kill, getpagesize): Add prototypes for emulated functions.
 nt/inc/grp.h (getgid, getegid): Add prototypes.
 nt/gmake.defs (DEBUG_CFLAGS) [NOOPT]: Add -std=gnu99.
 nt/configure.bat (chkapiN): Avoid compiler warning in junk.c when
 compiling with -std=gnu99.
 nt/config.nt (CHECK_LISP_OBJECT_TYPE): Don't undef, so that it
 could be used via --cflags switch to configure.bat.

11 years ago* doc/emacs/mini.texi (Repetition): Further copyedit.
Glenn Morris [Wed, 17 Oct 2012 16:56:12 +0000 (12:56 -0400)]
* doc/emacs/mini.texi (Repetition): Further copyedit.

11 years ago* doc/emacs/mini.texi (Repetition): Copyedit.
Dani Moncayo [Wed, 17 Oct 2012 16:55:10 +0000 (12:55 -0400)]
* doc/emacs/mini.texi (Repetition): Copyedit.

11 years agoFix bug #12661 with w32 and cygw32 builds under --enable-check-lisp-object-type.
Eli Zaretskii [Wed, 17 Oct 2012 15:37:55 +0000 (17:37 +0200)]
Fix bug #12661 with w32 and cygw32 builds under --enable-check-lisp-object-type.

 src/cygw32.c (Fcygwin_convert_path_to_windows)
 (Fcygwin_convert_path_from_windows): Use EQ to compare 2
 Lisp_Object values.
 src/w32fns.c (w32_msg_pump): Use XIL instead of casting an integer
 to Lisp_Object.

11 years agomerge trunk
Kenichi Handa [Wed, 17 Oct 2012 13:33:48 +0000 (22:33 +0900)]
merge trunk

11 years agoxdisp.c (reseat_1): Make the information stored in it->cmp_it invalidate.
Kenichi Handa [Wed, 17 Oct 2012 13:30:56 +0000 (22:30 +0900)]
xdisp.c (reseat_1): Make the information stored in it->cmp_it invalidate.

11 years agoFix ChangeLog typos.
Juanma Barranquero [Wed, 17 Oct 2012 11:24:34 +0000 (13:24 +0200)]
Fix ChangeLog typos.

11 years agoWhen renaming a file with wdired move point with file and don't lose mark status...
Michael Heerdegen [Wed, 17 Oct 2012 09:11:49 +0000 (11:11 +0200)]
When renaming a file with wdired move point with file and don't lose mark status (Bug#11795).

* wdired.el (wdired-old-marks): New variable.
(wdired-change-to-wdired-mode): Locally set wdired-old-marks.
(wdired-do-renames): Move point with renamed file and don't lose
mark status (Bug#11795).

11 years ago* buffer.c (Fkill_buffer): When unchaining the marker,
Dmitry Antipov [Wed, 17 Oct 2012 05:22:23 +0000 (09:22 +0400)]
* buffer.c (Fkill_buffer): When unchaining the marker,
reset it's buffer pointer to NULL (Bug#12652).

11 years agoDo not verify indirection counters of killed buffers (Bug#12579).
Dmitry Antipov [Wed, 17 Oct 2012 04:58:15 +0000 (08:58 +0400)]
Do not verify indirection counters of killed buffers (Bug#12579).
* buffer.h (BUFFER_CHECK_INDIRECTION): New macro.
* buffer.c (compact_buffer, set_buffer_internal_1): Use it.

11 years agoMerge from emacs-24; up to 2012-05-08T15:19:18Z!monnier@iro.umontreal.ca
Glenn Morris [Wed, 17 Oct 2012 03:44:00 +0000 (20:44 -0700)]
Merge from emacs-24; up to 2012-05-08T15:19:18Z!monnier@iro.umontreal.ca

11 years ago* doc/emacs/search.texi (Query Replace): Document multi-buffer replacement keys.
Juri Linkov [Tue, 16 Oct 2012 23:27:40 +0000 (02:27 +0300)]
* doc/emacs/search.texi (Query Replace): Document multi-buffer replacement keys.

* doc/emacs/maintaining.texi (Tags Search): Change link "Replace" to
"Query Replace".

* lisp/replace.el (query-replace-help): Mention multi-buffer replacement
keys in the Help message.

Fixes: debbugs:12655

11 years agoChangeLog fix.
David Engster [Tue, 16 Oct 2012 15:17:21 +0000 (17:17 +0200)]
ChangeLog fix.

11 years ago* alloc.c (Fmake_byte_code): Fix typo in comment.
Dmitry Antipov [Tue, 16 Oct 2012 07:56:44 +0000 (11:56 +0400)]
* alloc.c (Fmake_byte_code): Fix typo in comment.
* print.c (print_interval): Define as static to match prototype.
* indent.c (disptab_matches_widthtab, recompute_width_table):
Convert to eassert.

11 years ago* editfns.c (get_system_name): Remove.
Dmitry Antipov [Tue, 16 Oct 2012 02:22:25 +0000 (06:22 +0400)]
* editfns.c (get_system_name): Remove.
* lisp.h (get_system_name): Remove prototype.
* xrdb.c (getenv, getpwuid, getpwnam): Remove prototypes.
(get_environ_db): Use Vsystem_name.  Avoid call to strlen.

11 years ago(install-etc): Fix previous change
Glenn Morris [Mon, 15 Oct 2012 21:57:20 +0000 (17:57 -0400)]
(install-etc): Fix previous change

11 years agoImprove previous NEWS change
Glenn Morris [Mon, 15 Oct 2012 21:00:19 +0000 (17:00 -0400)]
Improve previous NEWS change

11 years agoApply program-transform-name etc in more places (bug#12536#34)
Glenn Morris [Mon, 15 Oct 2012 20:56:07 +0000 (16:56 -0400)]
Apply program-transform-name etc in more places (bug#12536#34)

* Makefile.in (install-man, install-etc): Apply $TRANSFORM.
(clean): Delete etc/emacs.tmpdesktop.

* .bzrignore: Add etc/emacs.tmpdesktop.

* etc/NEWS: Mention this.  Unrelated copyedits.

11 years ago* lisp/erc/erc.el (erc-log): Make it into a defsubst.
Stefan Monnier [Mon, 15 Oct 2012 16:49:57 +0000 (12:49 -0400)]
* lisp/erc/erc.el (erc-log): Make it into a defsubst.
(erc-with-server-buffer, define-erc-module, erc-with-buffer)
(erc-with-all-buffers-of-server): Use `declare'.
* lisp/erc/erc-backend.el (erc-log): Adjust autoload accordingly.

11 years agoAdd comment for undef of "interface"
Daniel Colascione [Mon, 15 Oct 2012 10:10:17 +0000 (02:10 -0800)]
Add comment for undef of "interface"

11 years agoFix Fwindow_end's handling of cached position (Bug#12600).
Martin Rudalics [Mon, 15 Oct 2012 09:03:56 +0000 (11:03 +0200)]
Fix Fwindow_end's handling of cached position (Bug#12600).

* window.c (Fwindow_end): Rewrite check whether cached position
can be used (Bug#12600).
(resize_frame_windows, grow_mini_window, shrink_mini_window):
Set windows_or_buffers_changed.

11 years agoMore documentation fixes for changes to defun, defmacro, etc.
Chong Yidong [Mon, 15 Oct 2012 04:03:04 +0000 (12:03 +0800)]
More documentation fixes for changes to defun, defmacro, etc.

* doc/lispref/functions.texi (Anonymous Functions): Explicitly list the
docstring, declare, and interactive arguments to lambda.
(Defining Functions): Likewise for defun.
(Inline Functions): Likewise for defsubst.
(Declare Form): Tweak description.

* doc/lispref/macros.texi (Defining Macros):  defmacro is now a macro.
Explicitly list the docstring and declare arguments.

* emacs-lisp/byte-run.el (defsubst): Doc fix.

11 years agoFix cygw32 build break with dbus compilation
Daniel Colascione [Mon, 15 Oct 2012 01:38:07 +0000 (17:38 -0800)]
Fix cygw32 build break with dbus compilation

11 years ago* image.c (init_tiff_functions, init_imagemagick_functions)
Daniel Colascione [Sun, 14 Oct 2012 23:25:37 +0000 (15:25 -0800)]
* image.c (init_tiff_functions, init_imagemagick_functions)
(init_svg_functions): Fix cygw32 build break by using these
functions only when WINDOWSNT _and_ HAVE_NTGUI.

11 years agoFix last commit.
David Engster [Sun, 14 Oct 2012 19:31:45 +0000 (21:31 +0200)]
Fix last commit.

(semantic-analyze-possible-completions): Replace CEDET compatibility
function `cedet-called-interactively-p' with `called-interactively-p'.

11 years agoMerge bug fixes from CEDET upstream.
David Engster [Sun, 14 Oct 2012 19:24:16 +0000 (21:24 +0200)]
Merge bug fixes from CEDET upstream.

11 years agoMerge changes from CEDET upstream.
David Engster [Sun, 14 Oct 2012 19:20:28 +0000 (21:20 +0200)]
Merge changes from CEDET upstream.

* semantic.el (semantic-error-if-unparsed): New function.  Raise
  error if buffer was not parsed by Semantic (bug #12045).
  (navigate-menu, edit-menu, cedet-menu-map): Enable Semantic items
  only if buffer was parsed.  Also, replace ':active' with ':enable'
  where necessary.

* semantic/wisent/python.el
  (semantic-python-get-system-include-path): Use
  `python-shell-internal-send-string' if available to query Python
  for system paths.

* semantic/senator.el (senator-next-tag):
  (senator-previous-tag):
  (senator-go-to-up-reference): Use `semantic-error-if-unparsed'.

* semantic/complete.el (semantic-complete-jump-local):
  (semantic-complete-jump):
  (semantic-complete-jump-local-members):
  (semantic-complete-self-insert): Use `semantic-error-if-unparsed'.
  (semantic-complete-inline-project): Fix autoload cookie.

* semantic/analyze/complete.el
  (semantic-analyze-possible-completions): Check if buffer was
  parsed.  Only raise an error if function was called interactively,
  otherwise silently return nil.

* cedet.el (cedet-menu-map): Fix copy&paste typo in menu creation.

11 years ago* nsterm.m (ns_select): Count fd:s in writefs also.
Jan Djärv [Sun, 14 Oct 2012 18:28:48 +0000 (20:28 +0200)]
* nsterm.m (ns_select): Count fd:s in writefs also.

Fixes: debbugs:12422

11 years agolisp/window.el (display-buffer): Doc fix.
Eli Zaretskii [Sun, 14 Oct 2012 17:07:00 +0000 (19:07 +0200)]
lisp/window.el (display-buffer): Doc fix.

11 years agomerge trunk
Kenichi Handa [Sun, 14 Oct 2012 08:06:11 +0000 (17:06 +0900)]
merge trunk

11 years agoAdd more mappings for the charset japanese-jisx0208-1978.
Kenichi Handa [Sun, 14 Oct 2012 08:01:30 +0000 (17:01 +0900)]
Add more mappings for the charset japanese-jisx0208-1978.

11 years agoAdapt compile.el to changes in MSVC diagnostics format.
Eli Zaretskii [Sun, 14 Oct 2012 07:40:05 +0000 (09:40 +0200)]
Adapt compile.el to changes in MSVC diagnostics format.

 lisp/progmodes/compile.el (compilation-error-regexp-alist-alist):
 Adjust the msft regexp to the output of Studio 2010, and move msft
 before edg-1.  See the discussion on emacs-devel,
 http://lists.gnu.org/archive/html/emacs-devel/2012-09/msg00579.html,
 for the details.

 etc/compilation.txt (msft): Add error messages in new Studio 2010
 format.

 test/automated/compile-tests.el (compile-tests--test-regexps-data):
 Add data for msft's new format.

11 years ago* lisp/emacs-lisp/eieio.el (eieio-oset-default, eieio-oset, oset-default)
Stefan Monnier [Sun, 14 Oct 2012 01:42:48 +0000 (21:42 -0400)]
* lisp/emacs-lisp/eieio.el (eieio-oset-default, eieio-oset, oset-default)
(oset): Move uses of object-class-fast macro after its definition.

11 years ago* lisp/emacs-lisp/gv.el (if): Don't use closures in non-lexical-binding code.
Stefan Monnier [Sun, 14 Oct 2012 01:39:56 +0000 (21:39 -0400)]
* lisp/emacs-lisp/gv.el (if): Don't use closures in non-lexical-binding code.

11 years agoChangeLog fix
Glenn Morris [Sun, 14 Oct 2012 00:17:07 +0000 (17:17 -0700)]
ChangeLog fix

11 years ago* gtkutil.c (xg_set_widget_bg): Divide by 65535.
Jan Djärv [Sat, 13 Oct 2012 21:52:09 +0000 (23:52 +0200)]
* gtkutil.c (xg_set_widget_bg): Divide by 65535.

Fixes: debbugs:12612

11 years agoComment
Glenn Morris [Sat, 13 Oct 2012 20:17:16 +0000 (13:17 -0700)]
Comment

11 years agousertags updates
Glenn Morris [Sat, 13 Oct 2012 19:39:42 +0000 (12:39 -0700)]
usertags updates

11 years agomerge trunk
Kenichi Handa [Sat, 13 Oct 2012 13:11:40 +0000 (22:11 +0900)]
merge trunk

11 years agocoding.c (detect_coding): Set coding->id before calling this->detector.
Kenichi Handa [Sat, 13 Oct 2012 12:58:52 +0000 (21:58 +0900)]
coding.c (detect_coding): Set coding->id before calling this->detector.

11 years agoAdd .xz to some url code (tiny change).
Liam Stitt [Sat, 13 Oct 2012 10:51:26 +0000 (18:51 +0800)]
Add .xz to some url code (tiny change).
* url-vars.el (url-uncompressor-alist):
* url-file.el (url-file-find-possibly-compressed-file, url-file):
Recognize .xz compression.

Fixes: debbugs:11839

11 years agoAfter saving ispell dictionary, re-enable flyspell if necessary.
Chong Yidong [Sat, 13 Oct 2012 09:51:59 +0000 (17:51 +0800)]
After saving ispell dictionary, re-enable flyspell if necessary.

* lisp/textmodes/ispell.el (ispell-pdict-save): If flyspell-mode is
enabled, re-enable it.

Fixes: debbugs:11963

11 years agoDoc fix for url-http.
Chong Yidong [Sat, 13 Oct 2012 09:37:25 +0000 (17:37 +0800)]
Doc fix for url-http.

* url-http.el (url-http):
* url.el (url-retrieve-internal): Doc fix.

Fixes: debbugs:6407

11 years ago* fileio.c: Formatting fixes.
Andreas Schwab [Sat, 13 Oct 2012 08:55:26 +0000 (10:55 +0200)]
* fileio.c: Formatting fixes.

11 years agoIn debug restore window configuration when debugger-will-be-back is non-nil (Bug...
Martin Rudalics [Sat, 13 Oct 2012 07:58:53 +0000 (09:58 +0200)]
In debug restore window configuration when debugger-will-be-back is non-nil (Bug#12623).

* emacs-lisp/debug.el (debug): When debugger-will-be-back is
non-nil, restore window configuration (Bug#12623).

11 years agoSmall emacs-lisp-intro.texi correction (tiny change)
Gregor Zattler [Sat, 13 Oct 2012 02:22:36 +0000 (19:22 -0700)]
Small emacs-lisp-intro.texi correction (tiny change)

* doc/lispintro/emacs-lisp-intro.texi (Narrowing advantages):
Minor update for changed what-line implementation.

Fixes: debbugs:12629

11 years agoDocument 24.3 ImageMagick changes.
Chong Yidong [Sat, 13 Oct 2012 01:18:52 +0000 (09:18 +0800)]
Document 24.3 ImageMagick changes.

* doc/emacs/files.texi (File Conveniences): ImageMagick enabled by default.

* doc/lispref/display.texi (ImageMagick Images): ImageMagick enabled by default.

11 years agoFix some stat-related races.
Paul Eggert [Sat, 13 Oct 2012 00:52:01 +0000 (17:52 -0700)]
Fix some stat-related races.

* fileio.c (Fwrite_region): Avoid race condition if a file is
removed or renamed by some other process immediately after Emacs
writes it but before Emacs stats it.  Do not assume that stat (or
fstat) succeeds.
* image.c (slurp_file): Resolve the file name with fopen + fstat
rather than stat + fopen.
(pbm_read_file) [0]: Remove unused code with stat race.
* process.c (allocate_pty) [HAVE_PTYS && !PTY_ITERATION && !PTY_OPEN]:
Remove ineffective code with stat race.

11 years ago* src/doc.c (get_doc_string): Don't signal an error if the file is missing.
Stefan Monnier [Fri, 12 Oct 2012 20:11:50 +0000 (16:11 -0400)]
* src/doc.c (get_doc_string): Don't signal an error if the file is missing.
* lisp/help-fns.el (describe-variable, describe-function-1):
* lisp/help-mode.el (help-make-xrefs): Remove error handler, made unneeded.

11 years ago* lisp/emacs-lisp/eieio.el (lisp-imenu-generic-expression): Fix typo.
Stefan Monnier [Fri, 12 Oct 2012 20:07:58 +0000 (16:07 -0400)]
* lisp/emacs-lisp/eieio.el (lisp-imenu-generic-expression): Fix typo.

11 years ago* lisp/ldefs-boot.el: Update to reflect earlier fix in autoload.el
Stefan Monnier [Fri, 12 Oct 2012 19:08:23 +0000 (15:08 -0400)]
* lisp/ldefs-boot.el: Update to reflect earlier fix in autoload.el

11 years ago* nsterm.m (hold_event_q): New static variable.
Jan Djärv [Fri, 12 Oct 2012 17:50:39 +0000 (19:50 +0200)]
* nsterm.m (hold_event_q): New static variable.
(EV_TRAILER, sendScrollEventAtLoc:fromEvent:): Call hold_event if
! q_event_ptr.
(hold_event): New function.
(ns_read_socket): If hold_event_q have events, store them and
return.
(setPosition:portion:whole:): Send SIGIO to ourselves if apploopnr
is zero (Bug#12384).

11 years agosrc/makefile.w32-in ($(BLD)/w32select.$(O)): Update dependencies.
Juanma Barranquero [Fri, 12 Oct 2012 16:32:40 +0000 (18:32 +0200)]
src/makefile.w32-in ($(BLD)/w32select.$(O)): Update dependencies.

11 years agoFix typo in last change.
Eli Zaretskii [Fri, 12 Oct 2012 15:30:06 +0000 (17:30 +0200)]
Fix typo in last change.

11 years agoUpdate dependencies in src/makefile.w32-in.
Eli Zaretskii [Fri, 12 Oct 2012 15:22:50 +0000 (17:22 +0200)]
Update dependencies in src/makefile.w32-in.

 src/makefile.w32-in ($(BLD)/fileio.$(O)): Add sys/file.h.

11 years agoFix bug #12587 with slow startup on MS-Windows with Netlogon service.
Eli Zaretskii [Fri, 12 Oct 2012 15:19:54 +0000 (17:19 +0200)]
Fix bug #12587 with slow startup on MS-Windows with Netlogon service.

 src/fileio.c (check_existing): New function.
 (make_temp_name, Ffile_exists_p, Ffile_writable_p): Call it
 instead of calling 'stat', when what's needed is to check whether
 a file exists.  This avoids expensive system calls on MS-Windows.
 src/w32.c (init_environment): Call 'check_existing' instead of 'stat'.
 src/lread.c (openp) [WINDOWSNT]: Call 'access' instead of 'stat' to
 determine whether a file exists and is not a directory.
 src/lisp.h (check_existing): Add prototype.

11 years agoAdd comments about how non-GUI input works on MS-Windows.
Eli Zaretskii [Fri, 12 Oct 2012 14:14:35 +0000 (16:14 +0200)]
Add comments about how non-GUI input works on MS-Windows.

11 years agoAuto-commit of loaddefs files.
Glenn Morris [Fri, 12 Oct 2012 10:19:14 +0000 (06:19 -0400)]
Auto-commit of loaddefs files.

11 years ago* nsfont.m (nsfont_open): Remove font cache, it is not GC correct.
Jan Djärv [Fri, 12 Oct 2012 10:01:05 +0000 (12:01 +0200)]
* nsfont.m (nsfont_open): Remove font cache, it is not GC correct.

11 years ago* src/buffer.c (Fset_buffer): Doc fix. (Bug#12624)
Glenn Morris [Fri, 12 Oct 2012 01:47:40 +0000 (21:47 -0400)]
* src/buffer.c (Fset_buffer): Doc fix.  (Bug#12624)

11 years agormail-header-summary fix for bug#12625
Glenn Morris [Fri, 12 Oct 2012 01:01:50 +0000 (21:01 -0400)]
rmail-header-summary fix for bug#12625

* lisp/mail/rmailsum.el (rmail-header-summary):
Fix 2010-11-26 test for multiline Subject: field.

11 years ago* progmodes/python.el (python-mode-map): Replace
Fabián Ezequiel Gallina [Fri, 12 Oct 2012 00:07:25 +0000 (21:07 -0300)]
* progmodes/python.el (python-mode-map): Replace
subtitute-key-definition with proper command remapping.
(python-nav--up-list): Fix behavior for blocks on the same level.

11 years ago* lisp/emacs-lisp/cl-lib.el (cl--defsubst-expand): Undo last change.
Stefan Monnier [Thu, 11 Oct 2012 20:36:23 +0000 (16:36 -0400)]
* lisp/emacs-lisp/cl-lib.el (cl--defsubst-expand): Undo last change.
* lisp/emacs-lisp/cl-macs.el (cl--defsubst-expand): Idem.