]> code.delx.au - gnu-emacs/log
gnu-emacs
11 years ago* mh-e.texi (VERSION, EDITION, UPDATED, UPDATE-MONTH): Update for mh-e-doc-8.5
Bill Wohler [Sat, 2 Mar 2013 23:20:11 +0000 (15:20 -0800)]
* mh-e.texi (VERSION, EDITION, UPDATED, UPDATE-MONTH): Update for
release 8.5.

* mh-e.texi (Preface, Conventions, Getting Started)
(Using This Manual, Folder Selection, Viewing, Aliases)
(Identities, Speedbar, Menu Bar, Tool Bar, Scan Line Formats)
(Bug Reports, Mailing Lists, MH FAQ and Support, Getting MH-E): Update
URLs.

11 years ago* filelock.c (lock_file): Don't access freed storage.
Paul Eggert [Sat, 2 Mar 2013 21:05:52 +0000 (13:05 -0800)]
* filelock.c (lock_file): Don't access freed storage.

11 years agoThe lock for FILE is now .#FILE or .#-FILE.
Paul Eggert [Sat, 2 Mar 2013 20:41:53 +0000 (12:41 -0800)]
The lock for FILE is now .#FILE or .#-FILE.

The old approach, which fell back on DIR/.#FILE.0 through
DIR/.#FILE.9, had race conditions that could not be easily fixed.
If DIR/.#FILE is a non-symlink file, Emacs now does not create a
lock file for DIR/FILE; that is, DIR/FILE is no longer partly
protected by a lock if DIR/.#FILE is a non-symlink file ("partly"
because the locking mechanism was never reliable in that case).
This patch fixes this and other bugs discovered by a code
inspection that was prompted by
<http://lists.gnu.org/archive/html/emacs-devel/2013-02/msg00531.html>.
Also, this patch switches to .#-FILE (not .#FILE) on MS-Windows,
to avoid interoperability problems between the MS-Windows and
non-MS-Windows implementations.  MS-Windows and non-MS-Windows
instances of Emacs now ignore each others' locks.
* etc/NEWS: Document this.
* src/filelock.c (defined_WINDOWSNT): New constant.
(MAKE_LOCK_NAME, fill_in_lock_file_name):
Don't create DIR/.#FILE.0 through DIR/.#FILE.9.  Instead, create
DIR/.#FILE symlinks on non-MS-Windows hosts, and DIR/.#-FILE
regular files on MS-Windows hosts.
(MAKE_LOCK_NAME, unlock_file, Ffile_locked_p):
Use SAFE_ALLOCA to avoid problems with long file names.
(MAX_LFINFO): Now a local constant, not a global macro.
(IS_LOCK_FILE): Remove.
(lock_file_1): Don't inspect errno if symlink call succeeds;
that's not portable.
(lock_file): Document that this function can return if lock
creation fails.

Fixes: debbugs:13807
11 years agoMerge from emacs-24; up to 2012-12-23T17:06:58Z!eliz@gnu.org
Glenn Morris [Sat, 2 Mar 2013 20:10:05 +0000 (12:10 -0800)]
Merge from emacs-24; up to 2012-12-23T17:06:58Z!eliz@gnu.org

11 years ago* textprop.c: Use bool for booleans.
Paul Eggert [Sat, 2 Mar 2013 18:39:34 +0000 (10:39 -0800)]
* textprop.c: Use bool for booleans.

(validate_interval_range, Fadd_text_properties)
(Fremove_text_properties): Prefer bool to int when either works.

11 years agoAuto-commit of generated files.
Glenn Morris [Sat, 2 Mar 2013 11:17:34 +0000 (06:17 -0500)]
Auto-commit of generated files.

11 years agoProtect against changes of interval tree when adding/removing text props.
Eli Zaretskii [Sat, 2 Mar 2013 09:28:53 +0000 (11:28 +0200)]
Protect against changes of interval tree when adding/removing text props.

 src/textprop.c (Fadd_text_properties, Fremove_text_properties): If
 the interval tree changes as a side effect of calling
 modify_region, re-do processing starting from the call to
 validate_interval_range.  (Bug#13743)

11 years agoRevert last commit; fixed on emacs-24 branch instead.
Eli Zaretskii [Sat, 2 Mar 2013 09:02:12 +0000 (11:02 +0200)]
Revert last commit; fixed on emacs-24 branch instead.

11 years agoFix bug #13734 with errors in lisp.h macro expansion.
Eli Zaretskii [Sat, 2 Mar 2013 08:19:45 +0000 (10:19 +0200)]
Fix bug #13734 with errors in lisp.h macro expansion.

 src/lisp.h (XPNTR) [!USE_LSB_TAG]: Fix parentheses nesting.

11 years agoFixes: debbugs:13734
Andreas Schwab [Sat, 2 Mar 2013 07:48:18 +0000 (08:48 +0100)]
Fixes: debbugs:13734
* lisp.h (XPNTR) [!USE_LSB_TAG]: Remove extra paren.

11 years agoFix typo in comment (bug#13851).
Bastien Guerry [Sat, 2 Mar 2013 07:19:10 +0000 (08:19 +0100)]
Fix typo in comment (bug#13851).

Thanks to Reuben Thomas for reporting this.

11 years ago* tramp.texi (External methods): Explain user name and host name
Michael Albinus [Fri, 1 Mar 2013 21:14:59 +0000 (22:14 +0100)]
* tramp.texi (External methods): Explain user name and host name
specification for "adb".

11 years ago* net/tramp-adb.el (tramp-adb-prompt): Extend regexp.
Michael Albinus [Fri, 1 Mar 2013 21:12:26 +0000 (22:12 +0100)]
* net/tramp-adb.el (tramp-adb-prompt): Extend regexp.
(tramp-adb-handle-process-file): Remove superfluous setting.
(tramp-adb-command-exit-status): Handle case that COMMAND is nil.
(tramp-adb-barf-unless-okay): Use `tramp-adb-command-exit-status'.
(tramp-adb-maybe-open-connection): Apply "su" if user is defined.

11 years ago* lisp/textmodes/ispell.el: Fix nitpicks and byte-compiler warnings.
Stefan Monnier [Fri, 1 Mar 2013 17:46:57 +0000 (12:46 -0500)]
* lisp/textmodes/ispell.el: Fix nitpicks and byte-compiler warnings.
(ispell-print-if-debug): Build `format' in.  Avoid end-of-buffer.
(ispell-parse-hunspell-affix-file): Avoid beginning-of-buffer.
Use dict-key rather than dict-name for the error message.

11 years ago* lisp/net/net-utils.el (net-utils-run-simple): Don't display-buffer
Thierry Volpiatto [Fri, 1 Mar 2013 17:27:57 +0000 (12:27 -0500)]
* lisp/net/net-utils.el (net-utils-run-simple): Don't display-buffer
when reverting.

Fixes: debbugs:13831
11 years agotextmodes/ispell.el: Expand hunspell affix-file paths. Improve debug messages printing.
Agustín Martín [Fri, 1 Mar 2013 17:13:04 +0000 (18:13 +0100)]
textmodes/ispell.el: Expand hunspell affix-file paths. Improve debug messages printing.

* textmodes/ispell.el (ispell-find-hunspell-dictionaries):
  Always expand affix-file before storing to protect against changed
  `default-directory'.
  (ispell-print-if-debug): Make sure message is printed at the end
  of the debug buffer.

11 years agoMerge from gnulib.
Paul Eggert [Fri, 1 Mar 2013 15:16:43 +0000 (07:16 -0800)]
Merge from gnulib.

2013-02-21 putenv: port better to native Windows
2013-02-18 extern-inline: avoid compilation error with HP-UX cc
2013-02-14 putenv: fix heap corruption with mixed putenv/_putenv

11 years agoAuto-commit of loaddefs files.
Glenn Morris [Fri, 1 Mar 2013 12:17:43 +0000 (07:17 -0500)]
Auto-commit of loaddefs files.

11 years agoAuto-commit of loaddefs files.
Glenn Morris [Fri, 1 Mar 2013 11:17:35 +0000 (06:17 -0500)]
Auto-commit of loaddefs files.

11 years agoNEWS copyedits
Glenn Morris [Fri, 1 Mar 2013 08:24:44 +0000 (00:24 -0800)]
NEWS copyedits

11 years ago* NEWS: Fix Tramp "adb" entry. Extend list of discontinued Tramp methods.
Michael Albinus [Fri, 1 Mar 2013 08:24:19 +0000 (09:24 +0100)]
* NEWS: Fix Tramp "adb" entry.  Extend list of discontinued Tramp methods.

11 years ago* tramp.texi (Inline methods): Remove "ssh1", "ssh2", "plink1"
Michael Albinus [Fri, 1 Mar 2013 08:16:13 +0000 (09:16 +0100)]
* tramp.texi (Inline methods): Remove "ssh1", "ssh2", "plink1"
and "plink2" entries.  "plink2" is obsolete for a long time.
(External methods): Remove "scp1" and "scp2" entries.

11 years ago* net/tramp.el (tramp-obsolete-methods): New defconst.
Michael Albinus [Fri, 1 Mar 2013 08:13:53 +0000 (09:13 +0100)]
* net/tramp.el (tramp-obsolete-methods): New defconst.
(tramp-warned-obsolete-methods): New defvar.
(tramp-find-method): Check for obsolete methods.  Map them to a
replacement method if appropriate.

* net/tramp-sh.el (tramp-methods) [scp1, scp2, ssh1, ssh2, plink1]:
Remove methods.
(top): Remove completion functions for "scp1", "scp2", "ssh1",
"ssh2" and "plink1".

11 years ago* lisp/textmodes/sgml-mode.el (sgml-syntax-propertize-function):
Dale Sedivec [Fri, 1 Mar 2013 03:43:57 +0000 (22:43 -0500)]
* lisp/textmodes/sgml-mode.el (sgml-syntax-propertize-function):
Return valid syntax-table property value when converting
quotes within text from string syntax to punctuation syntax.

Fixes: debbugs:13844
11 years ago* etc/NEWS: Add entries for ruby-mode.
Dmitry Gutov [Thu, 28 Feb 2013 22:18:25 +0000 (02:18 +0400)]
* etc/NEWS: Add entries for ruby-mode.

11 years ago* lisp/dired-aux.el (dired-diff): If file at point is a backup file,
Juri Linkov [Thu, 28 Feb 2013 21:51:11 +0000 (23:51 +0200)]
* lisp/dired-aux.el (dired-diff): If file at point is a backup file,
use its original as the default value, and reverse the order
of arguments to the `diff' call.  Doc fix.

Fixes: debbugs:13772
11 years ago* net/tramp-adb.el (tramp-adb-sdk-dir): Remove. Replaced by ...
Michael Albinus [Thu, 28 Feb 2013 19:33:03 +0000 (20:33 +0100)]
* net/tramp-adb.el (tramp-adb-sdk-dir): Remove.  Replaced by ...
(tramp-adb-program): New defcustom.  Remove function.  Adapt calls.

11 years ago* tramp.texi (External methods): Mention `tramp-adb-program'.
Michael Albinus [Thu, 28 Feb 2013 19:29:41 +0000 (20:29 +0100)]
* tramp.texi (External methods): Mention `tramp-adb-program'.

11 years agoInitial support for hunspell dictionaries auto-detection (Bug#13639)
Agustín Martín [Thu, 28 Feb 2013 19:01:34 +0000 (20:01 +0100)]
Initial support for hunspell dictionaries auto-detection (Bug#13639)

* textmodes/ispell.el (ispell-find-hunspell-dictionaries):
Ask hunspell about available and default dictionaries.
(ispell-parse-hunspell-affix-file): Extract relevant info from
hunspell affix file.
(ispell-hunspell-fill-dictionary-entry): Fill non-initialized
`ispell-dictionary-alist' entry for given dictionary after info
provided by `ispell-parse-hunspell-affix-file'.
(ispell-hunspell-dict-paths-alist): New defvar to contain an alist
of parsed hunspell dicts and associated affix files.
(ispell-hunspell-dictionary-alist): New defvar to contain an alist
of parsed hunspell dicts and associated parameters.
(ispell-set-spellchecker-params):
Call `ispell-find-hunspell-dictionaries' if hunspell and not
previously done.
(ispell-start-process):
Call `ispell-hunspell-fill-dictionary-entry' for current
dictionary if it is not initialized.

Some additional details about the implementation:

(ispell-hunspell-dict-paths-alist): Alist that contains a list of
  parsed hunspell dicts and associated affix files.

(ispell-hunspell-dictionary-alist): Alist of parsed hunspell dicts and
  associated parameters. It is initially just a list of found
  dictionaries except for the default dictionary where is filled with
  proper parameters.

When spellchecker is initialized by (ispell-set-spellchecker-params)
if the conditions: is hunspell, communication can be set to UTF-8 and
Emacs flavor supports [:alpha:] are matched installed hunspell
dictionaries are parsed and info passed to
`ispell-hunspell-dictionary-alist', either full for default dictionary
or just name for other dictionaries. These entries are used for
`ispell-dictionary-alist' if not overriden.

Before starting hunspell process in (ispell-start-process), if
`ispell-dictionary-alist' entry is not yet initialized
(ispell-hunspell-fill-dictionary-entry) is called to fill that entry
(and all pending entries using the same affix file) after info
extracted by (ispell-parse-hunspell-affix-file) from the associated
affix file.

hunspell process will then be started as usual. This delayed procedure
is used to avoid that in systems containing many hunspell dictionaries
all affix files are parsed (if there are many, time may be noticeable)
for just one used dictionary.

11 years ago* lisp/imenu.el: Comment nitpicks.
Stefan Monnier [Thu, 28 Feb 2013 17:15:08 +0000 (12:15 -0500)]
* lisp/imenu.el: Comment nitpicks.

11 years ago* lisp/vc/diff-mode.el (diff-hunk-file-names): Handle filenames with spaces.
Sam Steingold [Thu, 28 Feb 2013 16:34:51 +0000 (11:34 -0500)]
* lisp/vc/diff-mode.el (diff-hunk-file-names): Handle filenames with spaces.
See <http://stackoverflow.com/questions/14720205>.

11 years ago* lisp/net/net-utils.el (net-utils--revert-function): New fun.
Thierry Volpiatto [Thu, 28 Feb 2013 14:51:03 +0000 (09:51 -0500)]
* lisp/net/net-utils.el (net-utils--revert-function): New fun.
(net-utils-mode): Use it.
(net-utils--revert-cmd): New var.
(net-utils-run-simple): Set it, and remove bogus interactive spec.
(traceroute): Use net-utils-run-simple.

Fixes: debbugs:13831
11 years agoAuto-commit of generated files.
Glenn Morris [Thu, 28 Feb 2013 11:17:37 +0000 (06:17 -0500)]
Auto-commit of generated files.

11 years agoMerge from emacs-24; up to 2012-12-23T02:41:17Z!rgm@gnu.org
Glenn Morris [Thu, 28 Feb 2013 06:30:48 +0000 (22:30 -0800)]
Merge from emacs-24; up to 2012-12-23T02:41:17Z!rgm@gnu.org

11 years ago* doc/misc/org.texi: Fix previous change.
Glenn Morris [Thu, 28 Feb 2013 06:21:39 +0000 (22:21 -0800)]
* doc/misc/org.texi: Fix previous change.

11 years agoNEWS copyedits
Glenn Morris [Thu, 28 Feb 2013 06:20:10 +0000 (22:20 -0800)]
NEWS copyedits

11 years ago* lisp/doc-view.el: Preserve h&v scroll across C-c C-c C-c C-c.
Stefan Monnier [Thu, 28 Feb 2013 04:02:36 +0000 (23:02 -0500)]
* lisp/doc-view.el: Preserve h&v scroll across C-c C-c C-c C-c.
(doc-view-fallback-mode): Remove overlays here.
(doc-view-toggle-display): Instead of here.  Don't throw away
image-mode-winprops-alist.
(doc-view-goto-page): Don't mess with hscroll.

11 years ago* configure.ac (HAVE_DATA_START): Fix test. (Bug#13818)
Ken Brown [Thu, 28 Feb 2013 03:19:51 +0000 (22:19 -0500)]
* configure.ac (HAVE_DATA_START): Fix test.  (Bug#13818)

11 years agoMerge latest Org fixes (commit 7524ef2).
Bastien Guerry [Thu, 28 Feb 2013 00:31:26 +0000 (01:31 +0100)]
Merge latest Org fixes (commit 7524ef2).

11 years ago* NEWS: Add paragraphs for CEDET and EIEIO.
David Engster [Wed, 27 Feb 2013 21:04:56 +0000 (22:04 +0100)]
* NEWS: Add paragraphs for CEDET and EIEIO.

11 years agoFix race conditions with MS-Windows lock files by using _sopen.
Eli Zaretskii [Wed, 27 Feb 2013 18:37:31 +0000 (20:37 +0200)]
Fix race conditions with MS-Windows lock files by using _sopen.

 src/filelock.c (create_lock_file) [WINDOWSNT]: Use _sopen with
 _SH_DENYRW flag, instead of emacs_open, to deny any other process
 access to the lock file until it is written and closed.

Fixes: debbugs:13807
11 years agow32.c (sys_open): Don't reset the flags for FD in fd_info[].
Eli Zaretskii [Wed, 27 Feb 2013 18:00:57 +0000 (20:00 +0200)]
w32.c (sys_open): Don't reset the flags for FD in fd_info[].

Related to bug #13546.

11 years ago* lisp/font-lock.el (lisp-font-lock-keywords-2): Fix highlighting of
Thierry Volpiatto [Wed, 27 Feb 2013 15:25:55 +0000 (10:25 -0500)]
* lisp/font-lock.el (lisp-font-lock-keywords-2): Fix highlighting of
&optional.

Fixes: debbugs:13819
11 years ago* variables.texi (File Local Variables): Fix reference.
Bastien Guerry [Wed, 27 Feb 2013 12:12:20 +0000 (13:12 +0100)]
* variables.texi (File Local Variables): Fix reference.

Thanks to Aurélien Aptel and for reporting this problem
and to Xue Fuqiao for suggesting a fix.

11 years ago* net/tramp-adb.el (tramp-adb-parse-device-names)
Michael Albinus [Wed, 27 Feb 2013 09:20:13 +0000 (10:20 +0100)]
* net/tramp-adb.el (tramp-adb-parse-device-names)
(tramp-adb-maybe-open-connection): Add timeouts.  (Bug#13299)

11 years agoQcall_interactively and Qexecute_kbd_macro are now static.
Paul Eggert [Wed, 27 Feb 2013 07:42:43 +0000 (23:42 -0800)]
Qcall_interactively and Qexecute_kbd_macro are now static.

11 years ago* xresources.texi (GTK resources): Fix broken link.
Bastien Guerry [Wed, 27 Feb 2013 07:32:16 +0000 (08:32 +0100)]
* xresources.texi (GTK resources): Fix broken link.

Thanks to Mariano Street for reporting this and suggesting
the correct link.

11 years ago* window.c (Frecenter): Tiny docstring enhancement.
Bastien Guerry [Tue, 26 Feb 2013 14:28:37 +0000 (15:28 +0100)]
* window.c (Frecenter): Tiny docstring enhancement.

11 years ago* net/tramp-sh.el (tramp-sh-handle-insert-directory): Add
Michael Albinus [Tue, 26 Feb 2013 08:46:38 +0000 (09:46 +0100)]
* net/tramp-sh.el (tramp-sh-handle-insert-directory): Add
"2>/dev/null" to the ls command, in case "en_US.utf8" is not
defined.  POSIX environments fall back to the "C" locale then and
emit a warning, which shall be suppressed.

11 years agoMinor textprop integer cleanup.
Paul Eggert [Tue, 26 Feb 2013 03:09:08 +0000 (19:09 -0800)]
Minor textprop integer cleanup.

* intervals.h, textprop.c (add_text_properties_from_list):
Return void, not int, since nobody uses the return value.
* textprop.c (validate_plist, add_properties, remove_properties)
(Fadd_text_properties):
Don't assume list length fits in int.
(interval_has_all_properties, interval_has_some_properties)
(interval_has_some_properties_list, add_properties, remove_properties)
(Fadd_text_properties, Fremove_text_properties)
(Fremove_list_of_text_properties, text_property_stickiness):
Use bool for booleans.
(Fadd_text_properties, Fremove_text_properties):
(Fremove_list_of_text_properties):
Reindent do-while as per GNU style.

11 years ago* lisp/emacs-lisp/easy-mmode.el (define-globalized-minor-mode): Tweak logic.
Stefan Monnier [Tue, 26 Feb 2013 01:50:45 +0000 (20:50 -0500)]
* lisp/emacs-lisp/easy-mmode.el (define-globalized-minor-mode): Tweak logic.
(easy-mmode-set-keymap-parents): Use make-composed-keymap.

11 years ago* lisp/emacs-lisp/bytecomp.el (byte-compile-file): Use let.
Stefan Monnier [Mon, 25 Feb 2013 23:27:50 +0000 (18:27 -0500)]
* lisp/emacs-lisp/bytecomp.el (byte-compile-file): Use let.

11 years agolisp/gnus/mml2015.el (mml2015-epg-key-image): Wrap epg-gpg-program in shell-quote...
Adam Sjøgren [Mon, 25 Feb 2013 22:47:31 +0000 (22:47 +0000)]
lisp/gnus/mml2015.el (mml2015-epg-key-image): Wrap epg-gpg-program in shell-quote-argument

11 years ago* lisp/replace.el (read-regexp): Let-bind `default' to the first
Juri Linkov [Mon, 25 Feb 2013 20:57:44 +0000 (22:57 +0200)]
* lisp/replace.el (read-regexp): Let-bind `default' to the first
element of `defaults' if it's a list, otherwise it should be
a string or nil.  Let-bind `suggestions' to `defaults' if it's
a list, otherwise make a list with the string value.  Doc fix.

Fixes: debbugs:13805
11 years ago* lisp/textmodes/paragraphs.el (mark-paragraph): Doc fix.
Glenn Morris [Mon, 25 Feb 2013 19:43:44 +0000 (14:43 -0500)]
* lisp/textmodes/paragraphs.el (mark-paragraph): Doc fix.

11 years agoImplement CLASH_DETECTION for MS-Windows.
Eli Zaretskii [Mon, 25 Feb 2013 17:36:03 +0000 (19:36 +0200)]
Implement CLASH_DETECTION for MS-Windows.

 src/filelock.c [WINDOWSNT]: Include w32.h.
 (MAKE_LOCK_NAME): Don't use 'lock', it clashes with MS runtime
 function of that name.  Up-case the macro arguments.
 (IS_LOCK_FILE): New macro.
 (fill_in_lock_file_name): Use IS_LOCK_FILE instead of S_ISLNK.
 (create_lock_file): New function, with body extracted from
 lock_file_1.
 [WINDOWSNT]: Implement lock files by writing a regular file with
 the lock information as its contents.
 (read_lock_data): New function, on Posix platforms just calls
 emacs_readlinkat.
 [WINDOWSNT]: Read the lock info from the file.
 (current_lock_owner): Call read_lock_data instead of calling
 emacs_readlinkat directly.
 (lock_file) [WINDOWSNT]: Run the file name through
 dostounix_filename.
 src/w32proc.c (sys_kill): Support the case of SIG = 0, in which case
 just check if the process by that PID exists.
 src/w32.c (sys_open): Don't reset the _O_CREAT flag if _O_EXCL is
 also present, as doing so will fail to error out if the file
 already exists.
 src/makefile.w32-in ($(BLD)/filelock.$(O)): Depend on src/w32.h.

 nt/inc/ms-w32.h (BOOT_TIME_FILE): Define.
 nt/config.nt (CLASH_DETECTION): Define to 1.

 lisp/emacs-lisp/bytecomp.el (byte-recompile-directory): Reject files
 that match "\`\.#", to avoid compiling lock files, even if they
 are readable (as they are on MS-Windows).

 doc/emacs/files.texi (Interlocking): Don't refer to symlinks as the
 exclusive means of locking files.

 etc/NEWS: Mention support for lock files on MS-Windows.

11 years ago* NEWS: Document removal of --with-crt-dir.
Paul Eggert [Mon, 25 Feb 2013 17:01:41 +0000 (09:01 -0800)]
* NEWS: Document removal of --with-crt-dir.

11 years agoFix bug #13743 with crashes due to recursive add-text-properties.
Eli Zaretskii [Mon, 25 Feb 2013 16:13:42 +0000 (18:13 +0200)]
Fix bug #13743 with crashes due to recursive add-text-properties.

 src/textprop.c (Fadd_text_properties, Fremove_text_properties)
 (Fremove_list_of_text_properties): Skip all of the intervals in
 the region between START and END that already have resp. don't
 have the requested properties, not just the first one.  Add
 assertions that the loop afterwards always modifies the
 properties.

11 years ago* src/callint.c (Fcall_interactively): Use the right lexical environment
Stefan Monnier [Mon, 25 Feb 2013 16:05:49 +0000 (11:05 -0500)]
* src/callint.c (Fcall_interactively): Use the right lexical environment
for `interactive' specs.
* src/eval.c (Feval): Accept a lexical environment.

Fixes: debbugs:13811
11 years ago* automated/python-tests.el
Fabián Ezequiel Gallina [Mon, 25 Feb 2013 15:02:05 +0000 (12:02 -0300)]
* automated/python-tests.el
(python-tests-with-temp-buffer): Doc fix.
(python-tests-with-temp-file): New macro.
(python-tests-shell-interpreter): New var.
(python-shell-get-process-name-1)
(python-shell-internal-get-process-name-1)
(python-shell-parse-command-1)
(python-shell-calculate-process-environment-1)
(python-shell-calculate-process-environment-2)
(python-shell-calculate-process-environment-3)
(python-shell-calculate-exec-path-1)
(python-shell-calculate-exec-path-2)
(python-shell-make-comint-1)
(python-shell-make-comint-2)
(python-shell-get-process-1)
(python-shell-get-or-create-process-1)
(python-shell-internal-get-or-create-process-1): New tests.

11 years ago* lisp/files.el (basic-save-buffer): Remove redundant directory-creation.
Stefan Monnier [Mon, 25 Feb 2013 14:29:41 +0000 (09:29 -0500)]
* lisp/files.el (basic-save-buffer): Remove redundant directory-creation.

11 years agoAuto-commit of generated files.
Glenn Morris [Mon, 25 Feb 2013 11:17:36 +0000 (06:17 -0500)]
Auto-commit of generated files.

11 years ago* tramp.texi (top) [xxx, yyy, trampfn]: Provide two versions of
Michael Albinus [Mon, 25 Feb 2013 08:29:59 +0000 (09:29 +0100)]
* tramp.texi (top) [xxx, yyy, trampfn]: Provide two versions of
the macros, for Texinfo 4.13 and 5.0.

11 years agoSpelling fixes.
Paul Eggert [Mon, 25 Feb 2013 07:49:40 +0000 (23:49 -0800)]
Spelling fixes.

11 years agoSimplify data_start configuration.
Paul Eggert [Mon, 25 Feb 2013 05:55:37 +0000 (21:55 -0800)]
Simplify data_start configuration.

This is a followon simplification to the fix for Bug#13650.
* admin/CPP-DEFINES (DATA_START, ORDINARY_LINK): Remove.
* configure.ac (CRT_DIR, LIB_STANDARD, START_FILES, DATA_START)
(LD_FIRSTFLAG, ORDINARY_LINK, LIB_GCC): Remove.
(AC_CHECK_HEADERS_ONCE): Remove sys/resource.h, as it's
not always needed.
(HAVE_DATA_START): New macro.
* etc/PROBLEMS (LIBS_SYSTEM, LIBS_MACHINE, LIBS_STANDARD): Remove.
Remove legacy-systems section, as this stuff is no longer
applicable with current linking strategies.
* src/Makefile.in (LD_FIRSTFLAG, LIB_GCC, CRT_DIR, LIB_STANDARD)
(START_FILES): Remove.  All uses removed.
(otherobj): Remove $(VMLIMIT_OBJ), as it's now first.
(ALLOBJS): Move here from autodeps.mk, and with VMLIMITS_OBJ first.
(buildobj.h): Use it.
($(ALLOBJS)): Depend on globals.h.
(temacs$(EXEEXT)): Use $(ALLOBJS).
* src/autodeps.mk (ALLOBJS): Move to Makefile.in.
* src/deps.mk (vm-limit.o):
* src/makefile.w32-in ($(BLD)/vm-limit.$(O)):
Do not depend on mem-limits.h.
* src/emacs.c (__do_global_ctors, __do_global_ctors_aux)
(__do_global_dtors, __CTOR_LIST__, __DTOR_LIST__)
[__GNUC__ && !ORDINARY_LINK]: Remove.
* src/mem-limits.h, src/pre-crt0.c: Remove.
* src/unexaix.c, src/unexcoff.c: Don't include mem-limits.h.
* src/unexcoff.c (etext): New decl.
(make_hdr): Use it instead of start_of_data.
* src/vm-limit.c: Move most of mem-limits.h's contents here.
(data_start): New decl.  It's OK if this is approximate,
so simplify-away some unnecessary exactness.
(POINTER): Remove; all uses removed.
(data_space_start): Now char *, to avoid casts.
(exceeds_lisp_ptr): New function, replacing the old
EXCEEDS_LISP_PTR macro.  All uses changed.
(check_memory_limits): Simplify and remove casts.
(start_of_data) [!CANNOT_DUMP || !SYSTEM_MALLOC]: Remove.
(memory_warnings): Use data_start instead of start_of_data.

Fixes: debbugs:13783
11 years agognus-registry.el: Silence XEmacs byte compiler
David Engster [Sun, 24 Feb 2013 22:44:49 +0000 (22:44 +0000)]
gnus-registry.el: Silence XEmacs byte compiler

11 years agoMerge from emacs-24; up to 2012-12-22T19:09:52Z!rgm@gnu.org
Glenn Morris [Sun, 24 Feb 2013 19:45:17 +0000 (11:45 -0800)]
Merge from emacs-24; up to 2012-12-22T19:09:52Z!rgm@gnu.org

11 years agoPort documentation to Texinfo 5.0.
Michael Albinus [Sun, 24 Feb 2013 17:58:55 +0000 (18:58 +0100)]
Port documentation to Texinfo 5.0.

* tramp.texi (top) [xxx, yyy, trampfn]: Remove superfluous @c.
(Filename Syntax): Do not use @trampfn{} in @item.
(Filename completion): Use @columnfractions in @multitable.

11 years agoFixes: debbugs:13797
Andreas Schwab [Sun, 24 Feb 2013 08:09:24 +0000 (09:09 +0100)]
Fixes: debbugs:13797
* xdisp.c (set_message): Only check for debug-on-message if STRING
is a string.

11 years ago* lisp/eshell/em-cmpl.el: Corrected "context-related help"
Aidan Gauland [Sun, 24 Feb 2013 05:34:22 +0000 (18:34 +1300)]
* lisp/eshell/em-cmpl.el: Corrected "context-related help"
keybinding in commentary.

11 years ago* calc/calc-ext.el (math-to-radians-2, math-from-radians-2):
Jay Belanger [Sun, 24 Feb 2013 01:05:13 +0000 (19:05 -0600)]
* calc/calc-ext.el (math-to-radians-2, math-from-radians-2):
  Add option to force `pi' to remain symbolic.
* calc/calcalg2.el (calcFunc-sin, calcFunc-cos, calcFunc-tan)
  (calcFunc-cot, calcFunc-csc, calcFunc-sec, calcFunc-arcsin)
  (calcFunc-arccos, calcFunc-arctan): Use symbolic `pi' in the
  derivatives, when necessary.

11 years agoFix regression introduced by July 10 filelock.c patch.
Paul Eggert [Sun, 24 Feb 2013 00:21:06 +0000 (16:21 -0800)]
Fix regression introduced by July 10 filelock.c patch.

* filelock.c (fill_in_lock_file_name): Fix crash caused by the
2012-07-10 patch to this file.  Reported by Eli Zaretskii in
<http://lists.gnu.org/archive/html/emacs-devel/2013-02/msg00533.html>
and diagnosed by Andreas Schwab in
<http://lists.gnu.org/archive/html/emacs-devel/2013-02/msg00534.html>.

11 years agoUpdate ps-mode.el from upstream
Peter Kleiweg [Sat, 23 Feb 2013 22:06:45 +0000 (14:06 -0800)]
Update ps-mode.el from upstream

* lisp/progmodes/ps-mode.el (ps-mode-version): Bump to 1.1i.
(ps-mode-octal-region): Use string-make-unibyte.

11 years agoAdd bug-gnu-emacs to some specialized bug report addresses
Glenn Morris [Sat, 23 Feb 2013 21:54:00 +0000 (13:54 -0800)]
Add bug-gnu-emacs to some specialized bug report addresses

* emulation/viper-cmd.el (viper-submit-report):
* progmodes/ps-mode.el (ps-mode-maintainer-address):
* progmodes/vera-mode.el (vera-mode-help-address):
* textmodes/artist.el (artist-maintainer-address):
* textmodes/reftex.el (reftex-report-bug):
* vc/ediff-util.el (ediff-submit-report):
Add bug-gnu-emacs to bug report address.

11 years agoMake simula.el special bug reporting obsolete
Glenn Morris [Sat, 23 Feb 2013 21:49:41 +0000 (13:49 -0800)]
Make simula.el special bug reporting obsolete

* progmodes/simula.el (simula-mode-menu, simula-mode-map):
Remove bug report entries.
(simula-mode-help-address, simula-submit-bug-report): Make obsolete.

11 years agoTODO update
Glenn Morris [Sat, 23 Feb 2013 21:15:54 +0000 (13:15 -0800)]
TODO update

11 years agoAvoid recursive byte-compile-files fighting over input/output buffers
Glenn Morris [Sat, 23 Feb 2013 21:14:36 +0000 (13:14 -0800)]
Avoid recursive byte-compile-files fighting over input/output buffers

* lisp/emacs-lisp/bytecomp.el (byte-compile-level): New.
(byte-compile-file, byte-compile-from-buffer):
Use separate input/output buffers for each level of recursive
byte-compile-file calls.

Fixes: debbugs:13787
11 years ago* net/tramp.el (tramp-methods): Fix docstring.
Michael Albinus [Sat, 23 Feb 2013 12:40:14 +0000 (13:40 +0100)]
* net/tramp.el (tramp-methods): Fix docstring.
(tramp-ssh-controlmaster-options): Rename it from
`tramp-ssh-controlmaster-template'.  Return a string.
(tramp-default-method): Adapt check for
`tramp-ssh-controlmaster-options'.

* net/tramp-sh.el (tramp-methods): Replace
`tramp-ssh-controlmaster-template' by "%c".
(tramp-do-copy-or-rename-file-out-of-band)
(tramp-maybe-open-connection): Use it in format spec.  Ensure,
that it is applied for the first hop only.

11 years agoMinor improvements in the ELisp manual.
Eli Zaretskii [Sat, 23 Feb 2013 10:55:13 +0000 (12:55 +0200)]
Minor improvements in the ELisp manual.

 doc/lispref/files.texi (Magic File Names): Improve wording and indexing.

11 years agognus-registry.el (gnus-registry-save): Provide class name when calling `eieio-persist...
David Engster [Fri, 22 Feb 2013 22:54:37 +0000 (22:54 +0000)]
gnus-registry.el (gnus-registry-save): Provide class name when calling `eieio-persistent-read' to avoid "unsafe call" warning  Use `condition-case' to stay compatible with older EIEIO versions which only accept one argument

11 years agoAssume C89 or better.
Paul Eggert [Fri, 22 Feb 2013 19:23:12 +0000 (11:23 -0800)]
Assume C89 or better.

* ralloc.c (SIZE, POINTER, NIL):
* vm-limit.c (POINTER):
Remove, replacing all uses with C89 equivalents.  These old
symbols were present only for porting to pre-C89 platforms.

11 years agoMerge from emacs-24; up to 2012-12-22T02:59:08Z!cyd@gnu.org
Glenn Morris [Fri, 22 Feb 2013 17:13:05 +0000 (09:13 -0800)]
Merge from emacs-24; up to 2012-12-22T02:59:08Z!cyd@gnu.org

11 years ago* ack.texi, emacs.texi (Acknowledgments): Small updates
Glenn Morris [Fri, 22 Feb 2013 17:10:58 +0000 (09:10 -0800)]
* ack.texi, emacs.texi (Acknowledgments): Small updates

11 years agoDon't call 'select' from emacs_gnutls_pull.
Claudio Bley [Fri, 22 Feb 2013 16:00:14 +0000 (18:00 +0200)]
Don't call 'select' from emacs_gnutls_pull.

 src/w32.c (emacs_gnutls_pull): Don't call 'select', and don't loop.
 This avoids warning messages reported as part of Bug#13546.

11 years ago* net/tramp.el (tramp-tramp-file-p): Fix docstring.
Michael Albinus [Fri, 22 Feb 2013 14:05:38 +0000 (15:05 +0100)]
* net/tramp.el (tramp-tramp-file-p): Fix docstring.

* net/tramp-sh.el (tramp-sh-handle-insert-directory): Handle
multibyte file names.

11 years agoImprove instructions in etc/DEBUG, per bug #13775.
Eli Zaretskii [Fri, 22 Feb 2013 09:22:21 +0000 (11:22 +0200)]
Improve instructions in etc/DEBUG, per bug #13775.

11 years agoUse derived-mode-p in previous change
Glenn Morris [Fri, 22 Feb 2013 02:33:42 +0000 (21:33 -0500)]
Use derived-mode-p in previous change

11 years ago* doc/misc/flymake.texi (Syntax check statuses): Fix multitable continued rows.
Glenn Morris [Fri, 22 Feb 2013 02:16:44 +0000 (21:16 -0500)]
* doc/misc/flymake.texi (Syntax check statuses): Fix multitable continued rows.

11 years agoTweak for sgml-transformation-function
Glenn Morris [Fri, 22 Feb 2013 02:01:32 +0000 (21:01 -0500)]
Tweak for sgml-transformation-function

* lisp/textmodes/sgml-mode.el (sgml-xml-mode): Move before use.
(sgml-transformation-function): Give it a :set function.
(sgml-tag): Doc fix.

11 years agoDoc fixes re set-variable
Glenn Morris [Fri, 22 Feb 2013 01:59:28 +0000 (20:59 -0500)]
Doc fixes re set-variable

* lisp/cmuscheme.el (scheme-buffer):
* lisp/progmodes/inf-lisp.el (inferior-lisp-buffer):
* lisp/progmodes/tcl.el (inferior-tcl-buffer):
* lisp/textmodes/tex-mode.el (tex-command): Doc fixes.

11 years ago* lisp/image-mode.el (image-mode): Add mouse bindings for mode-line-process.
Glenn Morris [Fri, 22 Feb 2013 01:34:06 +0000 (20:34 -0500)]
* lisp/image-mode.el (image-mode): Add mouse bindings for mode-line-process.

11 years ago* lisp/htmlfontify.el (hfy-default-header): Encode title string. (Bug#7457)
Glenn Morris [Fri, 22 Feb 2013 01:32:45 +0000 (20:32 -0500)]
* lisp/htmlfontify.el (hfy-default-header): Encode title string.  (Bug#7457)

11 years agoParallelize documentation builds.
Paul Eggert [Thu, 21 Feb 2013 22:42:56 +0000 (14:42 -0800)]
Parallelize documentation builds.

This speeds up building of documentation on multiprocessor
platforms, and is motivated by Texinfo 5.0, which is much slower.
Add a toplevel rule 'make docs' to make all the documentation.
* .bzrignore: Add .dvi, .html, .ps.
* Makefile.in (DVIS, HTMLS, INFOS, PSS, DOCS): New macros.
($(DOCS), docs, vi, html, pdf, ps): New rules.
(info-real): Depend on $(INFOS) rather than doing it sequentially.
(dvi): Depend on $(DVIS) rather than doing it sequentially.
* doc/misc/Makefile.in (html): New rule.

11 years ago* cmuscheme.el (scheme-buffer): Fix docstring.
Bastien Guerry [Thu, 21 Feb 2013 21:50:14 +0000 (22:50 +0100)]
* cmuscheme.el (scheme-buffer): Fix docstring.

Thanks to Xue Fuqiao for reporting this.

11 years agoPort to Texinfo 5.0 by backporting trunk 2012-12-22T19:57:35Z!rgm@gnu.org and 2013...
Paul Eggert [Thu, 21 Feb 2013 21:33:04 +0000 (13:33 -0800)]
Port to Texinfo 5.0 by backporting trunk 2012-12-22T19:57:35Z!rgm@gnu.org and 2013-02-21T02:42:30Z!eggert@cs.ucla.edu.

11 years ago* lisp/isearch.el (isearch-lazy-highlight-new-loop):
Juri Linkov [Thu, 21 Feb 2013 17:45:12 +0000 (19:45 +0200)]
* lisp/isearch.el (isearch-lazy-highlight-new-loop):
Set `isearch-lazy-highlight-start' and `isearch-lazy-highlight-end'
to `isearch-other-end' if it is not nil.

* lisp/replace.el (replace-highlight): Let-bind `isearch-other-end'
to `match-beg'.

* lisp/textmodes/ispell.el (ispell-highlight-spelling-error-overlay):
Let-bind `isearch-other-end' to `start', `isearch-forward' to t
and `isearch-error' to nil.

Fixes: debbugs:13402
11 years agoMerge from emacs-24; up to 2012-12-21T07:35:02Z!ueno@gnu.org
Glenn Morris [Thu, 21 Feb 2013 16:56:49 +0000 (08:56 -0800)]
Merge from emacs-24; up to 2012-12-21T07:35:02Z!ueno@gnu.org

11 years agoChangeLog fix
Glenn Morris [Thu, 21 Feb 2013 16:54:51 +0000 (08:54 -0800)]
ChangeLog fix

11 years ago* net/tramp.el (tramp-ssh-controlmaster-template): Make it a
Michael Albinus [Thu, 21 Feb 2013 14:23:12 +0000 (15:23 +0100)]
* net/tramp.el (tramp-ssh-controlmaster-template): Make it a
defconst.  Apply independent check for ControlPersist.

11 years ago* net/tramp-sh.el (tramp-sh-handle-set-file-times): Set $UTC only
Michael Albinus [Thu, 21 Feb 2013 13:36:16 +0000 (14:36 +0100)]
* net/tramp-sh.el (tramp-sh-handle-set-file-times): Set $UTC only
temporarily, via "env".