From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Emanuel Berg Newsgroups: gmane.emacs.help Subject: Re: Skipping words with C- like other editors do Date: Mon, 16 Apr 2018 00:17:22 +0200 Organization: Aioe.org NNTP Server Message-ID: <868t9o868d.fsf@zoho.com> References: <778085015.663724.1523818187137.ref@mail.yahoo.com> <778085015.663724.1523818187137@mail.yahoo.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1523830708 29576 195.159.176.226 (15 Apr 2018 22:18:28 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 15 Apr 2018 22:18:28 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Apr 16 00:18:24 2018 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f7pyY-0007ZK-RX for geh-help-gnu-emacs@m.gmane.org; Mon, 16 Apr 2018 00:18:22 +0200 Original-Received: from localhost ([::1]:47594 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f7q0d-0002Hq-PD for geh-help-gnu-emacs@m.gmane.org; Sun, 15 Apr 2018 18:20:31 -0400 Original-Path: usenet.stanford.edu!goblin2!goblin.stu.neva.ru!aioe.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 34 Original-NNTP-Posting-Host: ey7daRps1n1jd+mMaOEjpw.user.gioia.aioe.org Original-X-Complaints-To: abuse@aioe.org Cancel-Lock: sha1:izn9tCiPrYo1QFtbKWls2xcu5sU= X-Notice: Filtered by postfilter v. 0.8.3 Mail-Copies-To: never Original-Xref: usenet.stanford.edu gnu.emacs.help:222422 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:116540 Archived-At: Skip Montanaro wrote: > I think you probably want to tweak the > relevant syntax table You can use this (source last) as a template for experimentation. Do `backward-word' and `bwe' with point at the end of "g.args" and see what happens. This is done in the code with ?. "w" which means, I think, that a point (full stop, ".") is considered a part of a word, so `backward-word' shouldn't stop at it but continue. Perhaps there is a package that does what the OP wants tho. (defun backward-word-experiment () (interactive) (let ((temp-st (make-syntax-table))) (modify-syntax-entry ?. "w" temp-st) (with-syntax-table temp-st (backward-word 1) ))) (defalias 'bwe 'backward-word-experiment) ;; never fear, g.args is here -- underground experts united http://user.it.uu.se/~embe8573