]> git.eshelyaron.com Git - emacs.git/commit
Fix problems with 'C-c C-n' in sh-script-mode
authorMiha Rihtaršič <miha@kamnitnik.top>
Thu, 23 Sep 2021 21:18:40 +0000 (23:18 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Thu, 23 Sep 2021 21:19:11 +0000 (23:19 +0200)
commit66d15137629a5224e16a0269e0e3181500962de2
tree50cce42cf78a9750ef0698c47be0bad6787617fd
parentb12b278c2aeda4fd0d9984d319ead609117f14f4
Fix problems with 'C-c C-n' in sh-script-mode

* lisp/progmodes/sh-script.el (sh-shell-process): If a *shell* buffer
doesn't exist, 'C-c C-n' creates one and displays it.  This patch
prevents it from being displayed in the selected window.
Additionally, it ensures that the local `sh-shell-process' variable is
set in the correct buffer (bug#50765).
lisp/progmodes/sh-script.el