Commit f4da4720 authored by Glenn Morris's avatar Glenn Morris
Browse files

Merge from emacs-24; up to 2014-05-15T16:55:18Z!

parents 6f1d9822 34cba8e8
2014-05-14 Eli Zaretskii <>
* mule.texi (Language Environments): Remove unused @anchor. (Bug#17479)
2014-05-04 Eli Zaretskii <>
* trouble.texi (Lossage, DEL Does Not Delete, Stuck Recursive)
......@@ -439,7 +439,6 @@ character sets, coding systems, and input methods that go with it. It
also shows some sample text to illustrate scripts used in this
language environment. If you give an empty input for @var{lang-env},
this command describes the chosen language environment.
@anchor{Describe Language Environment}
@vindex set-language-environment-hook
You can customize any language environment with the normal hook
2014-05-14 Stephen Berman <>
Stefan Monnier <>
* minibuffer.el (completion-pcm--merge-try): Merge trailing / with
suffix (bug#15419).
2014-05-14 Glenn Morris <>
* vc/emerge.el (emerge-temp-file-prefix):
Make pointless option obsolete.
(emerge-temp-file-mode): Make non-functional option obsolete.
2014-05-14 Michael Albinus <>
* net/browse-url.el (browse-url):
Use `unhandled-file-name-directory' when setting `default-directory',
in order to circumvent stalled remote connections. (Bug#17425)
2014-05-14 Glenn Morris <>
* printing.el (subst-char-in-string, make-temp-file, pr-get-symbol):
......@@ -3216,11 +3216,20 @@ the same set of elements."
;; Not `prefix'.
;; New pos from the start.
(newpos (length (completion-pcm--pattern->string pointpat)))
(newpos (length (completion-pcm--pattern->string pointpat)))
;; Do it afterwards because it changes `pointpat' by side effect.
(merged (completion-pcm--pattern->string (nreverse mergedpat))))
(setq suffix (completion--merge-suffix merged newpos suffix))
(setq suffix (completion--merge-suffix
;; The second arg should ideally be "the position right
;; after the last char of `merged' that comes from the text
;; to be completed". But completion-pcm--merge-completions
;; currently doesn't give us that info. So instead we just
;; use the "last but one" position, which tends to work
;; well in practice since `suffix' always starts
;; with a boundary and we hence mostly/only care about
;; merging this boundary (bug#15419).
merged (max 0 (1- (length merged))) suffix))
(cons (concat prefix merged suffix) (+ newpos (length prefix)))))))
(defun completion-pcm-try-completion (string table pred point)
......@@ -807,15 +807,15 @@ first, if that exists."
(interactive (browse-url-interactive-arg "URL: "))
(unless (called-interactively-p 'interactive)
(setq args (or args (list browse-url-new-window-flag))))
(when (and url-handler-mode (not (file-name-absolute-p url)))
(setq url (expand-file-name url)))
(let ((process-environment (copy-sequence process-environment))
(function (or (and (string-match "\\`mailto:" url)
;; Ensure that `default-directory' exists and is readable (b#6077).
(default-directory (if (and (file-directory-p default-directory)
(file-readable-p default-directory))
(expand-file-name "~/"))))
(default-directory (or (unhandled-file-name-directory default-directory)
(expand-file-name "~/"))))
;; When connected to various displays, be careful to use the display of
;; the currently selected frame, rather than the original start display,
;; which may not even exist any more.
......@@ -261,11 +261,19 @@ Do not start with `~/' or `~USERNAME/'."
:type 'string
:group 'emerge)
(make-obsolete-variable 'emerge-temp-file-prefix
"customize `temporary-file-directory' instead."
"24.4" 'set)
(defcustom emerge-temp-file-mode 384 ; u=rw only
"Mode for Emerge temporary files."
:type 'integer
:group 'emerge)
(make-obsolete-variable 'emerge-temp-file-mode
"it has no effect, temporary files are always private."
"24.4" 'set)
(defcustom emerge-combine-versions-template
"#ifdef NEW\n%b#else /* not NEW */\n%a#endif /* not NEW */\n"
"Template for `emerge-combine-versions' to combine the two versions.
......@@ -2881,6 +2889,7 @@ keymap. Leaves merge in fast mode."
(let (f (old-modes (default-file-modes)))
;; This has no effect, since make-temp-file sets umask = 700.
(set-default-file-modes emerge-temp-file-mode)
(setq f (make-temp-file (concat emerge-temp-file-prefix prefix))))
(set-default-file-modes old-modes))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment