From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Zhiwei Chen Newsgroups: gmane.emacs.devel Subject: Re: Highlight current line when using gud Date: Sun, 04 Jul 2021 08:12:20 +0800 Message-ID: <874kdbhr8b.fsf@gmail.com> References: <46933061-DFBC-406C-8489-F3DC7EE770BA@kuaishou.com> <87sg0z8t5t.fsf@gnus.org> <6F39630A-1FF8-45DE-9E3B-D9E8BE906BD7@kuaishou.com> <83o8bnmqyo.fsf@gnu.org> <62662FDA-8D67-459B-8F03-662010FB96EB@kuaishou.com> <87y2aq1dhm.fsf@gnus.org> <87zgv5dh80.fsf@gmail.com> <87eechvv1p.fsf@gnus.org> <83eechj65u.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38852"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Lars Ingebrigtsen , chenzhiwei03@kuaishou.com, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Jul 04 03:13:06 2021 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 1lzqh0-0009tF-Bp for ged-emacs-devel@m.gmane-mx.org; Sun, 04 Jul 2021 03:13:06 +0200 Original-Received: from localhost ([::1]:55786 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lzqgy-0008D8-IR for ged-emacs-devel@m.gmane-mx.org; Sat, 03 Jul 2021 21:13:04 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42266) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lzpkL-0002xA-Lf for emacs-devel@gnu.org; Sat, 03 Jul 2021 20:12:29 -0400 Original-Received: from mail-pj1-x1032.google.com ([2607:f8b0:4864:20::1032]:37786) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lzpkJ-0005GG-OE; Sat, 03 Jul 2021 20:12:29 -0400 Original-Received: by mail-pj1-x1032.google.com with SMTP id 22-20020a17090a0c16b0290164a5354ad0so12171845pjs.2; Sat, 03 Jul 2021 17:12:25 -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=zl1AROU0rKPTyBb9gCHFH4G3Y8VPW0OdaQzBKvwgXKk=; b=Cvc34uutA4v+bhbEfgCB9wONE70Mt5MSVrggGcXeSTOat7yoehLyDhB204XeqRIbdj IZrQ8DuQFH30/QYF1lDFDsWbRUPzAA54lBFl+LRnzx/1/wJ1TwiB6qgEfrun2aEAtzIw msVI6kxMkM3rI8AkNuzBfH/F0f4x53X/5082M2ObRdXRJwp5163VAi9Yj3Kai/5Hgi9v yOFXRZc6NsGftKhN+pVfwllAH2yObAWyxbDvUzVwq9CwM6Wxr/herJuIzuCYHNR4o/gb q64T/U/PDzeZBtC4HR3wpuyxDNAuI+jIyPLc/4pAGd6VZo7H+ltCHkrtswfooXu3+z1D tc3w== 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=zl1AROU0rKPTyBb9gCHFH4G3Y8VPW0OdaQzBKvwgXKk=; b=HsyWJMxbtriBJGsBheqLYazOuHXSisghWty/7S9dXf1Oyqvaed0DRQE7dc5jxBxvcx 6CT1mF2+wBVmWYCVrWx8ivv1l++mL3ShP5cqhx/ezjJDfpXZCjpFSGyu+76cMu6U/FZE fv8JRmdXk2MTrS+i1OdWsFaO0/TEVybA7Thpwf5QK9RIW58A7luNcErX58AwIrXY3Zo6 Lf5F5ObjkkOtQdVXz/Y1GrbcotBqdl4OBWQPvwNWEgMYHRDLxmw+KPUfp1vmGUzrOsnj P315Ma5CsgWd5Q3xJ5gpPrx6xn7JBO4MDPXnThLN8O5pMgyNYit3p8us5rWSBIkBJxq/ uV2A== X-Gm-Message-State: AOAM532w3eof8wR9L1dt8Z2WouzGq31KI6Z0KeM+rBk+794sKUjxARXq S2aah8FNxqBcczks8vTA7C+QHMkshF5RP3gM+og= X-Google-Smtp-Source: ABdhPJwyGlfGf/KaqrWJUuQtDL34Mvds8h1PjDEmElZ0CBQ0AK2oI4nsthuDMkT9sESALAlfdLj5kg== X-Received: by 2002:a17:90a:8417:: with SMTP id j23mr3870919pjn.210.1625357544696; Sat, 03 Jul 2021 17:12:24 -0700 (PDT) Original-Received: from Youmu (192.69.92.236.16clouds.com. [192.69.92.236]) by smtp.gmail.com with ESMTPSA id u24sm8094623pfm.200.2021.07.03.17.12.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 03 Jul 2021 17:12:24 -0700 (PDT) In-Reply-To: <83eechj65u.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 02 Jul 2021 14:39:57 +0300") Received-SPF: pass client-ip=2607:f8b0:4864:20::1032; envelope-from=condy0919@gmail.com; helo=mail-pj1-x1032.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 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_ENVFROM_END_DIGIT=0.25, 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-Mailman-Approved-At: Sat, 03 Jul 2021 21:12:31 -0400 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:271119 Archived-At: Eli Zaretskii writes: >> From: Lars Ingebrigtsen >> Cc: Zhiwei Chen , Eli Zaretskii , >> "emacs-devel@gnu.org" >> Date: Fri, 02 Jul 2021 13:01:38 +0200 >> >> Zhiwei Chen writes: >> >> > Why do I introduce a new overlay in gud buffer? Because it's used to >> > show the line where the debugger stops at. The position of the gud >> > overlay is controlled by the debugger, not by users. So using >> > hl-line-mode in such a situation is not the proper way. >> >> Hm, I see... >> >> I rarely use gud, and I never use any line-based highlighting, so I >> don't really have any opinion about this. Anybody else? > > I think this should be an integral part of the overlay-arrow display, > not an independent add-on. IOW, I'd like to see it implemented via > new properties that can be put on variables which are members of > overlay-arrow-variable-list. > > Ok, let me see how to implement it. BTW, the manual[1] says overlay-arrow has nothing to do with overlays. [1]: https://www.gnu.org/software/emacs/manual/html_node/elisp/Overlay-Arrow.html -- Zhiwei Chen