From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.bugs Subject: bug#5062: 23.1.50; image-toggle-display overwrites nxml-mode local key map Date: Mon, 30 Nov 2009 00:16:13 +0100 Message-ID: References: <87einifskr.fsf@mail.jurta.org> <87bpim8d5b.fsf@mail.jurta.org> <87fx7x5np9.fsf@mail.jurta.org> <87einh7zlw.fsf@mail.jurta.org> Reply-To: Lennart Borgman , 5062@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1259537264 30121 80.91.229.12 (29 Nov 2009 23:27:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 29 Nov 2009 23:27:44 +0000 (UTC) Cc: Tassilo Horn , Brent Goodrick , 5062@emacsbugs.donarmstrong.com To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Nov 30 00:27:36 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NEtB1-0005FC-RG for geb-bug-gnu-emacs@m.gmane.org; Mon, 30 Nov 2009 00:27:36 +0100 Original-Received: from localhost ([127.0.0.1]:52450 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NEtB1-0004eT-Bm for geb-bug-gnu-emacs@m.gmane.org; Sun, 29 Nov 2009 18:27:35 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NEtAx-0004eM-HP for bug-gnu-emacs@gnu.org; Sun, 29 Nov 2009 18:27:31 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NEtAt-0004co-UP for bug-gnu-emacs@gnu.org; Sun, 29 Nov 2009 18:27:31 -0500 Original-Received: from [199.232.76.173] (port=52553 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NEtAt-0004cl-R0 for bug-gnu-emacs@gnu.org; Sun, 29 Nov 2009 18:27:27 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:43522) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NEtAr-0006ko-Mp for bug-gnu-emacs@gnu.org; Sun, 29 Nov 2009 18:27:26 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nATNRNaF026657; Sun, 29 Nov 2009 15:27:23 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id nATNP5Bw026344; Sun, 29 Nov 2009 15:25:05 -0800 Resent-Date: Sun, 29 Nov 2009 15:25:05 -0800 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Lennart Borgman Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Sun, 29 Nov 2009 23:25:05 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 5062 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 5062-submit@emacsbugs.donarmstrong.com id=B5062.125953660025790 (code B ref 5062); Sun, 29 Nov 2009 23:25:05 +0000 Original-Received: (at 5062) by emacsbugs.donarmstrong.com; 29 Nov 2009 23:16:40 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from mail-yw0-f196.google.com (mail-yw0-f196.google.com [209.85.211.196]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nATNGcBp025787 for <5062@emacsbugs.donarmstrong.com>; Sun, 29 Nov 2009 15:16:40 -0800 Original-Received: by ywh34 with SMTP id 34so2521984ywh.1 for <5062@emacsbugs.donarmstrong.com>; Sun, 29 Nov 2009 15:16:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:cc:content-type; bh=SFY6zRDbY1TNjXz21pmCogqm4oTY7Sg6YddF8Nl+98s=; b=udm1HYFuOjEbTO8HF6gPNHAtFR+DEsNGX+yAsPY+5/0IYtP/HMWzvfSjETJBPqzH1b Fc3AJ+wWl85v5SNthu8vfwzxJyCcrkTmzOKG1JElCLS7EP6YGiG21cWpVWQJg78zpNK8 ozrIzbkmgmmhX/8MXuZ2swNYTi1oh56vdAr6c= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=Oh95bFjO+tfQ+4mO7xDp+Rv6N+jdJcBRmN5eSrEeB6dhPffpgTyiBx48Exjz+lqJKK f0D0tfuYM1LBy3RI88LHBciWj+zHw4fxHKviB9TPXNBpNG2lP3xogTh2MLyZBN8mSWBJ rHDnzXICgH/NmjLsETF2dTEr31gI8w344cnn8= Original-Received: by 10.101.210.36 with SMTP id m36mr1234003anq.158.1259536593110; Sun, 29 Nov 2009 15:16:33 -0800 (PST) In-Reply-To: <87einh7zlw.fsf@mail.jurta.org> X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Sun, 29 Nov 2009 18:27:31 -0500 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:33045 Archived-At: On Sun, Nov 29, 2009 at 11:08 PM, Juri Linkov wrote: >> >> Or just define a derived mode that does major-mode + minor-mode and >> use that in auto-mode-alist? > > That's what I did in the previous patch where `image-mode-maybe' is > a combination of a non-image major mode (`normal-mode' with image-mode > entries removed from `auto-mode-alist') and `image-minor-mode'. > > Or did you mean a joint mode like `c-mode-and-image-minor-mode', > `nxml-mode-and-image-minor-mode', `ps-mode-and-doc-view-minor-mode'? > Wouldn't this be too clumsy? Yes, why would it be too clumsy? A more flexibel way might be to use define-globalized-minor-mode. The turn on function there could make any check. It could for example look in a list similar to auto-mode-alist, but for minor modes. But maybe that would take too long time?