From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Mauro Aranda Newsgroups: gmane.emacs.help Subject: Re: Disable self-insert-command Date: Fri, 17 May 2019 09:54:47 -0300 Message-ID: References: <87lfz55otd.fsf@fastmail.fm> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="92699"; mail-complaints-to="usenet@blaine.gmane.org" Cc: Joost Kremers , help-gnu-emacs To: Noam Postavsky Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri May 17 14:55:28 2019 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hRcOV-000Ny6-VV for geh-help-gnu-emacs@m.gmane.org; Fri, 17 May 2019 14:55:28 +0200 Original-Received: from localhost ([127.0.0.1]:48212 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hRcOU-0006qN-Um for geh-help-gnu-emacs@m.gmane.org; Fri, 17 May 2019 08:55:26 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:51761) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hRcOC-0006k0-4C for help-gnu-emacs@gnu.org; Fri, 17 May 2019 08:55:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hRcO8-0005pa-JA for help-gnu-emacs@gnu.org; Fri, 17 May 2019 08:55:06 -0400 Original-Received: from mail-lf1-x136.google.com ([2a00:1450:4864:20::136]:37493) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hRcO7-0005WH-4t for help-gnu-emacs@gnu.org; Fri, 17 May 2019 08:55:04 -0400 Original-Received: by mail-lf1-x136.google.com with SMTP id q17so5269400lfo.4 for ; Fri, 17 May 2019 05:55:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=acQ7UF9hz1bzorjm3p2TaSFltAJaK4Oi7GPeeO38zFE=; b=gPNIIrshQbYBksrtDXGau6U4N8vfSeVQP33Janym4ztB+aHXPwaZzbvO88bn74kGjr gHJf3Xs7/zkMKjFQm55O37tn0UTxWAB9qmW7FECB5rM21FI0tCauo6Eklr+qz6sdbl0n 3uRqg0xmESLNP1FnY7Ug9uVLDuWom5P300HPgJAF+EzGSB9W7J0FDA7WcK0mA8LZtlAq JzNuwjH+usMQ0nPUs+dD2CNTC0CjewoN0t7kb+zYEUnl7ZQQO6rdzLmnyP3nQ03KrP8l ESEr1jQiONFpCrN9VpB8Ea0bldobJ/XnCKMcijSQ0/GuI1FbuJO0wlsewNTAjbHtqgWb 2WRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=acQ7UF9hz1bzorjm3p2TaSFltAJaK4Oi7GPeeO38zFE=; b=UHYb8xEedXzrbH+Diz0ILmOiq0uILOqFmIT5zhYINCqNBqULWE+jrrBsixfLZR7DVM L8uxGnFzFBiIT1slSs6vCwF6OhQtMCXXjZLrxNrqNMOjGsMsV10fxmfRAXYzeD+uAh4x Cv+y6JVYov2u4BPr5D4hpWx9DNbpgmCO+naka7j4I7MpbOkIbkres37BV5cZ7kQ6BOQC wY/VwGcCAxwRmhmLu45vNofWLTFegq3HVujlHHHTuTIahWiZNZGd3ImrPdLhRYJUzF6R LrB7YNqiuOrHTNe1GYGp3lOYZ/2PIKMIV+JWnxTa6weTjAWOrkzS+l6dhsR1ZmyIu1QH pl1A== X-Gm-Message-State: APjAAAV5f//cXQUpRhPHesTSXrCd1X/QGJh3nb2/qL45NpCgp9azheIk 71HxEte3hxs/6DoBgEhUTiLgjFcQajHN/i2i3kM= X-Google-Smtp-Source: APXvYqzxWA0CiO2PYeUxOsMO7uMAYAnfMt/bToHIDE6Rpphx8VMXdF4c8RYX3SMKZZCkM53QhjYE6fnh3gSW/TBZm58= X-Received: by 2002:ac2:5612:: with SMTP id v18mr12599026lfd.15.1558097699518; Fri, 17 May 2019 05:54:59 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::136 X-Content-Filtered-By: Mailman/MimeDel 2.1.21 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:120472 Archived-At: Noam Postavsky writes: > On Fri, 17 May 2019 at 07:13, Joost Kremers wrote: > >> I've been trying to figure out if there's a straightforward way >> to disable all self-inserting characters through a minor mode, > >> Any ideas? Anything I'm overlooking? > > (define-key my-minor-mode-map [remap self-insert-command] 'ignore) Maybe suppress-keymap can help here? It does something similar, although it remaps to 'undefined rather than 'ignore.