[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] trunk r113424: * shell.el (explicit-bash-args): Remove obs
From: |
Paul Eggert |
Subject: |
[Emacs-diffs] trunk r113424: * shell.el (explicit-bash-args): Remove obsolete hack for Bash 1.x. |
Date: |
Mon, 15 Jul 2013 02:33:58 +0000 |
User-agent: |
Bazaar (2.6b2) |
------------------------------------------------------------
revno: 113424
revision-id: address@hidden
parent: address@hidden
committer: Paul Eggert <address@hidden>
branch nick: trunk
timestamp: Sun 2013-07-14 19:33:54 -0700
message:
* shell.el (explicit-bash-args): Remove obsolete hack for Bash 1.x.
The hack didn't work outside English locales anyway.
modified:
etc/NEWS news-20100311060928-aoit31wvzf25yr1z-1
lisp/ChangeLog changelog-20091113204419-o5vbwnq5f7feedwu-1432
lisp/shell.el shell.el-20091113204419-o5vbwnq5f7feedwu-150
=== modified file 'etc/NEWS'
--- a/etc/NEWS 2013-07-15 00:07:51 +0000
+++ b/etc/NEWS 2013-07-15 02:33:54 +0000
@@ -456,6 +456,13 @@
*** The Info-edit command is obsolete. Editing Info nodes by hand
has not been relevant for some time.
+** Shell
+
+*** `explicit-bash-args' now always defaults to use --noediting.
+During initialization, Emacs no longer expends a process to decide
+whether it is safe to use Bash's --noediting option. These days
+--noediting is ubiquitous; it was introduced in 1996 in Bash version 2.
+
* New Modes and Packages in Emacs 24.4
=== modified file 'lisp/ChangeLog'
--- a/lisp/ChangeLog 2013-07-15 00:49:22 +0000
+++ b/lisp/ChangeLog 2013-07-15 02:33:54 +0000
@@ -1,3 +1,8 @@
+2013-07-15 Paul Eggert <address@hidden>
+
+ * shell.el (explicit-bash-args): Remove obsolete hack for Bash 1.x.
+ The hack didn't work outside English locales anyway.
+
2013-07-15 Juanma Barranquero <address@hidden>
* simple.el (define-alternatives): Rename from alternatives-define,
=== modified file 'lisp/shell.el'
--- a/lisp/shell.el 2013-05-15 23:55:41 +0000
+++ b/lisp/shell.el 2013-07-15 02:33:54 +0000
@@ -284,21 +284,9 @@
;; Note: There are no explicit references to the variable `explicit-bash-args'.
;; It is used implicitly by M-x shell when the interactive shell is `bash'.
(defcustom explicit-bash-args
- (let* ((prog (or (and (boundp 'explicit-shell-file-name)
explicit-shell-file-name)
- (getenv "ESHELL") shell-file-name))
- (name (file-name-nondirectory prog)))
- ;; Tell bash not to use readline, except for bash 1.x which
- ;; doesn't grok --noediting. Bash 1.x has -nolineediting, but
- ;; process-send-eof cannot terminate bash if we use it.
- (if (and (not purify-flag)
- (equal name "bash")
- (file-executable-p prog)
- (string-match "bad option"
- (shell-command-to-string
- (concat (shell-quote-argument prog)
- " --noediting"))))
- '("-i")
- '("--noediting" "-i")))
+ ;; Tell bash not to use readline. It's safe to assume --noediting now,
+ ;; as it was introduced in 1996 in Bash version 2.
+ '("--noediting" "-i")
"Args passed to inferior shell by \\[shell], if the shell is bash.
Value is a list of strings, which may be nil."
:type '(repeat (string :tag "Argument"))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] trunk r113424: * shell.el (explicit-bash-args): Remove obsolete hack for Bash 1.x.,
Paul Eggert <=