From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Cherkassov Newsgroups: gmane.emacs.help Subject: Killing punctuation chars enclosed with delimiters via backward-kill-word Date: Tue, 6 Aug 2013 14:29:16 +0400 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1375799244 529 80.91.229.3 (6 Aug 2013 14:27:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 6 Aug 2013 14:27:24 +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 Aug 06 16:27:28 2013 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 1V6iEQ-0004n5-Vm for geh-help-gnu-emacs@m.gmane.org; Tue, 06 Aug 2013 16:27:27 +0200 Original-Received: from localhost ([::1]:46162 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V6iEQ-0003Zz-IQ for geh-help-gnu-emacs@m.gmane.org; Tue, 06 Aug 2013 10:27:26 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45724) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V6eVz-0008LE-VO for help-gnu-emacs@gnu.org; Tue, 06 Aug 2013 06:29:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V6eVx-0001cv-5i for help-gnu-emacs@gnu.org; Tue, 06 Aug 2013 06:29:19 -0400 Original-Received: from mail-wg0-x233.google.com ([2a00:1450:400c:c00::233]:51101) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V6eVw-0001ba-Ur for help-gnu-emacs@gnu.org; Tue, 06 Aug 2013 06:29:17 -0400 Original-Received: by mail-wg0-f51.google.com with SMTP id a12so191082wgh.30 for ; Tue, 06 Aug 2013 03:29:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=PXhyKuAPYxJF0/Lr6MaekZyjHuYhdbBwKFo82SJJqFY=; b=VDLSonuAOA+t7pMEkTXv7eChRadzz7wajnRqqzM0fs/pcNarxgJj5F7G6MyURjh/kQ tkOj0q6G2C7q6EVcHYLW0BNtYGyrxjl9VsOCcDSP99x87aT9BpteUu9alqKZiJT0GMwC xNJArRclXOfT2w49GiS+IF9m2h6c4ACmNLQAUF4rqcbYw8/mGymxeckbGX3qRMUoANOk xPk1y8QZY3qCWvUhx0WjVp2YJzYGeckDzBSxyLHOjwAXLgQFhYDC5nPSJm3NbKIkP8Op NUBxcF67mLBqaatcD7QZg6O4WU/xP6cA7svIg16vHDevQ437SDmifmegguOtTZ6cTp5E UXXQ== X-Received: by 10.180.20.4 with SMTP id j4mr442904wie.48.1375784956257; Tue, 06 Aug 2013 03:29:16 -0700 (PDT) Original-Received: by 10.194.124.146 with HTTP; Tue, 6 Aug 2013 03:29:16 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c00::233 X-Mailman-Approved-At: Tue, 06 Aug 2013 10:27:09 -0400 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:92759 Archived-At: Hi list. Here is my question. Suppose this text: int variable; [ ^ | +- Pressing M-h here will erase ``variable;''. I don't like this behavior. Is there a functionality to kill only punctuation char if it is enclosed by delimiters or newlines? More examples: int array [ ^ | + - Pressing M-h here kills ``array'' as well int array [] ^ | + - Pressing M-h here kills ``array'' as well + - pressing M-d Here kills ``int'' | V int array []; int val; Any ideas? Could this be resolved by hacking syntax-table? Or we should rewrite ``backward-kill-ford'' and ``kill-word'' functions?