From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Konstantin Shakhnov Newsgroups: gmane.emacs.help Subject: Re: cannot disable paren matching Date: Wed, 28 Dec 2016 01:42:04 +0300 Message-ID: <20161227224204.GB3261@eee> References: <201612272029.uBRKTl39040819@home.icynic.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: blaine.gmane.org 1482878074 9092 195.159.176.226 (27 Dec 2016 22:34:34 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 27 Dec 2016 22:34:34 +0000 (UTC) User-Agent: Mutt/1.5.23 (2014-03-12) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Dec 27 23:34:28 2016 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 1cM0KA-0001cj-5n for geh-help-gnu-emacs@m.gmane.org; Tue, 27 Dec 2016 23:34:26 +0100 Original-Received: from localhost ([::1]:56511 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cM0KF-0001RJ-3L for geh-help-gnu-emacs@m.gmane.org; Tue, 27 Dec 2016 17:34:31 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39917) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cM0Jj-0001R4-9l for help-gnu-emacs@gnu.org; Tue, 27 Dec 2016 17:34:00 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cM0Jg-0007yQ-3a for help-gnu-emacs@gnu.org; Tue, 27 Dec 2016 17:33:59 -0500 Original-Received: from smtp24.mail.ru ([94.100.181.179]:52480) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cM0Jf-0007yF-L3 for help-gnu-emacs@gnu.org; Tue, 27 Dec 2016 17:33:56 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mail.ru; s=mail2; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:To:From:Date; bh=YJLSqCXhqFyPbP+w1zZ93D8UmEF/RvD1qq/y3pOIXM0=; b=N1PsDNWVhEGfsn4ikOo1gWW+69zq7xa7XAs3i4tWhrjlSmtBI3HxOA3atdGhC7uZa58d9l+JCfK83R642fcPZl/Yb3DVmXY3XAECiXMolhQIj6Uqxc8mCe+oTw9j+ulJtH8QtTwWW9zL66H2d17rhUF+jt6lfdYuC6+run0SIH4=; Original-Received: from [94.158.176.77] (port=36340 helo=eee) by smtp24.mail.ru with esmtpa (envelope-from ) id 1cM0Jc-0007ki-P5 for help-gnu-emacs@gnu.org; Wed, 28 Dec 2016 01:33:53 +0300 Content-Disposition: inline In-Reply-To: <201612272029.uBRKTl39040819@home.icynic.com> Authentication-Results: smtp24.mail.ru; auth=pass smtp.auth=kastian@mail.ru smtp.mailfrom=kastian@mail.ru X-E1FCDC63: 6E28414E0C009BD612C2EE9B459505F6705A2F0185E57886 X-E1FCDC64: 4F6E5AF88026113E7DE92F79CAD762334DD7A824DEDCC9D0EE00BF2C21E4A029 X-Mailru-Sender: FD668448AC40568882DD66648ECA6862D232D0E05E7C16929D652C1AC3AA39B59205F3E399F2E07E08D917D6130B1AFB X-Mras: OK X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 94.100.181.179 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:112011 Archived-At: On Tue, Dec 27, 2016 at 01:29:47PM -0700, Don Woods wrote: > I am having a problem where paren matching is not working as desired, > and I am unable either to turn it off or to make it work correctly. > > The specific case where I'm having trouble is in PostScript mode, > when also in Overwrite mode. When I type a character that acts as a > close paren -- such as > or } -- the character is inserted instead of > overwriting the current char. Emacs briefly highlights the matching > open paren, or reports a mismatch, as the case may be, but does NOT > remove the char I was intending to overwrite. > > Since I don't especially need the paren highlighting in my current > editing, most of my attempts to work around this bug have involved > trying to disable the paren-matching behavior. I have tried such > things as > Similar at GNU Emacs 24.5.1. Are you sure that the culprit is the (show-paren-mode) ? M-x describe-mode ps-mode said ... > ps-mode-r-gt ] ps-mode-r-angle } ps-mode-r-brace ... (defun ps-mode-r-brace () "Insert `}' and perform balance." (interactive) (insert "}") (ps-mode-r-balance "}")) So it seems like you need overwrite or disable or make something other with ps-mode-r-brace. For instance (add to .emacs): (defun my-ps-mode-r-brace () (interactive) (self-insert-command 1)) (add-hook 'ps-mode-hook (lambda () (local-set-key (kbd "}") 'my-ps-mode-r-brace)))