From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: etay.meiri@gmail.com Newsgroups: gmane.emacs.help Subject: Toggling the same key combination between two options Date: Thu, 11 Sep 2008 11:15:10 -0700 (PDT) Organization: http://groups.google.com Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1221158664 31361 80.91.229.12 (11 Sep 2008 18:44:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 11 Sep 2008 18:44: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 Thu Sep 11 20:45:19 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Kdr9o-0007Jc-1w for geh-help-gnu-emacs@m.gmane.org; Thu, 11 Sep 2008 20:44:44 +0200 Original-Received: from localhost ([127.0.0.1]:53511 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kdr8n-0007ki-OO for geh-help-gnu-emacs@m.gmane.org; Thu, 11 Sep 2008 14:43:41 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!t54g2000hsg.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 12 Original-NNTP-Posting-Host: 217.132.131.2 Original-X-Trace: posting.google.com 1221156911 12602 127.0.0.1 (11 Sep 2008 18:15:11 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Thu, 11 Sep 2008 18:15:11 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: t54g2000hsg.googlegroups.com; posting-host=217.132.131.2; posting-account=aYPwpgoAAABJuXxIZDkDtoDErg2phi4C User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.1) Gecko/2008071615 Fedora/3.0.1-1.fc9 Firefox/3.0.1,gzip(gfe),gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:162091 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:57434 Archived-At: Hi, I have F8 and F9 mapped to gud-remove and gud-break (respectively) in gud-mode. I'd like to mimic the behaviour of Visual Studio where F9 toggles between setting and removing the breakpoint. Is it possible to configure emacs so that it will toggle between the two bindings every time the key is pressed? Thanks a lot, -Etay