Skip to content

comint-input-sender gets changed globally #154

Closed
@mnewt

Description

@mnewt

Expected behavior

Only set comint-input-sender in inf-clojure buffers

Actual behavior

(setq comint-input-sender 'inf-clojure--send-string) in inf-clojure-minor-mode appears to set comint-input-sender globally for all comint derived buffers.

Steps to reproduce the problem

emacs -Q

(setq package-archives
        '(("gnu"   . "https://elpa.gnu.org/packages/")
          ("melpa" . "https://melpa.org/packages/"))
        use-package-always-ensure t)

(package-refresh-contents)
(package-initialize)

(unless (package-installed-p 'use-package)
  (package-install 'use-package))
(require 'use-package)

(use-package inf-clojure)

M-x eval-buffer

M-x shell

M-x eval-expression comint-input-sender

inf-clojure--send-string

Environment & Version information

inf-clojure version information

2.1.0 (59868ff)

Emacs version

GNU Emacs 27.0.50 (build 1, x86_64-apple-darwin17.7.0, NS appkit-1561.60 Version 10.13.6 (Build 17G65)) of 2018-08-19

Operating system

macOS 10.13.6

Proposed Solution

Changing setq to setq-local in inf-clojure-minor-mode seems to fix the issue for me. If agreed, I can send a pull request.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions