From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov 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:08:59 +0200 Organization: JURTA Message-ID: <87einh7zlw.fsf@mail.jurta.org> References: <87einifskr.fsf@mail.jurta.org> <87bpim8d5b.fsf@mail.jurta.org> <87fx7x5np9.fsf@mail.jurta.org> Reply-To: Juri Linkov , 5062@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1259533674 20947 80.91.229.12 (29 Nov 2009 22:27:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 29 Nov 2009 22:27:54 +0000 (UTC) Cc: Tassilo Horn , Brent Goodrick , 5062@emacsbugs.donarmstrong.com To: Lennart Borgman Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Nov 29 23:27:46 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 1NEsF8-0001Gj-4A for geb-bug-gnu-emacs@m.gmane.org; Sun, 29 Nov 2009 23:27:46 +0100 Original-Received: from localhost ([127.0.0.1]:56376 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NEsF7-0004fn-LF for geb-bug-gnu-emacs@m.gmane.org; Sun, 29 Nov 2009 17:27:45 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NEsEt-0004Y3-Kj for bug-gnu-emacs@gnu.org; Sun, 29 Nov 2009 17:27:31 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NEsEo-0004Wh-W8 for bug-gnu-emacs@gnu.org; Sun, 29 Nov 2009 17:27:31 -0500 Original-Received: from [199.232.76.173] (port=43832 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NEsEo-0004We-Sh for bug-gnu-emacs@gnu.org; Sun, 29 Nov 2009 17:27:26 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:46993) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NEsEn-0001qA-Te for bug-gnu-emacs@gnu.org; Sun, 29 Nov 2009 17: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 nATMRNcN020899; Sun, 29 Nov 2009 14:27:23 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id nATMP7Ql020664; Sun, 29 Nov 2009 14:25:07 -0800 Resent-Date: Sun, 29 Nov 2009 14:25:07 -0800 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Juri Linkov Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Sun, 29 Nov 2009 22:25:07 +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.125953316320134 (code B ref 5062); Sun, 29 Nov 2009 22:25:07 +0000 Original-Received: (at 5062) by emacsbugs.donarmstrong.com; 29 Nov 2009 22:19:22 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from mx1.starman.ee (smtp-out3.starman.ee [85.253.0.5]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nATMJL5q020130 for <5062@emacsbugs.donarmstrong.com>; Sun, 29 Nov 2009 14:19:22 -0800 X-Virus-Scanned: by Amavisd-New at mx1.starman.ee Original-Received: from mail.starman.ee (82.131.32.20.cable.starman.ee [82.131.32.20]) by mx1.starman.ee (Postfix) with ESMTP id 68F1C3F4113; Mon, 30 Nov 2009 00:19:13 +0200 (EET) In-Reply-To: (Lennart Borgman's message of "Sun, 29 Nov 2009 23:00:53 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (x86_64-pc-linux-gnu) X-MIME-Autoconverted: from 8bit to quoted-printable by rzlab.ucr.edu id nATMRNcN020899 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Sun, 29 Nov 2009 17: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:33043 Archived-At: >> IIRC auto-mode-alist can point to minor-modes (the auto-mode-alist ent= ry >> needs to look something like ("regexp" minor-mode t)), but I don't thi= nk >> it can be used here (the constraints on how it can be used are very >> strict since it needs to "consume" a suffix and be called before the >> major-mode). =A0Maybe we could extend auto-mode-alist to allow things = like >> ("regexp" (major-mode minor-mode-1 minor-mode-2 ...)). > > 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? --=20 Juri Linkov http://www.jurta.org/emacs/