From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.devel Subject: Re: Little improvements on pulse.el Date: Wed, 10 Mar 2021 05:41:45 -0800 Message-ID: References: <83ft13p5ow.fsf@gnu.org> 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="823"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Eli Zaretskii , Gabriel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Mar 10 14:43:07 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 1lJz7D-00006D-9M for ged-emacs-devel@m.gmane-mx.org; Wed, 10 Mar 2021 14:43:07 +0100 Original-Received: from localhost ([::1]:39216 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lJz7C-0002Zm-AY for ged-emacs-devel@m.gmane-mx.org; Wed, 10 Mar 2021 08:43:06 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52004) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lJz5z-0001gZ-2O for emacs-devel@gnu.org; Wed, 10 Mar 2021 08:41:51 -0500 Original-Received: from mail-pg1-x52e.google.com ([2607:f8b0:4864:20::52e]:38221) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lJz5w-00063G-Bb; Wed, 10 Mar 2021 08:41:50 -0500 Original-Received: by mail-pg1-x52e.google.com with SMTP id e6so11436281pgk.5; Wed, 10 Mar 2021 05:41:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:in-reply-to:references:mime-version:date:message-id:subject:to :cc; bh=J/7EwTDFgElwgJ22t2MAtm8rAvf3n0n+s/bUxG0KmAs=; b=mA7EkkNHu8dhyeFKeJNG3n9p0SET9mFwu09m/HIk1A0s8pNw3WGojG5QT1LWYq8Z3h +be4wfxIZIzWQLH8HCSNIF2nMLBWtd37i/4F7AyC9g/Xa2rFymKzhfKifl1qV+AXeXxX oF0V1gwpZlFHY0JKfSUNMS3AxxbBIW5XnIF6wW6r9VZRJmpjAgPTw9uHgrbjWfnRQ9De GE2amGiF/AcTHmgEYLD5Z+OVTdTZoK9nIz7dPwSY3k6gMt/VJBAY0CJFpt7nzZITJX5I 2aUHbGrGcHC5ZogcWzvWWgQ+VNnewdPhSuu+gToMWaJGa/pfmfRictrRsZoMv9bSslPZ 84yQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:in-reply-to:references:mime-version:date :message-id:subject:to:cc; bh=J/7EwTDFgElwgJ22t2MAtm8rAvf3n0n+s/bUxG0KmAs=; b=sTWNS0MDe+KBOgepbo8oiIFbN8Of44kY6xV95HBjV4S8JIvEX1EcuVU5Zrmj0M5l4e R/2rA1bGGPPXZh+Oa60M+KpFNI994qtdxV34fNyXKlE8jr8xlc+GPK+7VgNjxpjat/a0 LJCU1GYPKK3mZKMSVqphXe+e4yreOSDVSmDj89DiIwxGIYOIaGE03gQZ9GMi//f8OFl3 YBc/R16uACo8H1j4xSK97qMGaUyM+mGKvpnQnPVinRiAhAcSs0GJK8D75YPDJW5IFt7U FPuvssjiVo7729sksWhZo7r81eR5BbbYThw6YJ2yfS2tCiLQZwZUWBcvOD5FBVEJWuDU BzSg== X-Gm-Message-State: AOAM531Cjz0A+ALXaN25EMyFscgbdkwCAM6OHjoB9qfyS9er7/xxgmrP llMCZ+M7wnRW6Oev/UjDn/37hAsxpCE0FBBxu2k7ot/28IU= X-Google-Smtp-Source: ABdhPJy0G3McAYktwBnYTlgneCFFUEA+DgSJWnr7V06SbzvVUrhX61WDHM1kVK0SI03wnn6/IYlbIAtDmN88nz/ZM9U= X-Received: by 2002:a63:ed02:: with SMTP id d2mr2909671pgi.67.1615383705831; Wed, 10 Mar 2021 05:41:45 -0800 (PST) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Wed, 10 Mar 2021 05:41:45 -0800 In-Reply-To: <83ft13p5ow.fsf@gnu.org> Received-SPF: pass client-ip=2607:f8b0:4864:20::52e; envelope-from=stefankangas@gmail.com; helo=mail-pg1-x52e.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, 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: 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:266277 Archived-At: Eli Zaretskii writes: >> 2. The name and the docstring mention the use with hooks, but would be >> nice to use with advices as well. For example, to highlight the current >> line when the cursor, buffer or window changes: [...] > > I'd prefer not to use advices for such a simple job. For example, how > about defining a new hook, which will receive the argument(s) you want > to pass it? Besides the implementation details, how about packing this up in a global minor mode, like `pulse-change-window-mode' or something? I could see myself using something like that.