From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "B. T. Raven" Newsgroups: gmane.emacs.help Subject: Re: Disabling nxml-mode Date: Tue, 10 May 2011 12:15:41 -0500 Message-ID: References: <92m0bdFgm5U1@mid.individual.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1306268924 20163 80.91.229.12 (24 May 2011 20:28:44 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 24 May 2011 20:28:44 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue May 24 22:28:39 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QOyDV-000257-NW for geh-help-gnu-emacs@m.gmane.org; Tue, 24 May 2011 22:28:37 +0200 Original-Received: from localhost ([::1]:52565 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QOyDV-0004vc-3K for geh-help-gnu-emacs@m.gmane.org; Tue, 24 May 2011 16:28:37 -0400 Original-Path: usenet.stanford.edu!postnews.google.com!news2.google.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!nntp.sysmatrix.net!news.sysmatrix.net.POSTED!not-for-mail Original-NNTP-Posting-Date: Tue, 10 May 2011 12:15:24 -0500 User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) Original-Newsgroups: gnu.emacs.help In-Reply-To: X-No-Archive: yes Original-Lines: 69 X-Usenet-Provider: http://www.giganews.com Original-NNTP-Posting-Host: 12.73.129.59 Original-X-Trace: sv3-JOGfebmNobanxk9sv6km6ZnPiNBV3RjO5R7/s7pXcfLoPD7qn048bndZjnClh+m83Ik+9hyOgBvjaZR!cV4bBzfKUMgSwbUp+RDhmer7eeAB1xSuzSUcNL3GDHHecb0vGe7bJiKws2pxNCsjCw4Z740/euoG!PTjqMQGav4H+BLBqSOkt5WtyTRoKuQ== Original-X-Complaints-To: abuse@sysmatrix.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 3909 Original-Xref: usenet.stanford.edu gnu.emacs.help:186833 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 X-Gmane-Expiry: 2011-06-07 Xref: news.gmane.org gmane.emacs.help:81163 Archived-At: Thanks for the Emacs23 new features pages. It would have been a long time before I found out about proced and global visual-line-mode on my own. Two questions on matters your embedded links lead to: 1) Why is ergoemacs not gpl licensed? 2) For kui (keyboard user interface) I use keytweak, firemacs, and xkeymacs on w32 desktop but on thinkpad I can't get Fn key to do duty as a mod key even though xev shows it as rassigned by xmodmap. Since you are an ergonomics maven, I was hoping you (or any-one here) might know whether the bottom-row keys on a thinkpad could be swapped around and re-arranged without resorting to kernel surgery a la Rick Van Rein's Funkey patch: http://rick.vanrein.org/linux/funkey/#modes Thanks again, Xah, and, in advance, if you know anything about question 2. Ed Xah Lee wrote: > the reason it nxml-mode is loaded when u call xml-mode is probably > because there is a alias. > > you can probably set it back by: > > (defalias 'xml-mode 'sgml-xml-mode) > > Peter wrote: > > (setq auto-mode-alist (cons '("\\.[XxRrMmDdTt][TtMmDdSsNnEe] > [PpAaMmLlFfSsIi]?[EePp]*[Cc]*$" . xml-mode) auto-mode-alist)) > > that seems to be pretty bad. > > you probably want to use add-to-list instead of setq. > (add-to-list 'auto-mode-alist '("\\.js\\'" . js2-mode)) > > also, the file suffix > "\\.[XxRrMmDdTt][TtMmDdSsNnEe][PpAaMmLlFfSsIi]?[EePp]*[Cc]*$" > seems quite wild. What is it? > > nxml-mode is a new mode for xml, written by the xml expert James > Clark, who is also the original author of sgml-mode (html-mode and xml- > mode are parts of sgml-mode). nxml-mode features on-the-fly xml > validation. It's 10k lines of elisp. > > the following might provide helpful info: > > 〈How to Install Emacs Packages〉 > http://xahlee.org/emacs/emacs_installing_packages.html > > 〈New Features in Emacs 23〉 > http://xahlee.org/emacs/emacs23_features.html > > Xah > > On May 7, 3:45 pm, Peter Flynn wrote: >> I just upgraded a machine to Ubuntu Natty, which installed Emacs 23.2, >> which appears to open XML files in nxml-mode by default. My .emacs file says >> >>> (autoload 'xml-mode "psgml" "Major mode to edit XML files." t ) >>> (setq auto-mode-alist (cons '("\\.[XxRrMmDdTt][TtMmDdSsNnEe][PpAaMmLlFfSsIi]?[EePp]*[Cc]*$" . xml-mode) auto-mode-alist)) >> which has been working fine for years. It looks as if Emacs 23.2 defines >> xml-mode to point to nxml-mode, and this is somehow superseding my .emacs. >> >> Unfortunately I still need to use psgml's xml-mode for all my XML stuff. >> Does anyone know how I disable Emacs' new behaviour? >> >> ///Peter