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: image-toggle-display overwrites nxml-mode local key map Date: Thu, 3 Dec 2009 02:37:42 +0100 Message-ID: References: <87bpim8d5b.fsf@mail.jurta.org> <87fx7x5np9.fsf@mail.jurta.org> <87einh7zlw.fsf@mail.jurta.org> <87ws15m3gb.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 1259804867 26555 80.91.229.12 (3 Dec 2009 01:47:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 3 Dec 2009 01:47:47 +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 Thu Dec 03 02:47:39 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 1NG0nC-0005H6-VE for geb-bug-gnu-emacs@m.gmane.org; Thu, 03 Dec 2009 02:47:39 +0100 Original-Received: from localhost ([127.0.0.1]:45706 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NG0nC-00036e-8w for geb-bug-gnu-emacs@m.gmane.org; Wed, 02 Dec 2009 20:47:38 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NG0n6-00033w-P0 for bug-gnu-emacs@gnu.org; Wed, 02 Dec 2009 20:47:32 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NG0n2-0002wZ-BQ for bug-gnu-emacs@gnu.org; Wed, 02 Dec 2009 20:47:32 -0500 Original-Received: from [199.232.76.173] (port=54959 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NG0n1-0002wM-WA for bug-gnu-emacs@gnu.org; Wed, 02 Dec 2009 20:47:28 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:44296) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NG0n1-0007D3-GL for bug-gnu-emacs@gnu.org; Wed, 02 Dec 2009 20:47:27 -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 nB31lO7E006508; Wed, 2 Dec 2009 17:47:25 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id nB31j5Q1006259; Wed, 2 Dec 2009 17:45:05 -0800 Resent-Date: Wed, 2 Dec 2009 17:45: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: Thu, 03 Dec 2009 01:45:04 +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.12598042895724 (code B ref 5062); Thu, 03 Dec 2009 01:45:04 +0000 Original-Received: (at 5062) by emacsbugs.donarmstrong.com; 3 Dec 2009 01:38:09 +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 nB31c7kJ005720 for <5062@emacsbugs.donarmstrong.com>; Wed, 2 Dec 2009 17:38:08 -0800 Original-Received: by ywh34 with SMTP id 34so799975ywh.1 for <5062@emacsbugs.donarmstrong.com>; Wed, 02 Dec 2009 17:38:02 -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=BCJ7NyDOgTsjJiVyl24HX8LJ7F1MvwfULU30zhLHOVs=; b=UVSyMF64Wyc7KAVQYU1Zu73VyJMudDuptssLYGE846+KtSuXwuyXWXK5gyABreIv5H LpJ4T/9SKusntNvDdUnMu47d7xLzdsawFOTwmTeFwfDyds+ZKQe/t1DQDWD1TBmiX48v U1et3O17jM869GSZcXGGQ7Ct03tChWQc31NHo= 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=xZafsdEivTAf3uB9li7LWhogJBBGVEzsR+m9QTPeZIhs15We38zACSSXtTMgW80brM 4gLUUUQ5mu0WHr7AoLAqB0IurUCGkOJTWXuaYy+0hJMWsAkJETNM0vA+wHJXeHku+cRK XWh/qHniGOs3aYoJSvljGkIDYqXgcT63e5mCM= Original-Received: by 10.100.29.33 with SMTP id c33mr1150159anc.175.1259804282079; Wed, 02 Dec 2009 17:38:02 -0800 (PST) In-Reply-To: <87ws15m3gb.fsf@mail.jurta.org> X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Wed, 02 Dec 2009 20:47:32 -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:33162 Archived-At: On Thu, Dec 3, 2009 at 1:59 AM, Juri Linkov wrote: >>> 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? > > I think Stefan's idea of allowing auto-mode-alist to have entries like > ("regexp" (major-mode minor-mode-1 minor-mode-2 ...)) is more universal. Why not allow a form there then: ("regexp" '(progn (major-mode) (mino-mode-1 1) (minor-mode-2 1) ...))