Skip to content

Commit

Permalink
Merge pull request #217 from muffinmad/patch-1
Browse files Browse the repository at this point in the history
Check major mode with derived-mode-p
  • Loading branch information
rocky committed May 11, 2018
2 parents b78f3b9 + b4ff2c3 commit f966711
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions realgud/common/utils.el
Expand Up @@ -46,10 +46,10 @@
- 'comint if the major comint-mode or shell-mode
Or raise an error if neither."

(cond ((eq major-mode 'eshell-mode)
'eshell)
((or (eq major-mode 'comint-mode) (eq major-mode 'shell-mode))
'comint)
(cond ((derived-mode-p 'eshell-mode)
'eshell)
((derived-mode-p 'comint-mode)
'comint)
('t (error "We can only handle comint, shell, or eshell buffers"))
))

Expand Down

0 comments on commit f966711

Please sign in to comment.