From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: =?UTF-8?Q?Cl=c3=a9ment_Pit-Claudel?= Newsgroups: gmane.emacs.devel Subject: Re: next-error use cases Date: Thu, 21 May 2020 21:31:15 -0400 Message-ID: References: <87zi2esn7l.fsf@mail.linkov.net> <87r2nknpaz.fsf@mail.linkov.net> <83y3hr5z35.fsf@gnu.org> <87d0z2anv8.fsf@mail.linkov.net> <871rnfbmll.fsf@mail.linkov.net> <69a40b7c-2a00-1c24-452f-b62d414e04bf@yandex.ru> <87sgft110l.fsf@t510.orion.oneofus.la> <7e53d4be-30b8-ead5-bd3d-8ee15c81f6d6@yandex.ru> <87v9kprli7.fsf@mail.linkov.net> <2f15a0bb-7eeb-2ab7-a203-d360576a5649@yandex.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="109946"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri May 22 03:32:16 2020 Return-path: Envelope-to: ged-emacs-devel@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 1jbwXl-000SSr-Bp for ged-emacs-devel@m.gmane-mx.org; Fri, 22 May 2020 03:32:13 +0200 Original-Received: from localhost ([::1]:52462 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jbwXk-0001Yc-Cy for ged-emacs-devel@m.gmane-mx.org; Thu, 21 May 2020 21:32:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44118) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jbwWv-00015g-4r for emacs-devel@gnu.org; Thu, 21 May 2020 21:31:21 -0400 Original-Received: from mail-qk1-x72f.google.com ([2607:f8b0:4864:20::72f]:36386) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jbwWt-0002Mm-GL for emacs-devel@gnu.org; Thu, 21 May 2020 21:31:20 -0400 Original-Received: by mail-qk1-x72f.google.com with SMTP id y22so9328107qki.3 for ; Thu, 21 May 2020 18:31:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=pfh3QgnR6YKzfRHUO6Wp4RbMyGCdCEVebxXJQZGr1O0=; b=JMoBPy/4GR4SVJ7SNWEPqbqch9AluPQJJcbMRs0I8g7GZwg5OjGvEhFnhTd/MgpcLt OmKkPfhwzgAeMrA5zotaTdbOqc7lsLcO3A98moARQ50OY/VQQ06J+tsfCIIDIZAHWH5d CqNb71U3Vh27UYQVpjy2TGAzRaHa3mXRhWNndDJSbwR+jiIwag174mm6/vEDtoygtcUU FcF/tvkhKo+J87tutAZLN2IoBT2BJzY0IRg1RM+wCRLLDbW2k6/TZp/8z1RmqSP/X4mc GZ2dY34oGiIeWhvRe/YoY19Mr8FGnXPQlTCXAPbR2Bj6s5Qmgv2ibedyvMUtpkqbGOdq HuXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=pfh3QgnR6YKzfRHUO6Wp4RbMyGCdCEVebxXJQZGr1O0=; b=RCNQlkoI6TCbOdDD8UPtAbfNKX5A8CnMqFe9XhEpjJyw+EnvAWi08O7/5fnq5ObpCK hIkyv4YWAsi4ZOSEYAH7Q4fvv9SWs/fRSd5fPM689eb0oYSDqbx1gQSIuFEYiSAin2Rs qSe2id96rrhtMiwndQZt2F1kmek/U9uHQBqviG8sj0h5eOzi8V9poLqtbtbWGF62bZkc BG60NG/pkoIIGb1Xf9JtAGPkucUQatqa4wR2g5anO9AX3L2b9l1iaRsmT2pxO6Ib/WR/ Wt/2KXxONda2HOkK6k5ITrYLHzNDFaZZ0HmA8uwWyAY1y/Al9qURDzRTf4vI9nFXsXHa NNOg== X-Gm-Message-State: AOAM533S6fgm/QE3k+1fR+IgU6rt7bgB++YUheCX+bGlfnfFYhmk09mu kh4L7nn4+rp//c4XC3dqqc6u4pHS X-Google-Smtp-Source: ABdhPJx137IbOOdLgbRKCIb6gU8HJgi1DQIjLOh1PPvhpzWAGT4kYRNp8GEmR8q0YV4tCIZJjMl6JA== X-Received: by 2002:a37:6658:: with SMTP id a85mr12878121qkc.493.1590111078088; Thu, 21 May 2020 18:31:18 -0700 (PDT) Original-Received: from ?IPv6:2601:184:4180:66e7:bda5:ac5c:1de0:b677? ([2601:184:4180:66e7:bda5:ac5c:1de0:b677]) by smtp.googlemail.com with ESMTPSA id m6sm6130905qkc.4.2020.05.21.18.31.16 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 21 May 2020 18:31:17 -0700 (PDT) In-Reply-To: <2f15a0bb-7eeb-2ab7-a203-d360576a5649@yandex.ru> Content-Language: en-GB Received-SPF: pass client-ip=2607:f8b0:4864:20::72f; envelope-from=cpitclaudel@gmail.com; helo=mail-qk1-x72f.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_PASS=-0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:251192 Archived-At: On 21/05/2020 18.49, Dmitry Gutov wrote: > On 22.05.2020 01:06, Juri Linkov wrote: >>> A binding for flymake-show-diagnostics-buffer in goto-map? >> Good idea, not only for flymake, but for all next-error capable buffers: >> a keybinding in goto-map to show the buffer with a list of errors/matches. >> For example, the user is navigating using 'M-g M-n' when the next-errors buffer >> is not visible, then wants to see all errors/matches, so the user needs to type >> some M-g key to show it. > > So we'll have 'M-g l' to pop up the current 'next-error-last-buffer'. > > And 'C-c ! l' to pop Flymake's diagnostics buffer specifically (and change next-error-last-buffer's value appropriately). 'C-c ! n' and 'C-c ! p' could work along the same idea. Does this mean that Flycheck should override M-g l too, or will that work automatically (how will M-g l know which one to pick?) These are the relevant bits of Flycheck's map, I think: (define-key map "c" #'flycheck-buffer) (define-key map "C" #'flycheck-clear) (define-key map "n" #'flycheck-next-error) (define-key map "p" #'flycheck-previous-error) (define-key map "l" #'flycheck-list-errors) (define-key map (kbd "C-w") #'flycheck-copy-errors-as-kill) (define-key map "s" #'flycheck-select-checker) (define-key map "h" #'flycheck-display-error-at-point) (define-key map "H" #'display-local-help)