From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.help Subject: Re: How do I find out what minor modes are in effect? Date: Wed, 11 Apr 2012 14:09:22 -0400 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1334167814 5331 80.91.229.3 (11 Apr 2012 18:10:14 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 11 Apr 2012 18:10:14 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Apr 11 20:10:13 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SI1zg-0004kC-Mo for geh-help-gnu-emacs@m.gmane.org; Wed, 11 Apr 2012 20:10:12 +0200 Original-Received: from localhost ([::1]:40135 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SI1zf-0004De-Ms for geh-help-gnu-emacs@m.gmane.org; Wed, 11 Apr 2012 14:10:11 -0400 Original-Path: usenet.stanford.edu!postnews.google.com!news2.google.com!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post01.iad.highwinds-media.com!newsfe21.iad.POSTED!00000000!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.94 (gnu/linux) Cancel-Lock: sha1:GtejgVxCbWWlPe0WeHYiH+BYUaw= Original-Lines: 12 Original-X-Complaints-To: abuse@UsenetServer.com Original-NNTP-Posting-Date: Wed, 11 Apr 2012 18:09:22 UTC X-Received-Bytes: 1160 Original-Xref: usenet.stanford.edu gnu.emacs.help:192015 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:84430 Archived-At: > I'm writing a function that needs to change the major mode to do its > stuff properly. That can turn off minor modes too. The obvious > polite thing to do is turn them all back on when I'm done. FWIW, you might want to M-x report-emacs-bug and request such a functionality or provide a patch that implements such a thing. There are several major modes which need to do that (picture-mode and image-mode come to mind, I'm sure there are more). Stefan