From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Skip Montanaro Newsgroups: gmane.emacs.help Subject: Re: How not to share `local-set-key' with all other buffers in the same major mode? Date: Fri, 2 Apr 2021 07:44:09 -0500 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40616"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Help GNU Emacs To: Jean Louis Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Apr 02 14:44:47 2021 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 1lSJAM-000AQZ-M8 for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 02 Apr 2021 14:44:46 +0200 Original-Received: from localhost ([::1]:53452 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lSJAL-00049V-IZ for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 02 Apr 2021 08:44:45 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38838) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lSJ9z-00049D-Pc for help-gnu-emacs@gnu.org; Fri, 02 Apr 2021 08:44:23 -0400 Original-Received: from mail-yb1-xb30.google.com ([2607:f8b0:4864:20::b30]:43868) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lSJ9y-0001kp-6k for help-gnu-emacs@gnu.org; Fri, 02 Apr 2021 08:44:23 -0400 Original-Received: by mail-yb1-xb30.google.com with SMTP id o66so4989197ybg.10 for ; Fri, 02 Apr 2021 05:44:20 -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=2Z1LoI1IA8Cksl9zeqxSVACkWo2u1JKMVWAsdaupKu0=; b=cyFJ7HgfPgbyzyVdt+c7SfjEi+jy+lbI09nJsFNW8kh2+TlmMe6ritONh/1n4VIgJX v4AS7TFlJgeE73ma3qJ5QDEiGdVSukofzcPJeG51ZhsUlnGu0E8IC8Zfb/SKcFYFrSXF seIXchfIvffY3AAFPLVQXAL5P5W/R/LzDP1VyHVshOtW49N/xtLeC3zpbkyU3Oj0WYxy y4Py3eQytLqPJWCjtxlRUGOdfRL38vOSmWxwvTgSUyc5NQNHgufvJk2tarn5FCVvpjF6 Vb/RWDbqLOIbqVrIUX4TL3p6yz9cQTUBUqau+8GCtbLX7CkfioM06R8ZQuvidN1oGGYP bMXQ== 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=2Z1LoI1IA8Cksl9zeqxSVACkWo2u1JKMVWAsdaupKu0=; b=Fu/mPZ8Fc4ZcZlXTUbr2toly94jlFNVmgQaxRWTTKsAheXRlnWuuyo+t91ZkfDyW2F e0TNHu+ZtPQ6Z1YY+D+zcrxaByxiT2PGsTy1zIgl3W/4jOxM5wlezs4AcGr6WZhL3HdX 71O5s/tja7cNXAKNWJDWtPhFDYliYLvxdQJmddlR+5rDm224UUxzpqkkq+z1V+Z06QXo h1hW0d0KhN0lM7n9KE1uFjRZxpLMQw5TjVjgyKbRZcctNZTpN+IG7rgmoyeXQ94PdFYT YGjpQCVt9tHM9F9zty8Aywk7Jh5+qNxuWi7ddaH243cxox2LH2uMuO33vuWBjHBcWba2 wtFA== X-Gm-Message-State: AOAM530JmLfVf0DnCzWvm/Mrb3EsVhcFyow99kMv457wDyqOvwWv+I7v upPEGNdeQ4/ZxjZShF/lGTBsIL8pCCXM5cwEaxP7Ajw= X-Google-Smtp-Source: ABdhPJwgI2J+ytwR0AyDH61AKY956Q74qdwzrQDe0/teVBd2rsCLlmGAJM7zpLeviAeYCFiAmu1taI8J3meJIyRxgHc= X-Received: by 2002:a25:b60a:: with SMTP id r10mr18852358ybj.494.1617367460048; Fri, 02 Apr 2021 05:44:20 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::b30; envelope-from=skip.montanaro@gmail.com; helo=mail-yb1-xb30.google.com 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_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no 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:128806 Archived-At: I would like to use editing modes as temporary view modes where I > would like to set a key like "q" or "i" temporarily, like this for > example: > > (local-set-key "q" 'quit-window) > > And I use it in read only mode. > Would the minor view-mode do what you want? https://www.gnu.org/software/emacs/manual/html_node/emacs/View-Mode.html Skip >