]> git.eshelyaron.com Git - emacs.git/log
emacs.git
12 years agoauto upstream
Joakim Verona [Sat, 8 Dec 2012 18:36:56 +0000 (19:36 +0100)]
auto upstream

12 years agoFix putenv and unsetenv on MS-Windows.
Eli Zaretskii [Sat, 8 Dec 2012 18:27:37 +0000 (20:27 +0200)]
Fix putenv and unsetenv on MS-Windows.

 src/w32.c (unsetenv): Return 0 if the input string is too long.

 nt/inc/ms-w32.h (sys_putenv): Add prototype.

Fixes: debbugs:13070
12 years agoauto upstream
Joakim Verona [Sat, 8 Dec 2012 17:26:49 +0000 (18:26 +0100)]
auto upstream

12 years agoUse putenv+unsetenv instead of modifying environ directly.
Paul Eggert [Sat, 8 Dec 2012 17:19:51 +0000 (09:19 -0800)]
Use putenv+unsetenv instead of modifying environ directly.

* admin/merge-gnulib (GNULIB_MODULES): Add putenv, unsetenv.
* lib/putenv.c, lib/unsetenv.c, m4/putenv.m4, m4/setenv.m4:
New files, copied automatically from gnulib.
* lib/gnulib.mk, m4/gnulib-comp.m4: Regenerate.
* src/alloc.c (xputenv): New function.
* src/dbusbind.c (Fdbus_init_bus):
* src/emacs.c (main):
* src/xterm.c (x_term_init):
Use xputenv instead of setenv or putenv, to detect memory exhaustion.
* src/editfns.c (initial_tz): Move static var decl up.
(tzvalbuf_in_environ): New static var.
(init_editfns): Initialize these two static vars.
(Fencode_time): Don't assume arbitrary limit on EMACS_INT width.
Save old TZ value on stack, if it's small.
(Fencode_time, set_time_zone_rule): Don't modify 'environ' directly;
instead, use xputenv+unsetenv to set and restore TZ.
(environbuf): Remove static var.  All uses removed.
(Fset_time_zone_rule): Do not save TZ and environ;
no longer needed here.
(set_time_zone_rule_tz1, set_time_zone_rule_tz2) [LOCALTIME_CACHE]:
Move to inside set_time_zone_rule; they don't need file scope any more.
(set_time_zone_rule): Maintain the TZ=value string separately.
(syms_of_editfns): Don't initialize initial_tz;
init_editfns now does it.
* src/emacs.c (dump_tz) [HAVE_TZSET]: Now const.
* src/lisp.h (xputenv): New decl.

Fixes: debbugs:13070
12 years agoauto upstream
Joakim Verona [Sat, 8 Dec 2012 12:22:14 +0000 (13:22 +0100)]
auto upstream

12 years agow32fns.c (emacs_abort): Don't do arithmetics on void pointers.
Fabrice Popineau [Sat, 8 Dec 2012 12:11:29 +0000 (14:11 +0200)]
w32fns.c (emacs_abort): Don't do arithmetics on void pointers.

12 years agoauto upstream
Joakim Verona [Sat, 8 Dec 2012 11:41:32 +0000 (12:41 +0100)]
auto upstream

12 years agoProvide unsetenv for MS-Windows and make putenv Posix-compatible.
Eli Zaretskii [Sat, 8 Dec 2012 11:32:10 +0000 (13:32 +0200)]
Provide unsetenv for MS-Windows and make putenv Posix-compatible.

 src/w32.c (unsetenv, sys_putenv): New functions.

 nt/inc/ms-w32.h (putenv): Redirect to sys_putenv.
 nt/config.nt (HAVE_UNSETENV): Define to 1.

Fixes: debbugs:13070
12 years agoauto upstream
Joakim Verona [Sat, 8 Dec 2012 11:26:36 +0000 (12:26 +0100)]
auto upstream

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

12 years agoauto upstream
Joakim Verona [Sat, 8 Dec 2012 11:11:36 +0000 (12:11 +0100)]
auto upstream

12 years ago* src/editfns.c (Finsert_char): Make the error message more informative.
Chong Yidong [Sat, 8 Dec 2012 11:05:39 +0000 (19:05 +0800)]
* src/editfns.c (Finsert_char): Make the error message more informative.

Fixes: debbugs:12992
12 years agoauto upstream
Joakim Verona [Sat, 8 Dec 2012 10:07:15 +0000 (11:07 +0100)]
auto upstream

12 years agoWindows followup to 2012-12-08T02:30:51Z!eggert@cs.ucla.edu.
Eli Zaretskii [Sat, 8 Dec 2012 09:57:43 +0000 (11:57 +0200)]
Windows followup to 2012-12-08T02:30:51Z!eggert@cs.ucla.edu.

 lib/makefile.w32-in ($(BLD)/sig2str.$(O)): New dependency.
 Remove a stray character at the beginning of the file.

Fixes: debbugs:13026
12 years agoauto upstream
Joakim Verona [Sat, 8 Dec 2012 07:07:17 +0000 (08:07 +0100)]
auto upstream

12 years agoSimplify get_lim_data.
Paul Eggert [Sat, 8 Dec 2012 06:56:26 +0000 (22:56 -0800)]
Simplify get_lim_data.

* admin/CPP-DEFINES (ULIMIT_BREAK_VALUE): Remove.
* configure.ac (ULIMIT_BREAK_VALUE): Remove.
* src/vm-limit.c (get_lim_data): Combine RLIMIT_AS and RLIMIT_DATA methods.
Remove USG and vlimit methods; no longer used these days.
Add #error catchall just in case.

12 years agoauto upstream
Joakim Verona [Sat, 8 Dec 2012 02:36:33 +0000 (03:36 +0100)]
auto upstream

12 years agoAssume POSIX 1003.1-1988 or later for signal.h.
Paul Eggert [Sat, 8 Dec 2012 02:30:51 +0000 (18:30 -0800)]
Assume POSIX 1003.1-1988 or later for signal.h.

Exceptions: do not assume SIGCONT, SIGSTOP, SIGTSTP, SIGTTIN,
SIGTTOU, SIGUSR1, SIGUSR2, as Microsoft platforms lack these.
* admin/CPP-DEFINES (SIGALRM, SIGCHLD, SIGHUP, SIGKILL, SIGPIPE, SIGQUIT):
Remove.
(SIGTRAP): Remove this one too, as config.h no longer defines it.
* admin/merge-gnulib (GNULIB_MODULES): Add sig2str.
* configure.ac (PTY_OPEN, PTY_TTY_NAME_SPRINTF):
Use SIGCHLD rather than SIGCLD.
* lib/sig2str.c, lib/sig2str.h, m4/sig2str.m4: New files, from gnulib.
* lib/gnulib.mk, m4/gnulib-comp.m4: Regenerate.
* lib/makefile.w32-in (GNULIBOBJS): Add $(BUILD)/sig2str.$(O).
* src/process.c [subprocesses]: Include <c-ctype.h>, <sig2str.h>.
(deleted_pid_list, Fdelete_process, create_process)
(record_child_status_change, handle_child_signal, deliver_child_signal)
(init_process_emacs, syms_of_process):
Assume SIGCHLD is defined.
(parse_signal): Remove.  All uses removed.
(abbr_to_signal): New static function.
(Fsignal_process): Use it to convert signal names to ints.
* src/sysdep.c (sys_suspend) [!DOS_NT]: Use kill (0, ...) rather than
kill (getpgrp (), ...).
(emacs_sigaction_init): Assume SIGCHLD is defined.
(init_signals): Assume SIGALRM, SIGCHLD, SIGHUP, SIGKILL,
SIGPIPE, and SIGQUIT are defined.  Do not worry about SIGCLD any more.
* src/syssignal.h (EMACS_KILLPG): Remove.
All uses replaced by 'kill' with a negative pid.
(SIGCHLD): Remove definition, as we now assume SIGCHLD.
* src/w32proc.c (sys_kill): Support negative pids compatibly with POSIX.

Fixes: debbugs:13026
12 years agoauto upstream
Joakim Verona [Fri, 7 Dec 2012 18:01:32 +0000 (19:01 +0100)]
auto upstream

12 years ago* sysdep.c (get_child_status): Abort on internal error (Bug#13086).
Paul Eggert [Fri, 7 Dec 2012 17:53:17 +0000 (09:53 -0800)]
* sysdep.c (get_child_status): Abort on internal error (Bug#13086).

This will cause a production Emacs to dump core instead of
infinite-looping.

12 years agoauto upstream
Joakim Verona [Fri, 7 Dec 2012 16:57:22 +0000 (17:57 +0100)]
auto upstream

12 years ago* lisp/hi-lock.el (hi-lock-unface-buffer): If there's no matching regexp at
Stefan Monnier [Fri, 7 Dec 2012 16:48:42 +0000 (11:48 -0500)]
* lisp/hi-lock.el (hi-lock-unface-buffer): If there's no matching regexp at
point, still provide some default.
(hi-lock--regexps-at-point): Don't enforce a "hi-lock-" prefix on face
names, since we don't use it right now.  Actually return the list.
(hi-lock-file-patterns, hi-lock-interactive-patterns): Use defvar-local.

12 years agoauto upstream
Joakim Verona [Fri, 7 Dec 2012 16:42:13 +0000 (17:42 +0100)]
auto upstream

12 years ago* novice.el (disabled-command-function): Remove a spurious help xref.
Chong Yidong [Fri, 7 Dec 2012 16:34:01 +0000 (00:34 +0800)]
* novice.el (disabled-command-function): Remove a spurious help xref.
Suggested by Kelly Dean.

Fixes: debbugs:13043
12 years agoauto upstream
Joakim Verona [Fri, 7 Dec 2012 16:31:40 +0000 (17:31 +0100)]
auto upstream

12 years ago* subr.el (text-clone-maintain): Fix clone overlay deletion
Chong Yidong [Fri, 7 Dec 2012 16:25:28 +0000 (00:25 +0800)]
* subr.el (text-clone-maintain): Fix clone overlay deletion
when a syntax is specified.

Fixes: debbugs:13025
12 years agoauto upstream
Joakim Verona [Fri, 7 Dec 2012 15:42:19 +0000 (16:42 +0100)]
auto upstream

12 years ago* info.el (Info-set-mode-line): Remove file extension from Info-current-file
Chong Yidong [Fri, 7 Dec 2012 15:31:43 +0000 (23:31 +0800)]
* info.el (Info-set-mode-line): Remove file extension from Info-current-file
if there is one.

Fixes: debbugs:13016
12 years agoAuto-commit of loaddefs files.
Glenn Morris [Fri, 7 Dec 2012 11:19:45 +0000 (06:19 -0500)]
Auto-commit of loaddefs files.

12 years agoauto upstream
Joakim Verona [Fri, 7 Dec 2012 09:06:46 +0000 (10:06 +0100)]
auto upstream

12 years agormail-cease-edit fixes related to "^From " escaping
Glenn Morris [Fri, 7 Dec 2012 08:59:14 +0000 (00:59 -0800)]
rmail-cease-edit fixes related to "^From " escaping

* mail/rmail.el (rmail-mime-decoded): New permanent local.
(rmail-show-message-1): Set rmail-mime-decoded when appropriate.
* mail/rmailedit.el (rmail-cease-edit): Respect rmail-mbox-format
and rmail-mime-decoded.

Fixes: debbugs:9841
12 years agoauto upstream
Joakim Verona [Fri, 7 Dec 2012 08:21:22 +0000 (09:21 +0100)]
auto upstream

12 years ago* frame.c (make_frame): Do not set window's buffer to t.
Dmitry Antipov [Fri, 7 Dec 2012 08:13:49 +0000 (12:13 +0400)]
* frame.c (make_frame): Do not set window's buffer to t.
* window.c (Fsplit_window_internal): Likewise.  Previously it was
used to indicate that the window is being set up.  Now we use
set_window_buffer for all new windows, so the condition in ...
(Fset_window_buffer): ... is always true and can be removed.

12 years agoauto upstream
Joakim Verona [Fri, 7 Dec 2012 07:26:32 +0000 (08:26 +0100)]
auto upstream

12 years agoConvenient macro to check whether the buffer is hidden.
Dmitry Antipov [Fri, 7 Dec 2012 07:16:32 +0000 (11:16 +0400)]
Convenient macro to check whether the buffer is hidden.
* buffer.h (BUFFER_HIDDEN_P): New macro.
* frame.c (make_frame): Use it.  Adjust comment.
* buffer.c (candidate_buffer): New function.
(Fother_buffer, other_buffer_safely): Use it.

12 years agoauto upstream
Joakim Verona [Fri, 7 Dec 2012 06:27:24 +0000 (07:27 +0100)]
auto upstream

12 years agoFix :type in previous (un)rmail change, use a better :group
Glenn Morris [Fri, 7 Dec 2012 04:57:43 +0000 (20:57 -0800)]
Fix :type in previous (un)rmail change, use a better :group

12 years agoDefault to mboxrd in Rmail, allow mboxo as an option
Glenn Morris [Fri, 7 Dec 2012 04:37:14 +0000 (20:37 -0800)]
Default to mboxrd in Rmail, allow mboxo as an option

* lisp/mail/unrmail.el (unrmail-mbox-format): New option.
(batch-unrmail, unrmail): Doc fixes.
(unrmail): Respect unrmail-mbox-format.
* lisp/mail/rmail.el (rmail-mbox-format): New option.
(rmail-show-message-1): Respect rmail-mbox-format.

* etc/NEWS: Related edits.

Fixes: debbugs:6574
12 years ago* lisp/emacs-lisp/cl-macs.el (cl-tagbody): New macro.
Stefan Monnier [Fri, 7 Dec 2012 03:56:57 +0000 (22:56 -0500)]
* lisp/emacs-lisp/cl-macs.el (cl-tagbody): New macro.

12 years agoSpelling fixes.
Paul Eggert [Fri, 7 Dec 2012 02:37:20 +0000 (18:37 -0800)]
Spelling fixes.

12 years ago* doc/lispref/internals.texi: Fix minor whitespace problems.
Paul Eggert [Fri, 7 Dec 2012 01:47:14 +0000 (17:47 -0800)]
* doc/lispref/internals.texi: Fix minor whitespace problems.

Fixes: debbugs:12973
12 years ago* themes/leuven-theme.el: Convert to Unix format.
Andreas Schwab [Thu, 6 Dec 2012 22:44:05 +0000 (23:44 +0100)]
* themes/leuven-theme.el: Convert to Unix format.

12 years agoFurther cleanup of the "cl-" namespace. Fit CL in 80 columns.
Stefan Monnier [Thu, 6 Dec 2012 21:29:29 +0000 (16:29 -0500)]
Further cleanup of the "cl-" namespace.  Fit CL in 80 columns.
* lisp/emacs-lisp/cl-macs.el (cl--pop2, cl--optimize-safety)
(cl--optimize-speed, cl--not-toplevel, cl--parse-loop-clause)
(cl--expand-do-loop, cl--proclaim-history, cl--declare-stack)
(cl--do-proclaim, cl--proclaims-deferred): Rename from the "cl-" prefix.
(cl-progv): Don't rely on dynamic scoping to find the body.
* lisp/emacs-lisp/cl-lib.el (cl--optimize-speed, cl--optimize-safety)
(cl--proclaims-deferred): Rename from the "cl-" prefix.
(cl-declaim): Use backquotes.
* lisp/emacs-lisp/cl-extra.el (cl-make-random-state, cl-random-state-p):
Use "cl--" prefix for the object's tag.

12 years agoauto upstream
Joakim Verona [Thu, 6 Dec 2012 20:25:08 +0000 (21:25 +0100)]
auto upstream

12 years ago* lisp/ses.el: Use advice-add/remove.
Stefan Monnier [Thu, 6 Dec 2012 20:16:38 +0000 (15:16 -0500)]
* lisp/ses.el: Use advice-add/remove.
(ses--advice-copy-region-as-kill, ses--advice-yank): New functions.
(copy-region-as-kill, yank): Use advice-add.
(ses-unload-function): Use advice-remove.

12 years agoauto upstream
Joakim Verona [Thu, 6 Dec 2012 20:15:02 +0000 (21:15 +0100)]
auto upstream

12 years ago* lisp/button.el: Make them work in header-lines.
Jonas Bernoulli [Thu, 6 Dec 2012 20:10:36 +0000 (15:10 -0500)]
* lisp/button.el: Make them work in header-lines.
(button-map): Add bindings for header-line and mode-line use.
(button-get, button-put, button-label): `button' may now be a string.
(button-activate): Don't make it a defsubst.
(button--area-button-p, button--area-button-string): New functions.
(make-text-button): Fix the return value when `beg' was a string.
(push-button): Handle the mode-line case.

Fixes: debbugs:12817
12 years agoauto upstream
Joakim Verona [Thu, 6 Dec 2012 18:45:25 +0000 (19:45 +0100)]
auto upstream

12 years agoAvoid busy-waiting for child processes on Windows. (Bug#13086)
Eli Zaretskii [Thu, 6 Dec 2012 18:36:22 +0000 (20:36 +0200)]
Avoid busy-waiting for child processes on Windows.  (Bug#13086)

 src/w32proc.c (waitpid): Avoid busy-waiting when called with WNOHANG
 if the child process is still running.  Instead, exit the wait
 loop and return zero.

12 years agoauto upstream
Joakim Verona [Thu, 6 Dec 2012 18:35:22 +0000 (19:35 +0100)]
auto upstream

12 years ago* lisp/gnus/gnus-start.el (gnus-before-resume-hook): Add.
Sam Steingold [Thu, 6 Dec 2012 18:30:38 +0000 (13:30 -0500)]
* lisp/gnus/gnus-start.el (gnus-before-resume-hook): Add.
(gnus-1): Run it when Gnus is alive.

12 years agoauto upstream
Joakim Verona [Thu, 6 Dec 2012 17:35:20 +0000 (18:35 +0100)]
auto upstream

12 years ago* lisp/progmodes/sql.el: Use cl-lib and lexical-binding; various cleanup.
Stefan Monnier [Thu, 6 Dec 2012 17:29:30 +0000 (12:29 -0500)]
* lisp/progmodes/sql.el: Use cl-lib and lexical-binding; various cleanup.
(sql-signum): Remove.  Use `cl-signum' instead.
(sql-read-passwd): Remove; use read-passwd instread.
(sql-get-login-ext): Use read-string.
(sql-get-login): Use dolist and pcase.
(sql--completion-table): Rename from sql-try-completion.
Use complete-with-action.
(sql-mode): Don't change abbrev-all-caps globally.
(sql-connect): Don't rely on dynamic scoping for `new-name'.
(sql-postgres-completion-object): Initialize vars in their `let'.
(sql-comint-sybase, sql-comint-sqlite, sql-comint-mysql)
(sql-comint-solid, sql-comint-ms, sql-comint-postgres)
(sql-comint-interbase): Use a single append, without setq.
(sql-comint-linter): Same, and unwind-protect the LINTER_MBX var.

12 years agoauto upstream
Joakim Verona [Thu, 6 Dec 2012 16:25:30 +0000 (17:25 +0100)]
auto upstream

12 years ago* lisp/hi-lock.el: Rework the default face and the serialize regexp code.
Stefan Monnier [Thu, 6 Dec 2012 16:17:11 +0000 (11:17 -0500)]
* lisp/hi-lock.el: Rework the default face and the serialize regexp code.
(hi-lock--auto-select-face-defaults): Remove.
(hi-lock-string-serialize-serial): Remove.
(hi-lock--hashcons-hash): Rename from hi-lock-string-serialize-hash;
make weak.
(hi-lock--hashcons): Rename from hi-lock-string-serialize, return an
equal string.
(hi-lock-set-pattern): Adjust accordingly.
(hi-lock--regexps-at-point): Simplify accordingly.
(hi-lock--auto-select-face-defaults): Remove.
(hi-lock--last-face): New var to replace it.
(hi-lock-read-face-name): Rewrite.
(hi-lock-unface-buffer): Arrange for the face to be the next default.

Fixes: debbugs:11095
12 years agoauto upstream
Joakim Verona [Thu, 6 Dec 2012 13:55:20 +0000 (14:55 +0100)]
auto upstream

12 years ago* frame.h (x_char_width, x_char_height): Remove prototypes.
Dmitry Antipov [Thu, 6 Dec 2012 13:48:11 +0000 (17:48 +0400)]
* frame.h (x_char_width, x_char_height): Remove prototypes.
* w32term.h (x_char_width, x_char_height): Likewise.
* xfns.c (x_char_width, x_char_height): Remove.
* w32fns.c (x_char_width, x_char_height): Likewise.
* nsfns.c (x_char_width, x_char_height): Likewise.
* frame.c (Fframe_char_width): Use FRAME_COLUMN_WIDTH for
all window frames.
(Fframe_char_height): Likewise with FRAME_LINE_HEIGHT.
* keyboard.c (command_loop_1): Remove prototype.
(command_loop_2, top_level_1): Add static to match prototype.

12 years agoauto upstream
Joakim Verona [Thu, 6 Dec 2012 11:25:19 +0000 (12:25 +0100)]
auto upstream

12 years agoAuto-commit of loaddefs files.
Glenn Morris [Thu, 6 Dec 2012 11:21:08 +0000 (06:21 -0500)]
Auto-commit of loaddefs files.

12 years agoAuto-commit of generated files.
Glenn Morris [Thu, 6 Dec 2012 11:17:45 +0000 (06:17 -0500)]
Auto-commit of generated files.

12 years agoauto upstream
Joakim Verona [Thu, 6 Dec 2012 09:20:07 +0000 (10:20 +0100)]
auto upstream

12 years ago* net/tramp.el (tramp-replace-environment-variables): Hide
Michael Albinus [Thu, 6 Dec 2012 09:15:27 +0000 (10:15 +0100)]
* net/tramp.el (tramp-replace-environment-variables): Hide
compiler warning.
(tramp-file-name-for-operation): Remove `executable-find',
`start-process', `call-process' and `call-process-region'.

* net/tramp-compat.el (top): Don't require 'tramp-util and 'tramp-vc.

* net/tramp-gvfs.el (tramp-gvfs-dbus-event-error): Ensure backward
compatibility.

* net/tramp-sh.el (top): Remove `tramp-sh-handle-call-process-region'.

12 years agoauto upstream
Joakim Verona [Thu, 6 Dec 2012 08:40:05 +0000 (09:40 +0100)]
auto upstream

12 years agoUpdate licenses to latest version from FSF.
Paul Eggert [Thu, 6 Dec 2012 08:33:32 +0000 (00:33 -0800)]
Update licenses to latest version from FSF.

These are just minor editorial changes.

12 years agoauto upstream
Joakim Verona [Thu, 6 Dec 2012 07:40:20 +0000 (08:40 +0100)]
auto upstream

12 years agoConvert consecutive copyright years to range
Glenn Morris [Thu, 6 Dec 2012 07:33:20 +0000 (23:33 -0800)]
Convert consecutive copyright years to range

12 years agoFix a recently-introduced delete-process race condition.
Paul Eggert [Thu, 6 Dec 2012 07:31:58 +0000 (23:31 -0800)]
Fix a recently-introduced delete-process race condition.

* callproc.c, process.h (record_kill_process):
New function, containing part of the old call_process_kill.
(call_process_kill): Use it.
This does not change call_process_kill's behavior.
* process.c (Fdelete_process): Use record_kill_process to fix a
race condition that could cause Emacs to lose track of a child.

12 years agoauto upstream
Joakim Verona [Thu, 6 Dec 2012 06:30:03 +0000 (07:30 +0100)]
auto upstream

12 years agoAvoid code duplication between prev_frame and next_frame.
Dmitry Antipov [Thu, 6 Dec 2012 06:23:51 +0000 (10:23 +0400)]
Avoid code duplication between prev_frame and next_frame.
* frame.c (candidate_frame): New function.  Add comment.
(prev_frame, next_frame): Use it.  Adjust comment.

12 years agoMerge from emacs-24; up to 2012-11-24T16:58:43Z!cyd@gnu.org
Glenn Morris [Thu, 6 Dec 2012 06:17:10 +0000 (22:17 -0800)]
Merge from emacs-24; up to 2012-11-24T16:58:43Z!cyd@gnu.org

12 years agoauto upstream
Joakim Verona [Thu, 6 Dec 2012 04:45:02 +0000 (05:45 +0100)]
auto upstream

12 years agospam.el: Fix last change
Katsumi Yamaoka [Thu, 6 Dec 2012 04:37:54 +0000 (04:37 +0000)]
spam.el: Fix last change

12 years agoauto upstream
Joakim Verona [Thu, 6 Dec 2012 04:35:06 +0000 (05:35 +0100)]
auto upstream

12 years agogmm-utils.el (gmm-called-interactively-p): Restore as a macro.
Katsumi Yamaoka [Thu, 6 Dec 2012 04:28:00 +0000 (04:28 +0000)]
gmm-utils.el (gmm-called-interactively-p): Restore as a macro.
gnus-art.el (article-unsplit-urls)
gnus-bookmark.el (gnus-bookmark-bmenu-list)
gnus-registry.el (gnus-registry-get-article-marks)
message.el (message-goto-body): Use it.
  (message-called-interactively-p): Remove.

spam-stat.el (spam-stat-called-interactively-p): New macro.
  (spam-stat-score-buffer): Use it.

spam.el: Silence the warnings against BBDB functions when compiling.

gnus-score.el (gnus-score-decode-text-parts):
  Use append+mapcar instead of the cl function mapcan.

12 years agoauto upstream
Joakim Verona [Thu, 6 Dec 2012 03:35:13 +0000 (04:35 +0100)]
auto upstream

12 years agoAvoid letf macro use from Gnus
Katsumi Yamaoka [Thu, 6 Dec 2012 03:30:23 +0000 (03:30 +0000)]
Avoid letf macro use from Gnus

gnus/gmm-utils.el (gmm-flet): Remove.
gnus/gnus-sync.el (gnus-sync-lesync-call): Avoid overriding json-alist-p.
gnus/message.el (message-read-from-minibuffer): Avoid overriding mail-abbrev-in-expansion-header-p.
mail/mailabbrev.el (mail-abbrev-expand-wrapper): Work in minibuffer so as to enable message-read-from-minibuffer to expand mail aliases.

12 years agoauto upstream
Joakim Verona [Thu, 6 Dec 2012 03:05:04 +0000 (04:05 +0100)]
auto upstream

12 years ago* ffap.el (ffap-replace-file-component): Fix typo.
Chong Yidong [Thu, 6 Dec 2012 03:04:21 +0000 (11:04 +0800)]
* ffap.el (ffap-replace-file-component): Fix typo.

12 years agoFix copyright header in last commit.
Chong Yidong [Thu, 6 Dec 2012 02:57:59 +0000 (10:57 +0800)]
Fix copyright header in last commit.

Note that Fabrice Niessen is listed in the copyright.list file under a
pseudonym (Sébastien Vauban).

12 years ago* themes/leuven-theme.el: New theme.
Fabrice Niessen [Thu, 6 Dec 2012 02:52:22 +0000 (10:52 +0800)]
* themes/leuven-theme.el: New theme.

12 years agoauto upstream
Joakim Verona [Thu, 6 Dec 2012 01:44:59 +0000 (02:44 +0100)]
auto upstream

12 years ago* lisp/minibuf-eldef.el (minibuf-eldef-update-minibuffer): Don't mess with
Stefan Monnier [Thu, 6 Dec 2012 01:39:03 +0000 (20:39 -0500)]
* lisp/minibuf-eldef.el (minibuf-eldef-update-minibuffer): Don't mess with
the `intangible' property.
Suggested by Christopher Schmidt <christopher@ch.ristopher.com>

12 years agoFix minor whitespace issues after "." in manual.
Paul Eggert [Wed, 5 Dec 2012 22:27:56 +0000 (14:27 -0800)]
Fix minor whitespace issues after "." in manual.

Be more systematic about using "@." (not ".") at end of sentence that
ends in a capital letter, and about appending "@:" after non-ends of
sentences that end in a lower case letter followed by "." followed by
whitespace.  Omit unnecessary use of "@:" and "@.".  Similarly for "?"
and "!".  Be more consistent about putting a comma after "i.e." and
"e.g."; this is the typical American style and it's easier to code in
Texinfo.

Fixes: debbugs:12973
12 years agoauto upstream
Joakim Verona [Wed, 5 Dec 2012 18:35:16 +0000 (19:35 +0100)]
auto upstream

12 years agoMinor call-process cleanups.
Paul Eggert [Wed, 5 Dec 2012 18:29:52 +0000 (10:29 -0800)]
Minor call-process cleanups.

* callproc.c (Fcall_process): Do record-unwind-protect on MSDOS
at the same time as other platforms, to simplify analysis.
No need for fd0_volatile since we have synch_process_fd.
Avoid needless emacs_close; arg is always negative.

12 years agoauto upstream
Joakim Verona [Wed, 5 Dec 2012 18:20:20 +0000 (19:20 +0100)]
auto upstream

12 years ago* lisp/gnus/gnus.el (gnus-delete-gnus-frame): Extract from `gnus-other-frame'.
Sam Steingold [Wed, 5 Dec 2012 18:13:38 +0000 (13:13 -0500)]
* lisp/gnus/gnus.el (gnus-delete-gnus-frame): Extract from `gnus-other-frame'.
(gnus-other-frame): Add `gnus-delete-gnus-frame' to
`gnus-suspend-gnus-hook' in addition to `gnus-exit-gnus-hook'.

12 years agoDon't pass un-encoded file name to mkstemp.
Eli Zaretskii [Wed, 5 Dec 2012 17:39:39 +0000 (19:39 +0200)]
Don't pass un-encoded file name to mkstemp.

 src/callproc.c (Fcall_process_region): Encode expanded temp file
 pattern before passing it to mkstemp or mktemp.

12 years agoFix one part of bug #13079 with temporary files in call-process-region.
Eli Zaretskii [Wed, 5 Dec 2012 17:10:00 +0000 (19:10 +0200)]
Fix one part of bug #13079 with temporary files in call-process-region.

 src/callproc.c (Fcall_process_region) [!HAVE_MKSTEMP]: If mktemp
 fails, signal an error instead of continuing with an empty
 string.

12 years agoauto upstream
Joakim Verona [Wed, 5 Dec 2012 16:50:10 +0000 (17:50 +0100)]
auto upstream

12 years ago* lisp/net/rcirc.el (rcirc-urls): Update documentation.
Deniz Dogan [Wed, 5 Dec 2012 16:45:37 +0000 (17:45 +0100)]
* lisp/net/rcirc.el (rcirc-urls): Update documentation.
(rcirc-condition-filter): New function.
(rcirc-browse-url, rcirc-markup-urls): Use only URLs before point
and exclude consecutive duplicate URLs.

Fixes: debbugs:6082
12 years agoauto upstream
Joakim Verona [Wed, 5 Dec 2012 15:55:10 +0000 (16:55 +0100)]
auto upstream

12 years ago* tramp-sh.el (tramp-do-copy-or-rename-file-out-of-band): Check error
Michael Albinus [Wed, 5 Dec 2012 15:50:32 +0000 (16:50 +0100)]
* tramp-sh.el (tramp-do-copy-or-rename-file-out-of-band): Check error
code also on MS-Windows machines.

12 years agoauto upstream
Joakim Verona [Wed, 5 Dec 2012 14:10:13 +0000 (15:10 +0100)]
auto upstream

12 years ago* net/tramp-sh.el (tramp-do-copy-or-rename-file-out-of-band):
Michael Albinus [Wed, 5 Dec 2012 14:06:06 +0000 (15:06 +0100)]
* net/tramp-sh.el (tramp-do-copy-or-rename-file-out-of-band):
Check return code of copy command.

12 years agoAuto-commit of loaddefs files.
Glenn Morris [Wed, 5 Dec 2012 12:20:55 +0000 (07:20 -0500)]
Auto-commit of loaddefs files.

12 years agoAuto-commit of generated files.
Glenn Morris [Wed, 5 Dec 2012 12:17:30 +0000 (07:17 -0500)]
Auto-commit of generated files.

12 years agoauto upstream
Joakim Verona [Wed, 5 Dec 2012 10:35:19 +0000 (11:35 +0100)]
auto upstream

12 years agolisp/gnus/ChangeLog: Fix typo
Katsumi Yamaoka [Wed, 5 Dec 2012 10:29:31 +0000 (10:29 +0000)]
lisp/gnus/ChangeLog: Fix typo

12 years agogmm-utils.el (gmm-called-interactively-p): Revert. This seems to causes Emacs to...
Katsumi Yamaoka [Wed, 5 Dec 2012 10:27:16 +0000 (10:27 +0000)]
gmm-utils.el (gmm-called-interactively-p): Revert.  This seems to causes Emacs to get stuck!