From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jeremie Juste Newsgroups: gmane.emacs.help Subject: Re: Deleting a word using keybinding Date: Thu, 15 Oct 2020 13:10:58 +0200 Message-ID: <87blh3g2wt.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9451"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Help Gnu Emacs To: Christopher Dimech Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Oct 15 13:18:26 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 1kT1H8-0002Nd-KW for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 15 Oct 2020 13:18:26 +0200 Original-Received: from localhost ([::1]:51430 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kT1H7-0005PA-A2 for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 15 Oct 2020 07:18:25 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42384) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kT1A2-0001cJ-Ll for help-gnu-emacs@gnu.org; Thu, 15 Oct 2020 07:11:06 -0400 Original-Received: from mail-wm1-x32a.google.com ([2a00:1450:4864:20::32a]:38315) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kT19z-0005zZ-HJ for help-gnu-emacs@gnu.org; Thu, 15 Oct 2020 07:11:06 -0400 Original-Received: by mail-wm1-x32a.google.com with SMTP id b127so3140759wmb.3 for ; Thu, 15 Oct 2020 04:11:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=LZIryYGbL+eOt3FoziM1gd0CW7q1kNOeNfg80e9AgB0=; b=rlAhPXUoxyAaxAi2uUkc3mqpB2I4IsMut1Fv0QG3yvxtQG2gAo6lmK40S65RL+HlXW b9tT92KaUq8WMZ/aRqiF/X7JY+LYDUqYA2b1FyOjfZOCr6QRoTyAA9+Hvm5LSRk+J8Eo tMLCA4Mqdx8SYc1x5Sb4FvZlLG0Xv4hY4GonRq8nU2f27NhFKCRwAtcuK9GSl1tBGpYL lrdLeMPCxZU9Axhr0N5+uKTIX06pKjaOZWzrW/JcQCTGLox07a27MAMUOwFIbdY08zjk pfBFISYga1VTa+Twit4xZvWv+ZDT2Rt31EVxC+qbDqmhv3d5604EhCbKK/kP/EhD7Ins 1xqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=LZIryYGbL+eOt3FoziM1gd0CW7q1kNOeNfg80e9AgB0=; b=b1sms/pnFd6f0ZE4UZJsRwPEHYZvnte6PlTvThG1DBZJj1LP44pIOPJRKgV+/wnjtT kYyTchWLrHd8q9JQ/YFAhzxxj1vT2yMb5r1Qj1TW5/uPkuxrilM2sxLNjqeGMSCfVCVW ZT7sPjXxZHaLRQ7JVizXlzojBUTdf1Jj330OIBT0K4/UouDCZutTokwQZo7MLShcQFb1 mbQttJG1cQOGbUN4e1l7gZyFHUb6iALGRKyz+mnZZk59DYPzDxcbjwMqv2ctnu4imYxi GFad3ZcHcoCvhZ+Ah5+KzzzR/waCDwRVaY9hPAaoLliXqmrbrNpBbu9WkDoPr+page2k 8TUw== X-Gm-Message-State: AOAM530LIevEcpUpJRFYRJfmte7tGgTNtQefBH6z51koY3sTOohxiysm Pfn1uYZSgOWtSacVobY8kbhViTNBBs0= X-Google-Smtp-Source: ABdhPJxgJsMP4gd4dm/KifPyK9HScJulCFxva6yYS7UcAVPpoqcjomQpQoTRPCgNMQZsORM0sPBX7g== X-Received: by 2002:a1c:f417:: with SMTP id z23mr3330927wma.57.1602760260485; Thu, 15 Oct 2020 04:11:00 -0700 (PDT) Original-Received: from freegnu (24.183.22.109.rev.sfr.net. [109.22.183.24]) by smtp.gmail.com with ESMTPSA id x6sm4122532wmb.17.2020.10.15.04.10.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Oct 2020 04:10:59 -0700 (PDT) In-Reply-To: (Christopher Dimech's message of "Thu, 15 Oct 2020 12:26:59 +0200") Received-SPF: pass client-ip=2a00:1450:4864:20::32a; envelope-from=jeremiejuste@gmail.com; helo=mail-wm1-x32a.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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:124464 Archived-At: Hello, To investigate I usually separate the problem into two parts Frist the key binding and second the function. The function test work as you expect when calling M-x test (defun test () (interactive) (progn (backward-word) (kill-word 1)) ) (global-set-key (kbd "C-") 'test) For the keybinding I guess it will depend on the mode you are in. As tab is intensively used so a minor mode might take control of it if I understand correctly. A way to test it would be to test the binding in fundamental-mode. HTH, Jeremie