From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "E.L.K." Newsgroups: gmane.emacs.help Subject: Re: Toggling the same key combination between two options Date: Sat, 13 Sep 2008 01:06:21 +0300 Message-ID: <20080912220621.GA13837@elkbook> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1221257129 15965 80.91.229.12 (12 Sep 2008 22:05:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 12 Sep 2008 22:05:29 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Sep 13 00:06:24 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 1KeGmK-00028R-37 for geh-help-gnu-emacs@m.gmane.org; Sat, 13 Sep 2008 00:06:12 +0200 Original-Received: from localhost ([127.0.0.1]:43653 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KeGlJ-0007La-Mj for geh-help-gnu-emacs@m.gmane.org; Fri, 12 Sep 2008 18:05:09 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KeGl0-0007IX-Mj for help-gnu-emacs@gnu.org; Fri, 12 Sep 2008 18:04:50 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KeGl0-0007Hv-5E for help-gnu-emacs@gnu.org; Fri, 12 Sep 2008 18:04:50 -0400 Original-Received: from [199.232.76.173] (port=49960 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KeGkz-0007Ha-IY for help-gnu-emacs@gnu.org; Fri, 12 Sep 2008 18:04:49 -0400 Original-Received: from ey-out-1920.google.com ([74.125.78.147]:44860) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KeGkz-0004HF-38 for help-gnu-emacs@gnu.org; Fri, 12 Sep 2008 18:04:49 -0400 Original-Received: by ey-out-1920.google.com with SMTP id 4so436632eyg.24 for ; Fri, 12 Sep 2008 15:04:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:subject :message-id:mail-followup-to:references:mime-version:content-type :content-disposition:content-transfer-encoding:in-reply-to :x-comment-to:x-useless-header; bh=V1+ihtY5W4KeENub8OtzOW4dW8xKz6U6A+8tReFtk30=; b=P44u6vfqEcNYqrDHyGyl05IJf//iNyvAGsPRWtjFcIcPLVOJllw+xQrTn5ichM4BJr Wnm/pl7UADDHl0KRJIIqDGWoc2rYLqqhaVfsFdC21ixnFiFpzXkYSagLC3XV7AAulgnd kvThhUWZD0+SqV4RGG4n8+PDLGbUBKaLa/fn4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:subject:message-id:mail-followup-to:references :mime-version:content-type:content-disposition :content-transfer-encoding:in-reply-to:x-comment-to:x-useless-header; b=uMeOLnZNhRhcpHMauF9ATsS54p3RxlcPmK8xMITasrmiMOq3XtUNDOOJ8hMXl+7k3t T3zN+nl1C1gzQkNwC8ZzVXRm7wzQkjIgqlREJdll890hPirUthHE8qUskZ6Gqp743tTu htiQVh+oMCi6Fp/sOZbpbcd/pwCdTPGEuWIqw= Original-Received: by 10.210.40.10 with SMTP id n10mr5805679ebn.33.1221257087532; Fri, 12 Sep 2008 15:04:47 -0700 (PDT) Original-Received: from localhost ( [91.187.11.231]) by mx.google.com with ESMTPS id m5sm4969716gve.3.2008.09.12.15.04.42 (version=SSLv3 cipher=RC4-MD5); Fri, 12 Sep 2008 15:04:46 -0700 (PDT) Mail-Followup-To: help-gnu-emacs@gnu.org Content-Disposition: inline In-Reply-To: X-Comment-To: "E.L.K." X-Useless-Header: All your base are belong to us!!! X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) 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:57494 Archived-At: > 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? IIRC, there is function, called gdb-toggle-breakpoint, which can be what you need. But it will work only with gdb, I think. -- E.L.K. Saturday, 13 of September, 2008, 1:04 عظ. C_U_L8r!