help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Query Major Mode


From: Kevin Rodgers
Subject: Re: Query Major Mode
Date: Thu, 21 Jul 2005 16:55:55 -0600
User-agent: Mozilla Thunderbird 0.9 (X11/20041105)

Tim Johnson wrote:
(defun previous-subroutine ()
  (cond
    (eq major-mode "python")(previous-python-subroutine)
    (eq major-mode "C")(previous-C-subroutine)
    (eq major-mode "rebol")(previous-rebol-subroutine)
  ))

The value of major-mode is a symbol, e.g. python-mode.

The value of mode-name is a string, e.g. "Python".

--
Kevin Rodgers





reply via email to

[Prev in Thread] Current Thread [Next in Thread]