all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Merten <smerten@oekonux.de>
To: 11711@debbugs.gnu.org
Subject: bug#11711: 24.0.95; [PATCH] added imenu and which-func support to rst.el
Date: Mon, 18 Jun 2012 11:28:39 +0200	[thread overview]
Message-ID: <6091.1340011719@theowa.merten-home.homelinux.org> (raw)
In-Reply-To: <20120617.073313.1303392924099989359.yamato@redhat.com>

[-- Attachment #1: Type: text/plain, Size: 1989 bytes --]

Hi Masatake!

Yesterday Masatake YAMATO wrote:
>>> This is not a bug report. This is a request to merge a patch
>>> to the offcial source tree.

Thanks for the patch.

>>> 2012-06-13  Masatake YAMATO  <yamato@redhat.com>
>> 
>>> 	* textmodes/rst.el (rst-mode, rst-imenu-index): Added
>>> 	imenu and which-func support.
>> 
>> I'll let the other Stefan decide what to do with it.  It looks
>> pretty good for me.  Just a few nitpicks below:

It is definitely interesting. So far I never used imenu but it looks
like a very useful thing.

I already integrated your patch in my development version. However,
I'll massage it a bit to fit better.

> I found I should explain more about to the maintainer.

Good idea.

> I know `rst-toc'. People who writes a document in rst format may use
> `rst-toc' instead of imenu.

I'm thinking about whether opening a second method for this type of
functionality using imenu. Indeed imenu is a mature framework and it
is useful to use this instead of homebrew stuff like `rst-toc`.

For instance I also have using the speed bar with `rst-mode`. The
imenu documentation says it supports the speed bar somehow - so this
might be a quick win :-) .

> However, there is a reason I write this
> patch. Sometime I read document writtn in rst file by my colleagues(on
> emacs running on a terminal). In such case `which-func' helps me to
> understand the document; and `which-func' uses imenu internally.

I didn't get `which-func` to work - not even in Emacs Lisp mode. The
documentation says

  When Which Function mode is enabled, the current function name is
  continuously displayed in the mode line, in certain major modes.

Unfortunately the mode line doesn't change when I say
`which-func-mode` :-( .

[...checking...]

Ah that's probably because I

   (setq default-mode-line-format ...)

in my `.emacs`. Uuh, these stone-old customizations bite sometimes :-( .


						Grüße

						Stefan

[-- Attachment #2: Type: application/pgp-signature, Size: 307 bytes --]

  parent reply	other threads:[~2012-06-18  9:28 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-14 19:15 bug#11711: 24.0.95; [PATCH] added imenu and which-func support to rst.el Masatake YAMATO
2012-06-15  1:46 ` Stefan Monnier
2012-06-16 22:33   ` Masatake YAMATO
2012-06-18  1:59     ` Stefan Monnier
2012-06-18  9:28     ` Stefan Merten [this message]
2012-06-18  9:44 ` Stefan Merten
2012-06-18 19:25   ` Stefan Monnier
2012-06-18  9:57 ` Stefan Merten
2012-06-19  3:33   ` Masatake YAMATO

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

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

  git send-email \
    --in-reply-to=6091.1340011719@theowa.merten-home.homelinux.org \
    --to=smerten@oekonux.de \
    --cc=11711@debbugs.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.
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.