From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Dima Kogan Newsgroups: gmane.emacs.devel Subject: Syntax of $ in makefile-mode Date: Thu, 15 Sep 2016 21:29:56 -0700 Message-ID: <87sht079h7.fsf@secretsauce.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: blaine.gmane.org 1474000262 14304 195.159.176.226 (16 Sep 2016 04:31:02 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 16 Sep 2016 04:31:02 +0000 (UTC) User-Agent: mu4e 0.9.17; emacs 25.1.1 To: emacs-devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Sep 16 06:30:58 2016 Return-path: Envelope-to: ged-emacs-devel@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 1bkkne-0002TH-Ad for ged-emacs-devel@m.gmane.org; Fri, 16 Sep 2016 06:30:54 +0200 Original-Received: from localhost ([::1]:38506 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bkknb-0002Ca-D8 for ged-emacs-devel@m.gmane.org; Fri, 16 Sep 2016 00:30:51 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56895) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bkkn2-0002CL-U5 for emacs-devel@gnu.org; Fri, 16 Sep 2016 00:30:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bkkmy-00082v-L2 for emacs-devel@gnu.org; Fri, 16 Sep 2016 00:30:16 -0400 Original-Received: from out2-smtp.messagingengine.com ([66.111.4.26]:51979) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bkkmw-0007nT-7G for emacs-devel@gnu.org; Fri, 16 Sep 2016 00:30:12 -0400 Original-Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 357ED2069A for ; Fri, 16 Sep 2016 00:29:58 -0400 (EDT) Original-Received: from frontend1 ([10.202.2.160]) by compute5.internal (MEProxy); Fri, 16 Sep 2016 00:29:58 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=secretsauce.net; h=content-type:date:from:message-id:mime-version:subject:to :x-sasl-enc:x-sasl-enc; s=mesmtp; bh=nChzDpLT5AY99naauwHx7qtN74M =; b=ejQHJV9xinUkkp5fCGAXQCWx+zDKTmzCBXtM2IwW4PXp1w17EmGQNwovjg8 ito14WqKkz5tKmKD4dZe7K7yULmwqrGqtoJkT5hkTdojp0zeIHkfuz96CT8rcCG7 TP7Cp7NWLTg3kG4G+PlasxuIpLyn5mp8vuyxKMyUcffU7jRA= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:message-id :mime-version:subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=nC hzDpLT5AY99naauwHx7qtN74M=; b=g/7f3LTlMuxvM7UAMDwvpKCjtKjjZnhX0C WBbVjkK+YHio/0tlPLFGZ5cmvekx+UZahfZsia/tPpZrhJNzAlz8IvkEOfG6RmwU lsedYY4Ge15EiHB1uX7GFFdAwO23d7PMuTy2EXpldchd5aJUi1OwdZt6ylIz8k18 XXz6JNUrg= X-Sasl-enc: JNkiouDyVfvmp3mVyJ/nhaTglOT9IPa9JmaeCOVRw243 1474000197 Original-Received: from shorty.local (50-1-153-216.dsl.dynamic.fusionbroadband.com [50.1.153.216]) by mail.messagingengine.com (Postfix) with ESMTPA id D35B7F2988 for ; Fri, 16 Sep 2016 00:29:57 -0400 (EDT) Original-Received: from dima by shorty.local with local (Exim 4.87) (envelope-from ) id 1bkkmi-0004PS-HE for emacs-devel@gnu.org; Thu, 15 Sep 2016 21:29:56 -0700 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 66.111.4.26 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:207457 Archived-At: --=-=-= Content-Type: text/plain Hi. I've been working with Makefiles recently, and discovered that $ has word syntax. This results in odd behaviors. For instance, if you have asdf-$(xyz) in your buffer with the point on 'a', then commands like M-s . or C-M-SPC select "asdf-$", which makes no sense. Shouldn't $ have punctuation syntax (attached patch)? Am I missing something obvious here? --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=make-mode-punctuation-syntax-for-$.patch diff --git a/lisp/progmodes/make-mode.el b/lisp/progmodes/make-mode.el index fb71420..2b4ed85 100644 --- a/lisp/progmodes/make-mode.el +++ b/lisp/progmodes/make-mode.el @@ -712,6 +712,7 @@ makefile-mode-syntax-table (modify-syntax-entry ?# "< " st) (modify-syntax-entry ?\n "> " st) (modify-syntax-entry ?= "." st) + (modify-syntax-entry ?$ "." st) st) "Syntax table used in `makefile-mode'.") --=-=-=--