all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Changing sh-mode shell type.
@ 2011-10-27 13:52 Oleksandr Gavenko
  2011-11-08  6:18 ` Kevin Rodgers
  0 siblings, 1 reply; 2+ messages in thread
From: Oleksandr Gavenko @ 2011-10-27 13:52 UTC (permalink / raw)
  To: help-gnu-emacs

According to 'sh-mode':

   If you generally program a shell different from your login shell
   you can set `sh-shell-file' accordingly.

As usual I try add:

   # -*- sh-shell-file: "/bin/zsh"; mode: sh -*-

but it set to "bash" in any case...

I debug issue and found that when you enter into
'sh-mode' function 'sh-shell-file' have value "/bin/bash"
as it set by:

   (defcustom sh-shell-file ...)

so executed:

   (sh-set-shell
    (cond ((save-excursion
         ....  ....
          (t
           sh-shell-file))
     nil nil)

It is possible pass file local variable before mode activation
code was executed??




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-11-08  6:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-27 13:52 Changing sh-mode shell type Oleksandr Gavenko
2011-11-08  6:18 ` Kevin Rodgers

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.