GNU bug report logs -
#16814
`sql-interactive-mode' overwrites `comint' variables
Previous Next
Reported by: Emilio C. Lopes <eclig <at> gmx.net>
Date: Wed, 19 Feb 2014 20:04:01 UTC
Severity: normal
Fixed in version 24.4
Done: Glenn Morris <rgm <at> gnu.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 16814 in the body.
You can then email your comments to 16814 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#16814
; Package
emacs
.
(Wed, 19 Feb 2014 20:04:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Emilio C. Lopes <eclig <at> gmx.net>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Wed, 19 Feb 2014 20:04:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
`sql-interactive-mode' sets the variables `comint-input-ring-separator'
and `comint-input-ring-file-name' without making them buffer-local.
When I use `sql-interactive-mode' and afterwards run
`(comint-read-input-ring)' in `shell-mode' I get an empty
`comint-input-ring'.
Here is a patch:
2012-10-09 Emilio C. Lopes <eclig <at> gmx.net>
* progmodes/sql.el (sql-interactive-mode): make variables `comint-input-ring-separator' and
`comint-input-ring-file-name' buffer-local before setting.
diff --unified lisp/progmodes/sql.el.\~1\~ lisp/progmodes/sql.el
--- lisp/progmodes/sql.el.~1~ 2014-02-19 14:31:34.000000000 +0100
+++ lisp/progmodes/sql.el 2014-02-19 14:45:36.000000000 +0100
@@ -3928,8 +3928,8 @@
;; People wanting a different history file for each
;; buffer/process/client/whatever can change separator and file-name
;; on the sql-interactive-mode-hook.
- (setq comint-input-ring-separator sql-input-ring-separator
- comint-input-ring-file-name sql-input-ring-file-name)
+ (setq-local comint-input-ring-separator sql-input-ring-separator)
+ (setq-local comint-input-ring-file-name sql-input-ring-file-name)
;; Calling the hook before calling comint-read-input-ring allows users
;; to set comint-input-ring-file-name in sql-interactive-mode-hook.
(comint-read-input-ring t))
Diff finished. Wed Feb 19 14:45:41 2014
Reply sent
to
Glenn Morris <rgm <at> gnu.org>
:
You have taken responsibility.
(Fri, 28 Feb 2014 01:57:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Emilio C. Lopes <eclig <at> gmx.net>
:
bug acknowledged by developer.
(Fri, 28 Feb 2014 01:57:03 GMT)
Full text and
rfc822 format available.
Message #10 received at 16814-done <at> debbugs.gnu.org (full text, mbox):
Version: 24.4
Emilio C. Lopes wrote:
> `sql-interactive-mode' sets the variables `comint-input-ring-separator'
> and `comint-input-ring-file-name' without making them buffer-local.
You're right about comint-input-ring-separator, but sql-interactive-mode
first calls comint-mode, which makes comint-input-ring-file-name
buffer-local.
> Here is a patch:
Partially applied, thanks.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Fri, 28 Mar 2014 11:24:03 GMT)
Full text and
rfc822 format available.
bug unarchived.
Request was from
Michael Mauger <michael <at> mauger.com>
to
control <at> debbugs.gnu.org
.
(Sat, 01 Nov 2014 20:58:01 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sun, 30 Nov 2014 12:24:03 GMT)
Full text and
rfc822 format available.
This bug report was last modified 9 years and 171 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.