[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#11711: 24.0.95; [PATCH] added imenu and which-func support to rst.el
From: |
Stefan Monnier |
Subject: |
bug#11711: 24.0.95; [PATCH] added imenu and which-func support to rst.el |
Date: |
Mon, 18 Jun 2012 15:25:11 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) |
>> + ;; Which func
>> + (when (and (boundp 'which-func-modes) (listp which-func-modes))
>> + (add-to-list 'which-func-modes 'rst-mode))
> This form changes the customizable variable `which-func-modes'. I
> thought this is not a good idea. I thought customizable variables
> should be changed by users alone.
Indeed, better not do it. The default in 24.2 is to allow all modes, so
this code is not used in that case anyway.
> However, in this case it seems useful.
Better let the user make the change.
Stefan