From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.help Subject: Re: nXML mode word separators Date: Thu, 07 Feb 2019 16:23:12 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="6025"; mail-complaints-to="usenet@blaine.gmane.org" Cc: Help GNU Emacs To: Skip Montanaro Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Feb 07 16:25:31 2019 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1grlYR-0001S0-2R for geh-help-gnu-emacs@m.gmane.org; Thu, 07 Feb 2019 16:25:31 +0100 Original-Received: from localhost ([127.0.0.1]:42014 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1grlYP-0004xB-U5 for geh-help-gnu-emacs@m.gmane.org; Thu, 07 Feb 2019 10:25:29 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:50087) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1grlWd-000493-NL for help-gnu-emacs@gnu.org; Thu, 07 Feb 2019 10:23:40 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1grlWU-0002N0-VI for help-gnu-emacs@gnu.org; Thu, 07 Feb 2019 10:23:33 -0500 Original-Received: from mail-wr1-x42b.google.com ([2a00:1450:4864:20::42b]:40519) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1grlWL-0002E9-05 for help-gnu-emacs@gnu.org; Thu, 07 Feb 2019 10:23:26 -0500 Original-Received: by mail-wr1-x42b.google.com with SMTP id q1so232762wrp.7 for ; Thu, 07 Feb 2019 07:23:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:mail-copies-to:gmane-reply-to-list :date:in-reply-to:message-id:mime-version; bh=PAZn4ruZPw9z2aFlsr8UynMWUDDDlOniZo2oY0Ah3sg=; b=mo2+HsrdwIsb9qqGE0/HoFKGcjOiT+ZKZE0kMZZTyeb+W5VvwLtG3cRVEQQYBShoch jPfuG86XgUl7YCbW+tgSUesLlgx+2cLvqPrKANAsVCb+XNQe3wCYiIvKPEh7C9r0bufl qKP7HLLtouB2DLjFi+AoI+9zoqP6fjA5boFKBMrRhS0E9xVNtPDEFYkEvWr4/TZXZrD1 dzrSRcgA6fLbp8iffHofKHT1q/Y4wIYWP17jgjaRvbPSUTuNUXS7UOOnn6gfO3QF61K5 oltyM/iBUc8H1T7OgVRtFUFNMJ0XddgLjjQTYzzZRCRNCjFXq+0Y7FKWquWWyy42+0qh 5wcA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:mail-copies-to :gmane-reply-to-list:date:in-reply-to:message-id:mime-version; bh=PAZn4ruZPw9z2aFlsr8UynMWUDDDlOniZo2oY0Ah3sg=; b=jJ3+fJgoJ+sUAXjdD+bZvDdnnMSRMoMc5aJCazKHRCCF/hnxfyWvBMR8LS7fa0dVzm vGJbO7+vErJ9ZsbpejPHZVUe4BHY0Z+ojmY7L31UYGZmzF9+wCCsge9crGMpJufh84Vc IOGaeNA1+kMTnLDExumuO14c3lqnVpMzxuT/kP6B1xWgujStmTfTiY5shHHm2rUYdK0D 2Db4q8OYT0AnDQbc2T1pfjJR9aIDo81tylj5us/Zdk2Vw3VggpAjDA8pOTwSFr5KMGmV RTBXH2+AjII5L6078TyYYwuiRr5gesMOBcBprqBlJtOqtJ+1xbyrX8NC3yW6xMIys22o EwgQ== X-Gm-Message-State: AHQUAuZRXcJkiUBQqkKwvoKNa/TXbKH39LZOEJKIXk97E9naPWf2Db+n VDSnmgytP/zLbN8SSocZsp6Vr18j X-Google-Smtp-Source: AHgI3IbV+qAnRUWvmsnsAFhHW3xaOrrPvLfsx7zcKlobrD2TxjItgPsjrfwtfWi48geYsq6HTsdl4g== X-Received: by 2002:adf:f34e:: with SMTP id e14mr13506891wrp.240.1549552994193; Thu, 07 Feb 2019 07:23:14 -0800 (PST) Original-Received: from rpluim-mac ([149.5.228.1]) by smtp.gmail.com with ESMTPSA id x10sm30455488wrn.29.2019.02.07.07.23.12 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Thu, 07 Feb 2019 07:23:13 -0800 (PST) Mail-Copies-To: never Gmane-Reply-To-List: yes In-Reply-To: (Skip Montanaro's message of "Thu, 7 Feb 2019 08:58:54 -0600") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::42b X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.help:119244 Archived-At: Skip Montanaro writes: > I unfortunately have to work with handwritten XML which is used to > define complex application configs. In that context, apostrophes are > valid string delimiters, at least in whatever XML pseudo-dialect these > files are written in. So, both of these snippets mean the same thing: > > > > > I'm not in any sort of position to dictate any changes, so I need to > adapt. So, forward-word currently skips over apostrophes (considering > them word characters) and kill-word (even worse) deletes them. It has > probably been a decade since I fiddled with syntax tables. How do I > move apostrophes from word class to quotation(?) class in the relevant > syntax table? FWIW, when editing XML files I seem to be in nxml-mode > (nothing I enabled specifically, must just be the default mode). > (add-hook 'nxml-mode-hook (lambda () (modify-syntax-entry ?' "\""))) Robert