From: Stefan Monnier <monnier@IRO.UMontreal.CA>
To: Ivan Kelly <ivan+gambit@bleurgh.com>
Cc: occitan@esperanto.org, 12963@debbugs.gnu.org
Subject: bug#12963: Fwd: Small modification to sh-script, to cover unsupported case label
Date: Fri, 23 Nov 2012 10:53:18 -0500 [thread overview]
Message-ID: <jwvr4nk1fqp.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <20121123090451.GD29552@ip-10-228-174-15.eu-west-1.compute.internal> (Ivan Kelly's message of "Fri, 23 Nov 2012 09:04:53 +0000")
> By being reset, I mean I have a hook
> (add-hook 'sh-mode-hook '(lambda () (setq indent-tabs-mode nil)))
> I open a sh file, and when I look at the value of indent-tabs-mode,
> it's t.
I just tried
% emacs23 -Q --eval "(add-hook 'sh-mode-hook (lambda () (setq indent-tabs-mode nil)))" test/indent/shell.sh
and C-h v indent-tabs-mode tells me it's nil in this buffer.
I suggest you add a (message "here I am") inside the above lambda (and
I also suggest you don't quote your lambdas with "'") to make sure it's
actually run.
> It may be something else that's borking it, but it works fine in other
> modes (java, c++). Is there a way to instrument a variable so that I
> can see when it gets changed?
No, but a binary search in your .emacs should quickly find the culprit.
Stefan
prev parent reply other threads:[~2012-11-23 15:53 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20121122155324.GC29552@ip-10-228-174-15.eu-west-1.compute.internal>
2012-11-22 22:31 ` bug#12963: Fwd: Small modification to sh-script, to cover unsupported case label Daniel Pfeiffer
2012-11-23 2:16 ` Stefan Monnier
2012-11-23 9:04 ` Ivan Kelly
2012-11-23 15:53 ` Stefan Monnier [this message]
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=jwvr4nk1fqp.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=12963@debbugs.gnu.org \
--cc=ivan+gambit@bleurgh.com \
--cc=occitan@esperanto.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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
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).