unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "Daniel (Youngwhan)" <breadncup@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: How let speedbar know to parse a specific file?
Date: Tue, 27 Apr 2010 14:05:34 -0700 (PDT)	[thread overview]
Message-ID: <d36f725c-13da-4c19-9d8e-50e7d4663760@q36g2000prg.googlegroups.com> (raw)
In-Reply-To: 44mxwoenox.fsf@be-well.ilk.org

On Apr 27, 11:48 am, Lowell Gilbert <lguse...@be-well.ilk.org> wrote:
> "Daniel (Youngwhan)" <breadn...@gmail.com> writes:
> > Hi,
>
> > I am using speedbar to browse source code, and it parses Makefile as
> > well. Wonderful.
>
> > One thing I want to know is that my project has a different name of
> > Makefile, such like Makefile-other.
>
> > It looks that the speedbar does not recognize the different file name
> > of makefile (Makefile-other), and does not parse it. If it is
> > Makefile, then it surely parse it correctly.
>
> > Does anybody know how I can let the speedbar recognize the Makefile
> > with different name?
>
> I think that it's based on the major mode, so you need to get emacs to
> recognize the appropriate makefile-*-mode as applying to that file.

Thank you for the reply, Lowell,

I am not familiar with Lisp language, so could you help me how I can
set up for the major mode properly, please?

I tried to open it as GNUMakefile mode by adding this in .emacs: (add-
to-list 'auto-mode-alist '("\\Makefile-other\\'" . makefile-gmake-
mode))

But, for speedbar, it still does not parse of it. (or even directory
view, it does not show up the Makefile-other as well.

Could you educate me how I can let the major mode change for the
different makefile name?

Daniel


  reply	other threads:[~2010-04-27 21:05 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-27 17:37 How let speedbar know to parse a specific file? Daniel (Youngwhan)
2010-04-27 18:48 ` Lowell Gilbert
2010-04-27 21:05   ` Daniel (Youngwhan) [this message]
2010-04-29 17:49     ` Lowell Gilbert

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=d36f725c-13da-4c19-9d8e-50e7d4663760@q36g2000prg.googlegroups.com \
    --to=breadncup@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).