bpt/emacs.git
11 years ago* xdisp.c (buffer_shared): Adjust comment.
Dmitry Antipov [Tue, 20 Nov 2012 07:53:04 +0000 (11:53 +0400)]
* xdisp.c (buffer_shared): Adjust comment.
(buffer_shared_and_changed): New function.
(prepare_menu_bars, redisplay_internal): Use it to
decide whether all windows or frames should be updated.

11 years agoMake called-interactively-p work for edebug or advised code.
Stefan Monnier [Tue, 20 Nov 2012 04:24:09 +0000 (23:24 -0500)]
Make called-interactively-p work for edebug or advised code.
* lisp/subr.el (called-interactively-p-functions): New var.
(internal--called-interactively-p--get-frame): New macro.
(called-interactively-p, interactive-p): Rewrite in Lisp.
* lisp/emacs-lisp/nadvice.el (advice--called-interactively-skip): New fun.
(called-interactively-p-functions): Use it.
* lisp/emacs-lisp/edebug.el (edebug--called-interactively-skip): New fun.
(called-interactively-p-functions): Use it.
* lisp/allout.el (allout-called-interactively-p): Don't assume
called-interactively-p is a subr.
* src/eval.c (Finteractive_p, Fcalled_interactively_p, interactive_p): Remove.
(syms_of_eval): Remove corresponding defsubr.
* src/bytecode.c (exec_byte_code): `interactive-p' is now a Lisp function.
* test/automated/advice-tests.el (advice-tests--data): Remove.
(advice-tests): Move the tests directly here instead.
Add called-interactively-p tests.

11 years agoAdd a menu for profiler report mode
Glenn Morris [Tue, 20 Nov 2012 00:57:23 +0000 (19:57 -0500)]
Add a menu for profiler report mode

* lisp/profiler.el (profiler-report-mode-map): Add a menu.
No need to bind `q' because we derive from special-mode.
(profiler-report-find-entry): Handle calls from the menu-bar.

11 years agoImprove static checking of integer overflow and stack smashing.
Paul Eggert [Mon, 19 Nov 2012 23:39:28 +0000 (15:39 -0800)]
Improve static checking of integer overflow and stack smashing.

* configure.ac (WARN_CFLAGS): Add -Wstack-protector and
-Wstrict-overflow if using GCC 4.7.2 or later on a platform with
at least 64-bit long int.  This improves static checking on these
platforms, when configured with --enable-gcc-warnings.

11 years ago* lisp/emacs-lisp/byte-run.el (defun-declarations-alist):
Stefan Monnier [Mon, 19 Nov 2012 21:30:55 +0000 (16:30 -0500)]
* lisp/emacs-lisp/byte-run.el (defun-declarations-alist):
Allow compiler-macros to be lambda expressions.
* lisp/progmodes/python.el: Use cl-lib.  Move var declarations outside of
eval-when-compile.
(python-syntax-context): Add compiler-macro.
(python-font-lock-keywords): Simplify with De Morgan.

11 years ago* lisp/vc/diff-mode.el (diff-hunk): Don't make useless timers.
Stefan Monnier [Mon, 19 Nov 2012 18:40:18 +0000 (13:40 -0500)]
* lisp/vc/diff-mode.el (diff-hunk): Don't make useless timers.

11 years ago* lisp/files.el (load-file): Require match in minibuffer selection, as was
Stefan Monnier [Mon, 19 Nov 2012 18:27:25 +0000 (13:27 -0500)]
* lisp/files.el (load-file): Require match in minibuffer selection, as was
the case in Emacs-20 before we changed the spec to allow .elc files.

Fixes: debbugs:12935

11 years agoUse cl-lib instead of cl, and interactive-p => called-interactively-p.
Stefan Monnier [Mon, 19 Nov 2012 17:24:12 +0000 (12:24 -0500)]
Use cl-lib instead of cl, and interactive-p => called-interactively-p.
* lisp/erc/erc-track.el, lisp/erc/erc-networks.el, lisp/erc/erc-netsplit.el:
* lisp/erc/erc-dcc.el, lisp/erc/erc-backend.el: Use cl-lib, nth, pcase, and
called-interactively-p instead of cl.
* lisp/erc/erc-speedbar.el, lisp/erc/erc-services.el:
* lisp/erc/erc-pcomplete.el, lisp/erc/erc-notify.el, lisp/erc/erc-match.el:
* lisp/erc/erc-log.el, lisp/erc/erc-join.el, lisp/erc/erc-ezbounce.el:
* lisp/erc/erc-capab.el: Don't require cl since we don't use it.
* lisp/erc/erc.el: Use cl-lib, nth, pcase, and called-interactively-p i.s.o cl.
(erc-lurker-ignore-chars, erc-common-server-suffixes): Move before first use.
* lisp/json.el: Don't require cl since we don't use it.
* lisp/color.el: Don't require cl.
(color-complement): `caddr' -> `nth 2'.
* test/automated/ert-x-tests.el: Use cl-lib.
* test/automated/ert-tests.el: Use lexical-binding and cl-lib.

11 years ago* lisp/calendar/time-date.el (time-to-seconds): De-obsolete.
Stefan Monnier [Mon, 19 Nov 2012 16:17:49 +0000 (11:17 -0500)]
* lisp/calendar/time-date.el (time-to-seconds): De-obsolete.

11 years ago* lisp/cedet/semantic/fw.el (semantic-make-local-hook)
Stefan Monnier [Mon, 19 Nov 2012 16:16:07 +0000 (11:16 -0500)]
* lisp/cedet/semantic/fw.el (semantic-make-local-hook)
(semantic-mode-line-update): Simplify via CSE.

11 years agomessage.el (message-get-reply-headers): Fix typo in comment
Katsumi Yamaoka [Mon, 19 Nov 2012 11:36:02 +0000 (11:36 +0000)]
message.el (message-get-reply-headers): Fix typo in comment

11 years agomessage.el (message-get-reply-headers): Make sure the reply goes to the author if...
Katsumi Yamaoka [Mon, 19 Nov 2012 06:24:14 +0000 (06:24 +0000)]
message.el (message-get-reply-headers): Make sure the reply goes to the author if it is a wide reply

11 years ago* calc/calc-forms.el (math-leap-year-p): Fix formula for negative
Jay Belanger [Mon, 19 Nov 2012 05:03:08 +0000 (23:03 -0600)]
* calc/calc-forms.el (math-leap-year-p):  Fix formula for negative
year numbers.
(math-date-to-julian-dt): Adjust the initial approximation for the
year to deal with the new definition of the DATE.

11 years agoRename cygwin_convert_path* to cygwin_convert_file_name*
Daniel Colascione [Mon, 19 Nov 2012 01:39:37 +0000 (17:39 -0800)]
Rename cygwin_convert_path* to cygwin_convert_file_name*

11 years agoFix latest changes in nt/inc/unistd.h.
Eli Zaretskii [Sun, 18 Nov 2012 16:54:31 +0000 (18:54 +0200)]
Fix latest changes in nt/inc/unistd.h.

 nt/inc/unistd.h: Don't include fcntl.h and don't define O_RDWR.

Fixes: debbugs:12881

11 years agoAuto-commit of generated files.
Glenn Morris [Sun, 18 Nov 2012 11:19:05 +0000 (06:19 -0500)]
Auto-commit of generated files.

11 years agoAvoid using "X" interactive flag in filecache.el.
Chong Yidong [Sun, 18 Nov 2012 05:38:13 +0000 (13:38 +0800)]
Avoid using "X" interactive flag in filecache.el.

* filecache.el (file-cache--read-list): New function.
(file-cache-add-directory-list, file-cache-add-file-list)
(file-cache-delete-file-list, file-cache-delete-directory-list):
Use it to read a list of files or directories.
(file-cache-add-file, file-cache-add-directory)
(file-cache-delete-file-list, file-cache-delete-file-regexp)
(file-cache-delete-directory): Print an message.

Fixes: debbugs:12846

11 years ago* calc/calc-forms.el (math-date-to-dt): Use integer date
Jay Belanger [Sun, 18 Nov 2012 03:59:00 +0000 (21:59 -0600)]
* calc/calc-forms.el (math-date-to-dt): Use integer date
when calling `math-date-to-julian-dt' and 'math-date-to-gregorian-dt'.

11 years ago* nsterm.m (ns_select): Send SIGIO only to self, not to process group.
Paul Eggert [Sun, 18 Nov 2012 02:29:09 +0000 (18:29 -0800)]
* nsterm.m (ns_select): Send SIGIO only to self, not to process group.

11 years agoChangeLog Merge fix
Glenn Morris [Sun, 18 Nov 2012 02:19:43 +0000 (18:19 -0800)]
ChangeLog Merge fix

11 years agoMerge from emacs-24; up to 2012-11-15T23:31:37Z!dancol@dancol.org
Glenn Morris [Sun, 18 Nov 2012 01:52:36 +0000 (17:52 -0800)]
Merge from emacs-24; up to 2012-11-15T23:31:37Z!dancol@dancol.org

11 years agoNEWS tweak
Glenn Morris [Sun, 18 Nov 2012 01:45:44 +0000 (17:45 -0800)]
NEWS tweak

11 years ago* lisp/image.el (insert-image, insert-sliced-image): Doc fix.
Glenn Morris [Sun, 18 Nov 2012 01:43:32 +0000 (17:43 -0800)]
* lisp/image.el (insert-image, insert-sliced-image): Doc fix.

11 years agoDocument eager macro expansion
Glenn Morris [Sun, 18 Nov 2012 01:38:42 +0000 (17:38 -0800)]
Document eager macro expansion

* doc/lispref/loading.texi (How Programs Do Loading): Add eager macro expansion.
* doc/lispref/macros.texi (Expansion): Mention eager macro expansion.

* etc/NEWS: Related edit.

11 years agoSilence some warnings.
Juanma Barranquero [Sun, 18 Nov 2012 01:20:04 +0000 (02:20 +0100)]
Silence some warnings.

lisp/woman.el (woman-non-underline-faces): Use `set-face-underline'.
lisp/calc/calc.el (math-format-date-cache): Declare.

11 years agosrc/w32proc.c (waitpid): Remove unused label get_result.
Juanma Barranquero [Sun, 18 Nov 2012 01:12:17 +0000 (02:12 +0100)]
src/w32proc.c (waitpid): Remove unused label get_result.

11 years agont/config.nt: Sync with autogen/config.in.
Juanma Barranquero [Sat, 17 Nov 2012 23:58:56 +0000 (00:58 +0100)]
nt/config.nt: Sync with autogen/config.in.
(HAVE_FPATHCONF): Remove.

11 years ago* minibuf.texi (Basic Completion): Mention completion-table-with-quoting
Glenn Morris [Sat, 17 Nov 2012 23:29:29 +0000 (15:29 -0800)]
* minibuf.texi (Basic Completion): Mention completion-table-with-quoting

11 years agoAdd some cindex entries for previous change
Glenn Morris [Sat, 17 Nov 2012 23:24:36 +0000 (15:24 -0800)]
Add some cindex entries for previous change

11 years agolib-src/makefile.w32-in, src/makefile.w32-in: Update dependencies.
Juanma Barranquero [Sat, 17 Nov 2012 23:16:24 +0000 (00:16 +0100)]
lib-src/makefile.w32-in, src/makefile.w32-in: Update dependencies.

* lib-src/makefile.w32-in (SYSWAIT_H): New macro.
($(BLD)/movemail.$(O)): Update dependencies.

* src/makefile.w32-in (SYSWAIT_H): New macro.
($(BLD)/callproc.$(O), $(BLD)/w32proc.$(O), $(BLD)/process.$(O))
($(BLD)/sysdep.$(O)): Update dependencies.

11 years ago* minibuf.texi (Basic Completion): Mention misc completion-table funcs.
Glenn Morris [Sat, 17 Nov 2012 22:45:24 +0000 (14:45 -0800)]
* minibuf.texi (Basic Completion): Mention misc completion-table funcs.

* etc/NEWS: Related edit.

11 years agoAssume POSIX 1003.1-1988 or later for fcntl.h.
Paul Eggert [Sat, 17 Nov 2012 22:12:47 +0000 (14:12 -0800)]
Assume POSIX 1003.1-1988 or later for fcntl.h.

* admin/CPP-DEFINES (O_RDONLY, O_RDWR, HAVE_FCNTL_H): Remove.
* admin/merge-gnulib (GNULIB_MODULES): Add fcntl-h.
* configure.ac: Do not check for fcntl.h.
* lib/gnulib.mk: Regenerate.
* lib-src/movemail.c, lib-src/update-game-score.c: Assume <fcntl.h> exists.
* nt/inc/sys/socket.h (O_NONBLOCK): Rename from O_NDELAY, since the
POSIX name for this flag is O_NONBLOCK.  All uses changed.
* nt/inc/unistd.h (O_RDWR, O_NOCTTY): New macros.  Like AT_FDCWD etc.
these really should be moved to a replacement <fcntl.h> if and
when that gets implemented.  In the meantime, include <fcntl.h>
to make sure we don't override its definitions.
* src/callproc.c (relocate_fd): Assume F_DUPFD.
* src/emacs.c, src/term.c (O_RDWR): Remove.
* src/keyboard.c (tty_read_avail_input): Use O_NONBLOCK rather than
O_NDELAY, since O_NONBLOCK is the standard name for this flag.
* src/nsterm.m: Assume <fcntl.h> exists.
* src/process.c (NON_BLOCKING_CONNECT, allocate_pty, create_process)
(create_pty, Fmake_network_process, server_accept_connection)
(wait_reading_process_output, init_process_emacs):
Assume O_NONBLOCK.
(wait_reading_process_output): Put in a special case for WINDOWSNT
to mimick the older behavior where it had O_NDELAY but not O_NONBLOCK.
It's not clear this is needed, but it's a more-conservative change.
(create_process): Assume FD_CLOEXEC.
(create_process, create_pty): Assume O_NOCTTY.
* src/sysdep.c (init_sys_modes, reset_sys_modes): Assume F_SETFL.
(reset_sys_modes): Use O_NONBLOCK rather than O_NDELAY.
Omit if not DOS_NT, since F_GETFL is not defined there.
(serial_open): Assume O_NONBLOCK and O_NOCTTY.
* src/term.c: Include <fcntl.h>, for flags like O_NOCTTY.
(O_NOCTTY): Remove.
(init_tty): Assume O_IGNORE_CTTY is defined to 0 on platforms that
lack it, since gnulib guarantees this.
* src/w32.c (fcntl): Test for O_NONBLOCK rather than O_NDELAY.

Fixes: debbugs:12881

11 years agoCalc now uses the Gregorian calendar for all dates,
Paul Eggert [Sat, 17 Nov 2012 22:01:59 +0000 (16:01 -0600)]
Calc now uses the Gregorian calendar for all dates,
and uses January 1, 1 AD as its day number 1.
* doc/misc/calc.texi (Date Forms): Document this.

* lisp/calc/calc-forms.el (math-julian-date-beginning)
(math-julian-date-beginning-int): Implement this.

11 years agolisp/*.el: Add missing declarations.
Juanma Barranquero [Sat, 17 Nov 2012 21:52:12 +0000 (22:52 +0100)]
lisp/*.el: Add missing declarations.
* descr-text.el (quail-find-key):
* dired.el (desktop-file-name):
* dirtrack.el (shell-prefixed-directory-name, shell-process-cd):
* generic-x.el (comint-mode, comint-exec):
* image-dired.el (widget-forward):
* info.el (speedbar-add-expansion-list, speedbar-center-buffer-smartly)
(speedbar-change-expand-button-char)
(speedbar-change-initial-expansion-list, speedbar-delete-subblock)
(speedbar-make-specialized-keymap, speedbar-make-tag-line):
* printing.el (easy-menu-add-item, easy-menu-remove-item)
(widget-field-action, widget-value-set):
* speedbar.el (imenu--make-index-alist):
* term.el (ring-empty-p, ring-ref, ring-insert-at-beginning)
(ring-length, ring-insert):
* vcursor.el (compare-windows-skip-whitespace):
* woman.el (dired-get-filename):
Declare functions.

* term/w32-win.el (cygwin-convert-path-from-windows): Fix declaration.

11 years ago* calc/calc-forms.el (calc-gregorian-switch): Declare.
Jay Belanger [Sat, 17 Nov 2012 21:34:09 +0000 (15:34 -0600)]
* calc/calc-forms.el (calc-gregorian-switch): Declare.

11 years ago* calc/calc.el (calc-gregorian-switch): New variable.
Jay Belanger [Sat, 17 Nov 2012 21:30:43 +0000 (15:30 -0600)]
* calc/calc.el (calc-gregorian-switch): New variable.

* calc/calc-forms.el (math-day-in-year, math-dt-before-p)
(math-absolute-from-gregorian-dt, math-absolute-from-julian-dt)
(math-date-to-julian-dt, math-date-to-gregorian-dt): New functions.
(math-leap-year-p): Add option to distinguish between Julian
and Gregorian calendars.
(math-day-number): Use `math-day-in-year' to do the computations.
(math-absolute-from-dt): Rename from `math-absolute-from-date'.
Use `math-absolute-from-gregorian' and `math-absolute-from-julian'
to do the computations.
(math-date-to-dt): Use `math-date-to-julian-dt' and `math-date-to-gregorian-dt'
to do the computations.
(calcFunc-weekday, math-format-date-part): Use the new version of the DATE to
determine the weekday.
(calcFunc-newmonth, calcFunc-newyear): Use `calc-gregorian-switch' when necessary.

11 years agoFix bug #12914 with drag-n-drop in native MS-Windows build.
Eli Zaretskii [Sat, 17 Nov 2012 20:41:21 +0000 (22:41 +0200)]
Fix bug #12914 with drag-n-drop in native MS-Windows build.

 lisp/term/w32-win.el (w32-handle-dropped-file): Use 'file://' only on
 Cygwin; otherwise use 'file:'.
 (cygwin-convert-path-from-windows): Declare, to avoid
 byte-compiler warnings.

11 years agoRelocate NEWS entry to correct section
Glenn Morris [Sat, 17 Nov 2012 19:01:09 +0000 (11:01 -0800)]
Relocate NEWS entry to correct section

11 years agoFix bug #12878 with compilation failure with Visual C++ 11.0.
Eli Zaretskii [Sat, 17 Nov 2012 18:51:06 +0000 (20:51 +0200)]
Fix bug #12878 with compilation failure with Visual C++ 11.0.

 src/w32select.c: Include w32common.h before w32term.h, so that
 windows.h gets included before w32term.h uses some of its
 features, see below.
 src/w32term.h (LOCALE_ENUMPROCA, LOCALE_ENUMPROCW) [_MSC_VER]: New
 typedefs.
 (EnumSystemLocalesA, EnumSystemLocalesW) [_MSC_VER]: New
 prototypes.
 (EnumSystemLocales) [_MSC_VER]: Define if undefined.

11 years agoUpdate comment to match recent change.
Paul Eggert [Sat, 17 Nov 2012 18:30:16 +0000 (10:30 -0800)]
Update comment to match recent change.

11 years agoFix MS-Windows emulation of 'faccessat' wrt directories.
Eli Zaretskii [Sat, 17 Nov 2012 16:52:48 +0000 (18:52 +0200)]
Fix MS-Windows emulation of 'faccessat' wrt directories.

 src/w32.c (faccessat): Pretend that directories have the execute bit
 set.  Emacs expects that, e.g., in files.el:cd-absolute.

11 years agoFix bug #12829 with aborts on MS-Windows when several child processes die.
Eli Zaretskii [Sat, 17 Nov 2012 16:46:45 +0000 (18:46 +0200)]
Fix bug #12829 with aborts on MS-Windows when several child processes die.

 nt/inc/sys/wait.h: New file, with prototype of waitpid and
 definitions of macros it needs.
 nt/inc/ms-w32.h (wait): Don't define, 'wait' is not used anymore.
 (sys_wait): Remove prototype.
 nt/config.nt (HAVE_SYS_WAIT_H): Define to 1.

 src/w32proc.c (create_child): Don't clip the PID of the child
 process to fit into an Emacs integer, as this is no longer a
 restriction.
 (waitpid): Rename from sys_wait.  Emulate a Posix 'waitpid' by
 reaping only the process specified by PID argument, if that is
 positive.  Use PID instead of dead_child to know which process to
 reap.  Wait for the child to die only if WNOHANG is not in
 OPTIONS.
 (sys_select): Don't set dead_child.
 src/sysdep.c (wait_for_termination_1): Remove the WINDOWSNT portion,
 as it is no longer needed.
 src/process.c (waitpid, WUNTRACED) [!WNOHANG]: Remove definitions,
 no longer needed.
 (record_child_status_change): Remove the setting of
 record_at_most_one_child for the !WNOHANG case.

11 years ago* nsterm.m (hold_event): Set send_appdefined to YES.
Jan Djärv [Sat, 17 Nov 2012 15:28:56 +0000 (16:28 +0100)]
* nsterm.m (hold_event): Set send_appdefined to YES.
(ns_select): Return at once if events are held (Bug#12834).

11 years agoFix problems in ns port found by static checking.
Paul Eggert [Sat, 17 Nov 2012 15:15:49 +0000 (07:15 -0800)]
Fix problems in ns port found by static checking.

* nsterm.m: Include <pthread.h>, for pthread_mutex_lock etc.
(hold_event, setPosition:portion:whole:): Send SIGIO only to self,
not to process group.
(ns_select): Use emacs_write, not write, as that's more robust
in the presence of signals.
(fd_handler:): Check for read errors.

11 years agoAuto-commit of loaddefs files.
Glenn Morris [Sat, 17 Nov 2012 11:20:58 +0000 (06:20 -0500)]
Auto-commit of loaddefs files.

11 years agoAuto-commit of generated files.
Glenn Morris [Sat, 17 Nov 2012 11:17:40 +0000 (06:17 -0500)]
Auto-commit of generated files.

11 years agoDon't produce "barebin" zip file as part of MS-Windows distributions.
Dani Moncayo [Sat, 17 Nov 2012 08:55:07 +0000 (10:55 +0200)]
Don't produce "barebin" zip file as part of MS-Windows distributions.

 nt/zipdist.bat (ZIP_CHECK): Remove unused label.  When invoking 7z
 to check if it's installed, redirect standard output and standard
 error to the null device.
 (ZIP_DIST): Don't build the "barebin" distribution.

11 years ago* minibuf.texi (Programmed Completion): Doc fix for metadata request.
Leo Liu [Sat, 17 Nov 2012 07:45:52 +0000 (15:45 +0800)]
* minibuf.texi (Programmed Completion): Doc fix for metadata request.

Fixes: debbugs:12850

11 years ago* lisp/emacs-lisp/syntax.el (syntax-propertize-function): Doc fix.
Chong Yidong [Sat, 17 Nov 2012 07:33:01 +0000 (15:33 +0800)]
* lisp/emacs-lisp/syntax.el (syntax-propertize-function): Doc fix.

Fixes: debbugs:12810

11 years agoFix prefix arg handling in ibuffer marking commands.
Andreas Politz [Sat, 17 Nov 2012 07:15:23 +0000 (15:15 +0800)]
Fix prefix arg handling in ibuffer marking commands.

* ibuffer.el (ibuffer-mark-forward, ibuffer-unmark-forward)
(ibuffer-unmark-backward, ibuffer-mark-interactive): Support plain
prefix and negative numeric prefix args.

Fixes: debbugs:12795

11 years agoFix for vc-svn-merge-news.
Chong Yidong [Sat, 17 Nov 2012 07:06:57 +0000 (15:06 +0800)]
Fix for vc-svn-merge-news.

* vc/vc-svn.el (vc-svn-merge-news): Properly parse the merge
response when the target file is in a subdirectory.

Fixes: debbugs:12757

11 years agoFix for gamegrid-add-score-with-update-game-score-1.
Stephen Berman [Sat, 17 Nov 2012 07:00:35 +0000 (15:00 +0800)]
Fix for gamegrid-add-score-with-update-game-score-1.

* lisp/play/gamegrid.el (gamegrid-add-score-with-update-game-score-1):
Don't signal an error with a score that is too low to add to the list
of top scores.

Fixes: debbugs:12779

11 years ago* url-parse.el (url-path-and-query): Minor doc fix.
Chong Yidong [Sat, 17 Nov 2012 06:48:51 +0000 (14:48 +0800)]
* url-parse.el (url-path-and-query): Minor doc fix.

11 years ago* help-mode.el (help-xref-interned): End on point-min.
Chong Yidong [Sat, 17 Nov 2012 06:48:10 +0000 (14:48 +0800)]
* help-mode.el (help-xref-interned): End on point-min.

Fixes: debbugs:12737

11 years ago* mark.texi (Disabled Transient Mark): Doc fixes.
Dani Moncayo [Sat, 17 Nov 2012 06:38:05 +0000 (14:38 +0800)]
* mark.texi (Disabled Transient Mark): Doc fixes.

Fixes: debbugs:12746

11 years ago* filecache.el (file-cache-add-file): Handle relative file name in the argument.
Chong Yidong [Sat, 17 Nov 2012 06:16:46 +0000 (14:16 +0800)]
* filecache.el (file-cache-add-file): Handle relative file name in the argument.

Fixes: debbugs:12694

11 years ago* filecache.el (file-cache-add-file-list): Doc fix.
Chong Yidong [Sat, 17 Nov 2012 06:09:49 +0000 (14:09 +0800)]
* filecache.el (file-cache-add-file-list): Doc fix.

Fixes: debbugs:12694

11 years ago* frames.texi (Display Action Functions): Mention pop-up-frame-parameters.
Glenn Morris [Sat, 17 Nov 2012 03:33:34 +0000 (19:33 -0800)]
* frames.texi (Display Action Functions): Mention pop-up-frame-parameters.

* etc/NEWS: Related markup.

11 years ago* display.texi (Temporary Displays): Document with-temp-buffer-window.
Glenn Morris [Sat, 17 Nov 2012 02:29:58 +0000 (21:29 -0500)]
* display.texi (Temporary Displays): Document with-temp-buffer-window.

* etc/NEWS: Related edit.

11 years agoReword previous with-temp-buffer-window doc fixes
Glenn Morris [Sat, 17 Nov 2012 02:03:58 +0000 (21:03 -0500)]
Reword previous with-temp-buffer-window doc fixes

* lisp/window.el (with-temp-buffer-window):
Reword the doc to be more similar to with-output-to-temp-buffer.

* lisp/subr.el (with-output-to-temp-buffer):
Add doc xref to with-temp-buffer-window.

11 years agoDocument fit-frame-to-buffer
Glenn Morris [Sat, 17 Nov 2012 01:33:26 +0000 (20:33 -0500)]
Document fit-frame-to-buffer

* doc/lispref/frames.texi (Size and Position): Add fit-frame-to-buffer command.
* doc/lispref/windows.texi (Resizing Windows): Add fit-frame-to-buffer option.
(Window Sizes): Add vindex for window-min-height, window-min-width.

* etc/NEWS: Related markup.

11 years agoUse set-face-underline rather than the alias set-face-underline-p
Glenn Morris [Sat, 17 Nov 2012 01:29:24 +0000 (20:29 -0500)]
Use set-face-underline rather than the alias set-face-underline-p

* lisp/woman.el (woman-non-underline-faces):
* lisp/emacs-lisp/cl-lib.el (face-underline-p):
Use set-face-underline rather than the alias set-face-underline-p.

11 years ago* lisp/window.el (with-temp-buffer-window): Doc fix.
Glenn Morris [Sat, 17 Nov 2012 01:26:24 +0000 (20:26 -0500)]
* lisp/window.el (with-temp-buffer-window): Doc fix.

11 years agoFix bug #12908 with documentation of emacs_backtrace.txt on MS-Windows.
Eli Zaretskii [Fri, 16 Nov 2012 18:54:42 +0000 (20:54 +0200)]
Fix bug #12908 with documentation of emacs_backtrace.txt on MS-Windows.

 doc/emacs/trouble.texi (Crashing): Add information about MS-Windows and
 the emacs_backtrace.txt file.

 etc/NEWS: Mention emacs_backtrace.txt.

11 years ago* src/unexelf.c (ELFSIZE) [__NetBSD__ && _LP64]: Set to 64
enami tsugutomo [Fri, 16 Nov 2012 18:41:00 +0000 (13:41 -0500)]
* src/unexelf.c (ELFSIZE) [__NetBSD__ && _LP64]: Set to 64
Needed following 2012-10-20 change.

Fixes: debbugs:12902

11 years ago* lisp/eshell/em-unix.el (eshell/mkdir): Handle "--parents".
Jürgen Hötzel [Fri, 16 Nov 2012 18:18:07 +0000 (13:18 -0500)]
* lisp/eshell/em-unix.el (eshell/mkdir): Handle "--parents".

Fixes: debbugs:12897

11 years ago* lisp/emacs-lisp/advice.el (ad-make-advised-definition): Improve last fix.
Stefan Monnier [Fri, 16 Nov 2012 18:02:39 +0000 (13:02 -0500)]
* lisp/emacs-lisp/advice.el (ad-make-advised-definition): Improve last fix.

11 years agoMerge from emacs-24; up to 2012-11-13T18:57:26Z!dgutov@yandex.ru
Glenn Morris [Fri, 16 Nov 2012 17:20:23 +0000 (09:20 -0800)]
Merge from emacs-24; up to 2012-11-13T18:57:26Z!dgutov@yandex.ru

11 years ago* lisp/emacs-lisp/cl-lib.el: Set more meaningful version number.
Stefan Monnier [Fri, 16 Nov 2012 15:59:40 +0000 (10:59 -0500)]
* lisp/emacs-lisp/cl-lib.el: Set more meaningful version number.

11 years agoRemove no-longer-used pty_max_bytes variable.
Paul Eggert [Fri, 16 Nov 2012 15:29:22 +0000 (07:29 -0800)]
Remove no-longer-used pty_max_bytes variable.

* configure.ac (fpathconf): Remove unnecessary check.
* admin/CPP-DEFINES (HAVE_FPATHCONF): Remove.
* src/process.c (pty_max_bytes): Remove; unused.
(send_process): Do not set it.

11 years agoAuto-commit of loaddefs files.
Glenn Morris [Fri, 16 Nov 2012 12:17:47 +0000 (07:17 -0500)]
Auto-commit of loaddefs files.

11 years agoFix some display-buffer related issues.
Martin Rudalics [Fri, 16 Nov 2012 10:29:48 +0000 (11:29 +0100)]
Fix some display-buffer related issues.

* window.el (enlarge-window, shrink-window): Don't mention return
value in doc-string (Bug#12896).
(window--display-buffer): Don't resize frames - it won't work
with all window managers and defeat pop-up-frame-alist.
(display-buffer-alist): In doc-string explain that CONDITION can
be a function and which arguments are passed to it (Bug#12854).
(display-buffer-assq-regexp): New argument ACTION.  Handle lambda
expressions (Bug#12854).
(display-buffer): Pass ACTION argument to
display-buffer-assq-regexp.

* windows.texi (Choosing Window): Rewrite description of
display-buffer-alist (Bug#12167).
(Display Action Functions): Mention inhibit-switch-frame.  Fix
description of display-buffer-below-selected.  Reorder actions.
Add example (Bug#12848).

11 years ago[Gnus] Don't score by headers when scoring by body
Jan Tatarik [Fri, 16 Nov 2012 09:44:35 +0000 (10:44 +0100)]
[Gnus] Don't score by headers when scoring by body

* gnus-score.el (gnus-score-body):
* gnus-logic.el (gnus-advanced-body): Don't score by headers when
scoring by body.

11 years agoDoc fixes related to fit-frame-to-buffer
Glenn Morris [Fri, 16 Nov 2012 08:31:20 +0000 (00:31 -0800)]
Doc fixes related to fit-frame-to-buffer

* lisp/window.el (fit-frame-to-buffer-bottom-margin)
(fit-frame-to-buffer, fit-window-to-buffer): Doc fixes.

* etc/NEWS: Related edit.

11 years agoNEWS potential FIXME
Glenn Morris [Fri, 16 Nov 2012 08:00:15 +0000 (00:00 -0800)]
NEWS potential FIXME

11 years agocl.texi flet clarification
Glenn Morris [Fri, 16 Nov 2012 07:43:24 +0000 (23:43 -0800)]
cl.texi flet clarification

* doc/misc/cl.texi (Function Bindings): Clarify that cl-flet is lexical.
(Obsolete Macros): Move example here from Function Bindings.

* etc/NEWS: Related edit.

11 years ago* lisp/faces.el (face-underline-p): Use face-attribute-specified-or.
Glenn Morris [Fri, 16 Nov 2012 02:44:02 +0000 (21:44 -0500)]
* lisp/faces.el (face-underline-p): Use face-attribute-specified-or.

11 years ago* src/editfns.c (Fmessage): Mention message-log-max. (Bug#12849)
Glenn Morris [Fri, 16 Nov 2012 02:40:54 +0000 (21:40 -0500)]
* src/editfns.c (Fmessage): Mention message-log-max.  (Bug#12849)

11 years agoMerge from cygw32 branch
Daniel Colascione [Thu, 15 Nov 2012 23:31:37 +0000 (15:31 -0800)]
Merge from cygw32 branch

11 years agoUse right url-handler for drag-and-dropped files under Windows
Daniel Colascione [Thu, 15 Nov 2012 23:28:27 +0000 (15:28 -0800)]
Use right url-handler for drag-and-dropped files under Windows

11 years agolisp/emacs-lisp/cl-macs.el (cl-loop, cl-do, cl-do*): Doc fixes.
Juanma Barranquero [Thu, 15 Nov 2012 21:01:25 +0000 (22:01 +0100)]
lisp/emacs-lisp/cl-macs.el (cl-loop, cl-do, cl-do*): Doc fixes.

11 years ago* lisp/emacs-lisp/cl-macs.el (cl-flet, cl-flet*): Fix docstring.
Stefan Monnier [Thu, 15 Nov 2012 18:35:05 +0000 (13:35 -0500)]
* lisp/emacs-lisp/cl-macs.el (cl-flet, cl-flet*): Fix docstring.

Fixes: debbugs:12895

11 years ago* src/eval.c (Finteractive_p): Revert lexbind-merge mishap.
Stefan Monnier [Thu, 15 Nov 2012 17:17:23 +0000 (12:17 -0500)]
* src/eval.c (Finteractive_p): Revert lexbind-merge mishap.

11 years agosrc/makefile.w32-in: Update dependencies.
Juanma Barranquero [Thu, 15 Nov 2012 16:21:50 +0000 (17:21 +0100)]
src/makefile.w32-in: Update dependencies.

11 years agont/config.nt: Sync with autogen/config.in.
Juanma Barranquero [Thu, 15 Nov 2012 14:47:31 +0000 (15:47 +0100)]
nt/config.nt: Sync with autogen/config.in.
(GETGROUPS_T, GETGROUPS_ZERO_BUG, GNULIB_FACCESSAT, HAVE_ACCESS)
(HAVE_EACCESS, HAVE_FACCESSAT, HAVE_GETGROUPS, HAVE_LIBGEN_H):
New macros.

11 years ago* doc/lispref/keymaps.texi (Translation Keymaps): Backport subsection
Stefan Monnier [Thu, 15 Nov 2012 14:20:45 +0000 (09:20 -0500)]
* doc/lispref/keymaps.texi (Translation Keymaps): Backport subsection
"Interaction with normal keymaps".

Fixes: debbugs:12868

11 years ago* doc/lispref/keymaps.texi (Translation Keymaps): Add a subsection "Interaction
Stefan Monnier [Thu, 15 Nov 2012 14:17:11 +0000 (09:17 -0500)]
* doc/lispref/keymaps.texi (Translation Keymaps): Add a subsection "Interaction
with normal keymaps" (bug#12868).

11 years ago* lisp/eshell/em-cmpl.el (eshell-pcomplete): New command.
Glenn Morris [Thu, 15 Nov 2012 07:59:46 +0000 (23:59 -0800)]
* lisp/eshell/em-cmpl.el (eshell-pcomplete): New command.
(eshell-cmpl-initialize): Bind eshell-pcomplete to TAB, C-i.

Fixes: debbugs:12838

11 years agoFixes related to face underlining
Glenn Morris [Thu, 15 Nov 2012 07:30:46 +0000 (23:30 -0800)]
Fixes related to face underlining

* lisp/faces.el (face-underline-p): Doc fix.  Handle :underline being
things other than `t' (a string, a list).
(face-inverse-video-p): Doc fix.
(set-face-underline): Rename it back from set-face-underline-p.
Doc fix.  Allow interactive input of values other than t.
(read-face-attribute): Apply formatting to :underline,
since like :box and :stipple it can take list values.

* doc/lispref/display.texi (Face Attributes): Fix :underline COLOR description.
(Attribute Functions): Update for set-face-underline rename.
Tweak descriptions of face-underline-p, face-inverse-video-p.

* etc/NEWS: Related edit.

11 years agoansi-term escape-char fix
Glenn Morris [Thu, 15 Nov 2012 06:17:56 +0000 (22:17 -0800)]
ansi-term escape-char fix

* lisp/term.el (ansi-term): Don't let C-x escape-char binding
clobber the more standard C-c binding.

Fixes: debbugs:12842

11 years ago* display.texi (Face Attributes): Fix :underline COLOR description.
Glenn Morris [Thu, 15 Nov 2012 06:13:46 +0000 (22:13 -0800)]
* display.texi (Face Attributes): Fix :underline COLOR description.

11 years ago* subr.el (set-temporary-overlay-map): Fix previous doc fix (don't quote `t')
Glenn Morris [Thu, 15 Nov 2012 06:12:46 +0000 (22:12 -0800)]
* subr.el (set-temporary-overlay-map): Fix previous doc fix (don't quote `t')

11 years ago* internals.texi (Garbage Collection): Update descriptions
Dmitry Antipov [Thu, 15 Nov 2012 05:25:05 +0000 (09:25 +0400)]
* internals.texi (Garbage Collection): Update descriptions
of vectorlike_header, garbage-collect and gc-cons-threshold.
(Object Internals): Explain Lisp_Object layout and the basics
of an internal type system.
(Buffer Internals): Update description of struct buffer.

11 years ago* lisp/emacs-lisp/advice.el (ad-definition-type): Make sure we don't use
Stefan Monnier [Thu, 15 Nov 2012 04:42:14 +0000 (23:42 -0500)]
* lisp/emacs-lisp/advice.el (ad-definition-type): Make sure we don't use
a preactivated advice from an old advice.el; they're not compatible!

11 years ago* lisp/emacs-lisp/advice.el (ad-make-advised-definition): Fix undefined case.
Katsumi Yamaoka [Thu, 15 Nov 2012 03:30:25 +0000 (22:30 -0500)]
* lisp/emacs-lisp/advice.el (ad-make-advised-definition): Fix undefined case.
* lisp/emacs-lisp/nadvice.el (advice--make-interactive-form):
Fix string-spec case.

11 years ago* lisp/emacs-lisp/nadvice.el: Add buffer-local support to add-function.
Stefan Monnier [Thu, 15 Nov 2012 03:20:49 +0000 (22:20 -0500)]
* lisp/emacs-lisp/nadvice.el: Add buffer-local support to add-function.
(advice--buffer-local-function-sample): New var.
(advice--set-buffer-local, advice--buffer-local): New functions.
(add-function, remove-function): Use them.

11 years ago* lisp/imenu.el (imenu--split-submenus): Use imenu--subalist-p.
Drew Adams [Thu, 15 Nov 2012 02:02:00 +0000 (21:02 -0500)]
* lisp/imenu.el (imenu--split-submenus): Use imenu--subalist-p.

Fixes: debbugs:12717

11 years agoBackport fix for bug#12879 from trunk
Stefan Monnier [Thu, 15 Nov 2012 01:27:52 +0000 (20:27 -0500)]
Backport fix for bug#12879 from trunk

* lisp/emacs-lisp/gv.el (setf): Fix debug spec for multiple assignments

11 years ago* lisp/emacs-lisp/cl-macs.el (cl--transform-lambda): Defend against
Stefan Monnier [Thu, 15 Nov 2012 01:26:52 +0000 (20:26 -0500)]
* lisp/emacs-lisp/cl-macs.el (cl--transform-lambda): Defend against
potential binding of print-gensym to t, and prettify (back)quotes in
case they appear in args's default values.

Fixes: debbugs:12884

11 years ago* eval.c (mark_backtrace) [BYTE_MARK_STACK]: Remove stray '*'.
Paul Eggert [Thu, 15 Nov 2012 00:41:32 +0000 (16:41 -0800)]
* eval.c (mark_backtrace) [BYTE_MARK_STACK]: Remove stray '*'.

This follows up on the 2012-09-29 patch that removed indirection
for the 'function' field.  Reported by Sergey Vinokurov in
<http://lists.gnu.org/archive/html/emacs-devel/2012-11/msg00263.html>.