From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.bugs Subject: bug#5062: image-toggle-display overwrites nxml-mode local key map Date: Wed, 02 Dec 2009 20:08:53 -0700 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: Kevin Rodgers , 5062@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1259810865 20409 80.91.229.12 (3 Dec 2009 03:27:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 3 Dec 2009 03:27:45 +0000 (UTC) To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Dec 03 04:27:38 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 1NG2Ly-0007lz-38 for geb-bug-gnu-emacs@m.gmane.org; Thu, 03 Dec 2009 04:27:38 +0100 Original-Received: from localhost ([127.0.0.1]:43604 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NG2Lx-0006b5-HN for geb-bug-gnu-emacs@m.gmane.org; Wed, 02 Dec 2009 22:27:37 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NG2Ls-0006ZJ-Gz for bug-gnu-emacs@gnu.org; Wed, 02 Dec 2009 22:27:32 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NG2Ln-0006PR-Lb for bug-gnu-emacs@gnu.org; Wed, 02 Dec 2009 22:27:31 -0500 Original-Received: from [199.232.76.173] (port=34106 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NG2Ln-0006PI-BP for bug-gnu-emacs@gnu.org; Wed, 02 Dec 2009 22:27:27 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:56484) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NG2Lm-0006KM-Te for bug-gnu-emacs@gnu.org; Wed, 02 Dec 2009 22:27: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 nB33ROs9015475; Wed, 2 Dec 2009 19:27:24 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id nB33K4Mp014796; Wed, 2 Dec 2009 19:20:04 -0800 Resent-Date: Wed, 2 Dec 2009 19:20:04 -0800 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Kevin Rodgers Original-Sender: news Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Thu, 03 Dec 2009 03:20: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 submit@emacsbugs.donarmstrong.com id=B.125980986014270 (code B ref -1); Thu, 03 Dec 2009 03:20:04 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 3 Dec 2009 03:11:00 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nB33Av0k014267 for ; Wed, 2 Dec 2009 19:10:59 -0800 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NG25p-00085K-73 for bug-gnu-emacs@gnu.org; Wed, 02 Dec 2009 22:10:57 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NG25k-0007vG-Ct for bug-gnu-emacs@gnu.org; Wed, 02 Dec 2009 22:10:56 -0500 Original-Received: from [199.232.76.173] (port=39566 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NG25k-0007v5-8z for bug-gnu-emacs@gnu.org; Wed, 02 Dec 2009 22:10:52 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]:36110) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NG25j-000533-U9 for bug-gnu-emacs@gnu.org; Wed, 02 Dec 2009 22:10:52 -0500 Original-Received: from list by lo.gmane.org with local (Exim 4.50) id 1NG24g-0001kj-8y for bug-gnu-emacs@gnu.org; Thu, 03 Dec 2009 04:09:46 +0100 Original-Received: from c-71-237-24-138.hsd1.co.comcast.net ([71.237.24.138]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 03 Dec 2009 04:09:46 +0100 Original-Received: from kevin.d.rodgers by c-71-237-24-138.hsd1.co.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 03 Dec 2009 04:09:46 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 26 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: c-71-237-24-138.hsd1.co.comcast.net User-Agent: Thunderbird 2.0.0.23 (Macintosh/20090812) In-Reply-To: X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Wed, 02 Dec 2009 22: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:33163 Archived-At: Lennart Borgman wrote: > 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) ...)) Because it's no longer a declarative data structure that can be queried and modified, rather an imperative program. -- Kevin Rodgers Denver, Colorado, USA