unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Set variable in derived mode before running the parent mode function
@ 2015-06-02  9:46 Philipp Stephani
  0 siblings, 0 replies; 11+ messages in thread
From: Philipp Stephani @ 2015-06-02  9:46 UTC (permalink / raw)
  To: help-gnu-emacs

Hi,

I've defined a derived major mode of `python-mode' using
`define-derived-mode'.  However, some of the variables set by
`python-mode' are inappropriate for the derived mode; in particular, I'd
like to disable auto-guessing of the indentation by setting
`python-indent-guess-indent-offset' to nil.  However,
`define-derived-mode' has no customization point for running code before
the parent mode function.  What's the best way to solve this?  Using an
advice?  Or not using `define-derived-mode' in the first place?

Thanks,
Philipp

-- 
Google Germany GmbH
Dienerstraße 12
80331 München

Registergericht und -nummer: Hamburg, HRB 86891
Sitz der Gesellschaft: Hamburg
Geschäftsführer: Graham Law, Christine Elizabeth Flores

Diese E-Mail ist vertraulich.  Wenn Sie nicht der richtige Adressat sind,
leiten Sie diese bitte nicht weiter, informieren Sie den Absender und löschen
Sie die E-Mail und alle Anhänge.  Vielen Dank.
       
This e-mail is confidential.  If you are not the right addressee please do not
forward it, please inform the sender, and please erase this e-mail including
any attachments.  Thanks.



^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2015-12-28 17:48 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.4113.1433238449.904.help-gnu-emacs@gnu.org>
2015-06-03  1:10 ` Set variable in derived mode before running the parent mode function Stefan Monnier
2015-06-04  5:03   ` Andreas Röhler
2015-06-06 15:59     ` Philipp Stephani
2015-06-07 11:49       ` Andreas Röhler
     [not found]   ` <mailman.4253.1433394203.904.help-gnu-emacs@gnu.org>
2015-06-04 21:55     ` Stefan Monnier
2015-06-06 15:58   ` Philipp Stephani
2015-06-07 11:52     ` Andreas Röhler
2015-06-21 12:24       ` Philipp Stephani
     [not found]       ` <mailman.5357.1434889492.904.help-gnu-emacs@gnu.org>
2015-06-21 17:32         ` Stefan Monnier
2015-12-28 17:48           ` Philipp Stephani
2015-06-02  9:46 Philipp Stephani

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).