From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dima Kogan Newsgroups: gmane.emacs.bugs Subject: bug#14392: 24.3.50; VHDL mode rebinds DEL and M-DEL Date: Sun, 12 May 2013 09:27:01 -0700 Message-ID: <87hai8xiy2.fsf@secretsauce.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: ger.gmane.org 1368377093 10237 80.91.229.3 (12 May 2013 16:44:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 12 May 2013 16:44:53 +0000 (UTC) To: 14392@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun May 12 18:44:53 2013 Return-path: Envelope-to: geb-bug-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 1UbZOE-0005c2-UV for geb-bug-gnu-emacs@m.gmane.org; Sun, 12 May 2013 18:44:51 +0200 Original-Received: from localhost ([::1]:49941 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UbZOE-0008BF-IN for geb-bug-gnu-emacs@m.gmane.org; Sun, 12 May 2013 12:44:50 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:43713) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UbZO8-0008B4-KZ for bug-gnu-emacs@gnu.org; Sun, 12 May 2013 12:44:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UbZO5-00071F-1Q for bug-gnu-emacs@gnu.org; Sun, 12 May 2013 12:44:44 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:33536) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UbZO4-000711-LM for bug-gnu-emacs@gnu.org; Sun, 12 May 2013 12:44:40 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1UbZOQ-0000vN-7V for bug-gnu-emacs@gnu.org; Sun, 12 May 2013 12:45:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dima Kogan Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 12 May 2013 16:45:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 14392 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.13683770463382 (code B ref -1); Sun, 12 May 2013 16:45:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 12 May 2013 16:44:06 +0000 Original-Received: from localhost ([127.0.0.1]:37645 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UbZNW-0000sV-8Y for submit@debbugs.gnu.org; Sun, 12 May 2013 12:44:06 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:60101) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UbZNU-0000sO-Fg for submit@debbugs.gnu.org; Sun, 12 May 2013 12:44:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UbZN3-0006eJ-9W for submit@debbugs.gnu.org; Sun, 12 May 2013 12:43:42 -0400 Original-Received: from lists.gnu.org ([208.118.235.17]:57610) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UbZ7I-0001Bn-It for submit@debbugs.gnu.org; Sun, 12 May 2013 12:27:20 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:37761) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UbZ7A-0005UK-JC for bug-gnu-emacs@gnu.org; Sun, 12 May 2013 12:27:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UbZ73-00017x-Mc for bug-gnu-emacs@gnu.org; Sun, 12 May 2013 12:27:12 -0400 Original-Received: from out1-smtp.messagingengine.com ([66.111.4.25]:53797) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UbZ73-00016c-BO for bug-gnu-emacs@gnu.org; Sun, 12 May 2013 12:27:05 -0400 Original-Received: from compute1.internal (compute1.nyi.mail.srv.osa [10.202.2.41]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id 4CC602038C for ; Sun, 12 May 2013 12:27:03 -0400 (EDT) Original-Received: from frontend1.nyi.mail.srv.osa ([10.202.2.160]) by compute1.internal (MEProxy); Sun, 12 May 2013 12:27:03 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=secretsauce.net; h=from:to:subject:date:message-id:mime-version:content-type; s= mesmtp; bh=IIWRWlI0IAVdRdwNO2r2ujQ2sPg=; b=ObWsF0e8XgsXZGaR6jio+ pLYbhKZz8k95Y94wXvZSIkLkUP5ygXNVXk5HIPuswiYqCwIKO7PusLlxAnYJAPXQ r6wQdoZL3CT3HbC/3iHgVDYcARMgBA+Sz29Sik6aAruQcSdJj/MIW4iqRyamcDdX rcrwlfjIizfuVwU7LDM710= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=from:to:subject:date:message-id :mime-version:content-type; s=smtpout; bh=IIWRWlI0IAVdRdwNO2r2uj Q2sPg=; b=GyLFyyOo4cKSGKB5h/dG7TJFnZdDEtK/LwvVrwVzR23q/PPi59dEei oWOdUkHhV+T7GcwBKUpMcvHg+3GCczZVj+j6bKvEEjnyyz6rXKC6WYdOYEyApxFh n7pjvAdecE9tyPL3agdNOPP6fGBn4jkPAy9dZhKmHowClDFDPRWsk= X-Sasl-enc: 6kxZ9ItgCd8+f6unPx979i2s+w3SkkdNzDLiugqa5UOE 1368376023 Original-Received: from shorty.local (unknown [76.169.247.77]) by mail.messagingengine.com (Postfix) with ESMTPA id 07490C80007 for ; Sun, 12 May 2013 12:27:03 -0400 (EDT) Original-Received: from dima by shorty.local with local (Exim 4.80) (envelope-from ) id 1UbZ6z-0001Kz-Nm for bug-gnu-emacs@gnu.org; Sun, 12 May 2013 09:27:01 -0700 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:74188 Archived-At: --=-=-= Content-Type: text/plain I'm using a very recent build of emacs from source: GNU Emacs 24.3.50.1 (x86_64-pc-linux-gnu, X toolkit, Xaw scroll bars) of 2013-04-27 on dex, modified by Debian (emacs-snapshot package, version 2:20130427-1) Windowing system distributor `The X.Org Foundation', version 11.0.11204000 System Description: Debian GNU/Linux 7.0 (wheezy) VHDL mode sets up many of its own key bindings. Two of these bindings aren't really VHDL specific, but rather represent user preferences: (define-key vhdl-mode-map [delete] 'delete-char) (define-key vhdl-mode-map [(meta delete)] 'kill-word)) These redefine the behaviour of DEL and M-DEL in VHDL mode in a way that's not specific to VHDL. The new behavior of M-DEL is different from the emacs default, which is to kill backward, not forward. There's no reason to have this in VHDL mode, and it acts only to surprise users with non-convention behavior. The attached patch removes these bindings. --=-=-= Content-Type: text/x-diff Content-Disposition: attachment; filename=0001-vhdl-mode-removed-key-bindings-not-specific-to-VHDL.patch >From 16a4de34ef7ee0986ef04cd90d1657f977c701e7 Mon Sep 17 00:00:00 2001 From: Dima Kogan Date: Sun, 12 May 2013 09:20:19 -0700 Subject: [PATCH] vhdl mode: removed key bindings not specific to VHDL This mode was binding [delete] to 'delete-char and [(meta delete)] to 'kill-word. These have nothing to do with VHDL and everything to do with a particular user's preferences. These should go into a user's .emacs instead --- lisp/progmodes/vhdl-mode.el | 3 --- 1 file changed, 3 deletions(-) diff --git a/lisp/progmodes/vhdl-mode.el b/lisp/progmodes/vhdl-mode.el index 1a7ecb5..71b3444 100644 --- a/lisp/progmodes/vhdl-mode.el +++ b/lisp/progmodes/vhdl-mode.el @@ -2723,9 +2723,6 @@ STRING are replaced by `-' and substrings are converted to lower case." (define-key vhdl-mode-map "\M-^" 'vhdl-delete-indentation) ;; backspace/delete key bindings (define-key vhdl-mode-map [backspace] 'backward-delete-char-untabify) - (unless (boundp 'delete-key-deletes-forward) ; XEmacs variable - (define-key vhdl-mode-map [delete] 'delete-char) - (define-key vhdl-mode-map [(meta delete)] 'kill-word)) ;; mode specific key bindings (define-key vhdl-mode-map "\C-c\C-m\C-e" 'vhdl-electric-mode) (define-key vhdl-mode-map "\C-c\C-m\C-s" 'vhdl-stutter-mode) -- 1.7.10.4 --=-=-=--