From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Christian Seberino Newsgroups: gmane.emacs.help Subject: trouble overwriting C-r in a shell (term-mode) Date: Thu, 28 May 2020 11:30:41 -0500 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="24484"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu May 28 18:31:32 2020 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jeLRL-0006HE-MA for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 28 May 2020 18:31:31 +0200 Original-Received: from localhost ([::1]:36606 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jeLRK-0005Dh-Lz for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 28 May 2020 12:31:30 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41346) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jeLQl-0005DN-0h for help-gnu-emacs@gnu.org; Thu, 28 May 2020 12:30:55 -0400 Original-Received: from mail-qv1-xf34.google.com ([2607:f8b0:4864:20::f34]:42347) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jeLQj-0001iR-Ce for help-gnu-emacs@gnu.org; Thu, 28 May 2020 12:30:54 -0400 Original-Received: by mail-qv1-xf34.google.com with SMTP id l17so2843923qvd.9 for ; Thu, 28 May 2020 09:30:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=VoPIo+KPUHcWYb6sHfjRcFWXHB1++FqTH6zOJ9/V3yg=; b=Mr1WMbTXAYk/figaQN/ebE1KNiVw5qqongHk32/bz6DfZQ8HzSEBfVh8TCGH0PoMTD u3XAj+MtIHPuapcTVMporvCOIJO2ya0UG93oofpMKLjGM8YD4+U52dlKGQxac9Mi2Z4z qN3VI3fyt3loLF1VT+P/9f9h9Btlbmbo9LSNx9b/3q+06ICJnVrWwjRlcy0EwqhtYY0I yZCx+80JMA9UxIESbnYFEnJ5p2zBSIp67FLmpQYMSHo/jYucTgRPHaTGXcIWd0SdVNC0 BdfjG/OD0Au3HI36OLFkSkCdMkYCezfkoAIcREudEskiSjgPKQNTNzpydYLFEpm+VG6/ mPsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=VoPIo+KPUHcWYb6sHfjRcFWXHB1++FqTH6zOJ9/V3yg=; b=qr384IKTSM5OrYkD07X4rsODg1ZZ//mz3Trzh/Tq1wgqQc/rDuoT8Nphv+Si6hCsAP VXfb2wjlMHLfUAhnGXPFMw64D4Bh2hsdZCLQC60GOhcEKB3h6hMcDhrmzGo7/4H+nCPw Sm2QhDYL2dWONm71qTt0CFqLHSmBP/47IoNToN7vXw04KCWWLRy5pNLfu0+1cg0yYCcV LalbB0by1Uk2pYedIOodJhF47FGPlcpSMMXYtc9AEH2IJp6GizTQMb/+u/ejb7A3EILp cQ5p9Q/LB3wXhJA9LfRVKFyq0G2hT+YSXISgE/tbPvojKJdTXEJUIIM05XrDwjCeR+Qf GPJA== X-Gm-Message-State: AOAM531/NUhrakzG/Nes0T4uZzB18+T0l7lOvGwBUMxAczdOXPGY4NFH UwLpcoSEr0ioSnSZpfEV5LLDrjvKHCTZiNoYHKqSs6DYe54= X-Google-Smtp-Source: ABdhPJwQWVo7QaFrCGQCa3w2ZeId0pOfuyYcJYZt6xqkZLTGlW7v7LeICXmNfb6126b0mugESnVzQN/2VfmiuoplfBQ= X-Received: by 2002:a0c:e844:: with SMTP id l4mr3746069qvo.113.1590683451407; Thu, 28 May 2020 09:30:51 -0700 (PDT) Received-SPF: pass client-ip=2607:f8b0:4864:20::f34; envelope-from=cseberino@gmail.com; helo=mail-qv1-xf34.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:123150 Archived-At: I'm trying to overwrite C-r in a shell and it isn't working. Any help greatly appreciated. I tried adding a term-mode hook as follows.... (add-hook 'term-mode-hook '(lambda () (interactive) (global-set-key (kbd "C-r") (lambda () (interactive) (if (get-buffer "*Open Recent*") (kill-buffer "*Open Recent*")) (recentf-open-files))))) Thanks! Chris