From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Harry Putnam Newsgroups: gmane.emacs.help Subject: Re: Use nxml mode, but without the auto formatting Date: Sat, 22 Mar 2014 22:40:54 -0400 Organization: Still searching... Message-ID: <87y501hc21.fsf@newsguy.com> References: <87iorp3o24.fsf@newsguy.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1395542486 10484 80.91.229.3 (23 Mar 2014 02:41:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 23 Mar 2014 02:41:26 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Mar 23 03:41:35 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WRYLv-0007QQ-KB for geh-help-gnu-emacs@m.gmane.org; Sun, 23 Mar 2014 03:41:35 +0100 Original-Received: from localhost ([::1]:58726 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WRYLv-0005es-6v for geh-help-gnu-emacs@m.gmane.org; Sat, 22 Mar 2014 22:41:35 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47923) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WRYLf-0005Th-E5 for help-gnu-emacs@gnu.org; Sat, 22 Mar 2014 22:41:25 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WRYLa-00076T-2q for help-gnu-emacs@gnu.org; Sat, 22 Mar 2014 22:41:19 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:41666) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WRYLZ-00076E-S7 for help-gnu-emacs@gnu.org; Sat, 22 Mar 2014 22:41:13 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WRYLW-0006yT-JH for help-gnu-emacs@gnu.org; Sun, 23 Mar 2014 03:41:10 +0100 Original-Received: from z65-50-57-227.ips.direcpath.com ([65.50.57.227]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 23 Mar 2014 03:41:10 +0100 Original-Received: from reader by z65-50-57-227.ips.direcpath.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 23 Mar 2014 03:41:10 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 52 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: z65-50-57-227.ips.direcpath.com User-Agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.0.92 (gnu/linux) Cancel-Lock: sha1:JOQtW2UW/b8kPyyL3uY7C8RCG3g= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 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 Xref: news.gmane.org gmane.emacs.help:96685 Archived-At: Stefan Monnier writes: >> How can I use emacs to edit nxml documents but not let it format >> regions when I press bckspc at the end of a line. > > Can you show an example of reformatting (I don't use nxml mode myself)? > Maybe this functionality should only be enabled depending on something > like electric-indent-mode. Sorry Stefan, you tried to help and I dropped the ball. Here is the situation This happens in Xming '*.launch' files on windows, for me. These files are created if you use the xming gui to setup a launcher for a remote program. If I let emacs format the code then the code doesn't work to launch anything. If I leave it in a single line, it does. Emacs goes into nXML-mode whenever I open an Xming.launch file. If you use the Xming gui to create a launch file, the code appears as below. A launcher for a remote xterm ,---- | | `---- However, if you decide to hand edit that code... then hitting at about any point will try to format whatever is behind or above the cursor. Here is what happens if I hit after the last '>'. ,---- | | `---- To avoid this, I revert to fundamental-mode.. but, of course, then I don't have the nifty and helpful syntax highlighting.