GNU bug report logs - #62988
30.0.50; Add highlight line-or-region command to pulse.el

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: wishlist; Reported by: Gabriel <gabriel376@HIDDEN>; dated Fri, 21 Apr 2023 06:11:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 62988 <at> debbugs.gnu.org:


Received: (at 62988) by debbugs.gnu.org; 5 Sep 2023 16:24:30 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Sep 05 12:24:29 2023
Received: from localhost ([127.0.0.1]:58215 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qdYqr-0005Qp-GQ
	for submit <at> debbugs.gnu.org; Tue, 05 Sep 2023 12:24:29 -0400
Received: from mail-lf1-x135.google.com ([2a00:1450:4864:20::135]:48194)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <stefankangas@HIDDEN>) id 1qdYqo-0005QZ-45
 for 62988 <at> debbugs.gnu.org; Tue, 05 Sep 2023 12:24:28 -0400
Received: by mail-lf1-x135.google.com with SMTP id
 2adb3069b0e04-500b0f06136so4763756e87.0
 for <62988 <at> debbugs.gnu.org>; Tue, 05 Sep 2023 09:24:25 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20221208; t=1693931059; x=1694535859; darn=debbugs.gnu.org;
 h=cc:to:subject:message-id:date:mime-version:references:in-reply-to
 :from:from:to:cc:subject:date:message-id:reply-to;
 bh=vWh247LIMAu8v/VduAGScBEwVeAkF9t88twc4o4Kk40=;
 b=fiGrO3S23pG5PUpzyB3/cwR25Y29iZbY0DSyjvzgRrmVUM8y1sGVA6SBdGp9MGYKs8
 OS4YXNX1mlqM1G7TCN7hZqE70RNk1gbIbysOtJL2JI4l1YNP8JFH0HhX/V2sTWt2rkgc
 av9ARlfIgydRH4XypxN09uSSmWBdm9BUxkliitSk5/YQK2zhLP1q3A+WNX7WX37/Li7F
 epQqtHlsudJi1Ul79XtmQxo1cxAc3Q4wSp6rgGRWUaZPRwJv5dK3Tv4RK9XNovsXuEmg
 NaNZj57Zr814jk16Z5flyNXoDrCdER1ZytdaO3y8HvFICFqODh3ADyPqzwQreEcggCgq
 x50g==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20221208; t=1693931059; x=1694535859;
 h=cc:to:subject:message-id:date:mime-version:references:in-reply-to
 :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
 bh=vWh247LIMAu8v/VduAGScBEwVeAkF9t88twc4o4Kk40=;
 b=W0+Vcw6Jl2J9JlDSEvZzkD+6AcyvYtOhNEiTv0jTTawJ1JBr/hFQYvXIWcx/ltVm47
 B12Yd1pwMjylda786EM47ucGVzoHkcg3len60cbYOch0wen5dW7RfQbiQQeOTODOIgHk
 iLVWO9ILw64ZDFdnJgnwzT0blDr0ufSSK9PDJBQJ9iENHAYy+kucms+zxve/kqjjc81A
 anE0G5kXJy/RUJqEOgXQPgKj6rHQvvyjPWgzlNldOK/EoC/xM421QBxfHpguEIWMfk/a
 tH8os1mMYoemCJiVKoqJ6R816x0AeWZdQSafW+Yt/kfkrdOM6HSguUZsqFeDBt1iLbhy
 /2fw==
X-Gm-Message-State: AOJu0Yy3/Cdyy3gzXzxQ8SaMqCgyMd19JHzOj15uJ08Tg1SWbUNv/vIi
 knPt6BfeddeR8khpQCRisGVveG9keY5MWTHp30c=
X-Google-Smtp-Source: AGHT+IGt3Or8jWfG3bOzMnCg40OZV2jIJBNt8svWtaAw4LFgicKqgotsXHFgoLfOqznxZXofEgk/iZNtFL6NZrp7CBc=
X-Received: by 2002:a05:6512:3454:b0:500:75f1:c22e with SMTP id
 j20-20020a056512345400b0050075f1c22emr228657lfr.40.1693931058878; Tue, 05 Sep
 2023 09:24:18 -0700 (PDT)
Received: from 753933720722 named unknown by gmailapi.google.com with
 HTTPREST; Tue, 5 Sep 2023 09:24:18 -0700
From: Stefan Kangas <stefankangas@HIDDEN>
In-Reply-To: <PH8PR19MB7070793A676262112DC66AEA8B609@HIDDEN>
 (Gabriel's message of "Fri, 21 Apr 2023 03:04:49 -0300")
References: <PH8PR19MB7070793A676262112DC66AEA8B609@HIDDEN>
MIME-Version: 1.0
Date: Tue, 5 Sep 2023 09:24:18 -0700
Message-ID: <CADwFkmm3OY7VT5GJCSVv9a=FmJsYcSaGyKok4w7VpmMHZRY92g@HIDDEN>
Subject: Re: bug#62988: 30.0.50;
 Add highlight line-or-region command to pulse.el
To: Gabriel <gabriel376@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 62988
Cc: 62988 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Gabriel <gabriel376@HIDDEN> writes:

> My suggestion is to add a new command (i.e. an interactive function) to
> pulse.el to highlight the current line or region.  The basic functions
> already exist, but no command is provided.  This command is useful, for
> example, in videos, demos or pair-programming sessions where the user
> wish to highlight the current line or region for the audience.
>
> Although pulse.el is part of CEDET, it provides general-purpose
> functions not coupled to CEDET.

Indeed.  I guess this is only in the lisp/cedet for hysterical raisins.

> Example: apply patch and bind the new command to F1 key
>
> (keymap-set global-map
>             "<f1>"
>             #'pulse-momentary-highlight-line-or-region)

Your patch and the feature makes sense to me, and I guess some users
might want it.  I think it should be called out in NEWS, and then it can
go in.

> ============================================================
>
>>From 30681b98fed3e90a653a741a644c94ee4f89a719 Mon Sep 17 00:00:00 2001
> From: Gabriel do Nascimento Ribeiro <gabriel376@HIDDEN>
> Date: Fri, 21 Apr 2023 02:51:47 -0300
> Subject: [PATCH 1/1] Add command to highlight line or region to pulse.el
>
> * lisp/cedet/pulse.el
> (pulse-momentary-highlight-line-or-region): New command.
> ---
>  lisp/cedet/pulse.el | 8 ++++++++
>  1 file changed, 8 insertions(+)
>
> diff --git a/lisp/cedet/pulse.el b/lisp/cedet/pulse.el
> index 37b41fbe8c3..c76668152f7 100644
> --- a/lisp/cedet/pulse.el
> +++ b/lisp/cedet/pulse.el
> @@ -215,6 +215,14 @@ pulse-momentary-highlight-region
>      (overlay-put o 'pulse-delete t)
>      (pulse-momentary-highlight-overlay o face)))
>
> +;;;###autoload
> +(defun pulse-momentary-highlight-line-or-region ()
> +  "Highlight current region, when active, or current line, otherwise."
> +  (interactive)
> +  (if (use-region-p)
> +      (pulse-momentary-highlight-region (region-beginning) (region-end))
> +    (pulse-momentary-highlight-one-line)))
> +
>  ;;; Random integration with other tools
>
>  (defvar pulse-command-advice-flag nil)




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#62988; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 21 Apr 2023 06:10:19 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Apr 21 02:10:18 2023
Received: from localhost ([127.0.0.1]:39126 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ppjyM-0005Bi-JP
	for submit <at> debbugs.gnu.org; Fri, 21 Apr 2023 02:10:18 -0400
Received: from lists.gnu.org ([209.51.188.17]:55812)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <gabriel376@HIDDEN>) id 1ppjyL-0005Ba-45
 for submit <at> debbugs.gnu.org; Fri, 21 Apr 2023 02:10:17 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <gabriel376@HIDDEN>)
 id 1ppjyI-0001pe-2U
 for bug-gnu-emacs@HIDDEN; Fri, 21 Apr 2023 02:10:15 -0400
Received: from mail-mw2nam12olkn2080f.outbound.protection.outlook.com
 ([2a01:111:f400:fe5a::80f]
 helo=NAM12-MW2-obe.outbound.protection.outlook.com)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <gabriel376@HIDDEN>)
 id 1ppjyE-0001Eh-VZ
 for bug-gnu-emacs@HIDDEN; Fri, 21 Apr 2023 02:10:12 -0400
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;
 b=IClxAX9GxL1oH9nVQwK0tuI60xbNhl2dQ2Wneb0Y6sgyyUo9zlmhLMdS673BsVx0F3Fj2h98gMKCOgAOEltSfhzBnAlFpvKwBI7difXLIxaWMkNQZuen4Z6phJ8Ts8iL2Qw7rpRd16uRRx+l0xCWh280QKionpu3WJ22kskesMXe/LounB8cX3rw6Xe2asIHEz1iRbpSZw+HK9WtT7Y62sQg7wtOdl5+fCPVzREeE7qu1HZt8PsXq6LtyNWM5vpNwC8vWwoidpnZY3hyrltgjo6aGS2ICoOy8sCLR12HFDGehJrsnm5h+uqyZ4DGrl9Oe/WgFeACYx5zdLwFzZDH+g==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; 
 s=arcselector9901;
 h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1;
 bh=YS2kVZ22f58EYWu7a/9q0YIIB2LtgtcVV1C+2qq62cI=;
 b=KsHJtF4o7PRb44+ARojUvax8UCwqZ77nyPG2rIci3OyyiYxYGbbB7uvDGAilyC7kHajzuk/4HmN7feTQy0PMvNBxK1uEudIDnXbHOyv9WdqzA4YjTqbtcc7LrzZ6gUXOs2UUhsaLk8Ix0Bq+ipmEaqvdw0ZgxXgEE9CLliYNjwlOYkM3XcoiS+LQy2oxrQWxUAbskc+rN3lWbXY+M6ENy4WhhYM9iZP6wOrOgbvUwYqoGzlwGBiGA2fJoRYsD85y3E3AheB+s0mk27RxIoXBTAzNrF+HANwlKWXL0DcyKFOjqmGF9a/tvoHyrZnQB1A1Xx3tCOquggrH2+sgImL6Gw==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none;
 dkim=none; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com;
 s=selector1;
 h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
 bh=YS2kVZ22f58EYWu7a/9q0YIIB2LtgtcVV1C+2qq62cI=;
 b=LKEplYbo8HcRqsdYs73ppsv7Ot8ni466phTRMrUpVfCsMZXIERdvc2n7FhU8g/TJS5Nkl1+bSZd4kqfrJJYOT0UjzsWaJ5egyWAuGirYaZpn2csZL8DgRtyzb+zx7dK7rdKuqRF7SE14136vLzIDQhNojBO+teWfTUHGQkR2ggR4RN2E6vD+LZ5Qt+wOZw5U+JPc8ya91xwLNGIBRGmamYxWQMSWmWMtLLJBTPp3U5n6tjg4hodoeRgVLw2FDMDAIqlpAkCznI5bhv26SFSKpJSIqWC8/zHglZwkIMV1O6O0Aqvx4REcdQrRBdPGoemnc4oLcHmEMXCg7KHhDDMmrQ==
Received: from PH8PR19MB7070.namprd19.prod.outlook.com (2603:10b6:510:222::9)
 by DM6PR19MB3865.namprd19.prod.outlook.com (2603:10b6:5:1::20) with
 Microsoft
 SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id
 15.20.6319.22; Fri, 21 Apr 2023 06:05:05 +0000
Received: from PH8PR19MB7070.namprd19.prod.outlook.com
 ([fe80::eb52:9bfc:f218:8635]) by PH8PR19MB7070.namprd19.prod.outlook.com
 ([fe80::eb52:9bfc:f218:8635%6]) with mapi id 15.20.6298.045; Fri, 21 Apr 2023
 06:05:04 +0000
From: Gabriel <gabriel376@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 30.0.50; Add highlight line-or-region command to pulse.el
Date: Fri, 21 Apr 2023 03:04:49 -0300
Message-ID: <PH8PR19MB7070793A676262112DC66AEA8B609@HIDDEN>
Content-Type: multipart/mixed; boundary="=-=-="
X-TMN: [YFyWkRu/nc2SsJLICApVMZYVUydfuO4jeR3wQrK1+BsVPdtpujLlNMee+qccUaXN]
X-ClientProxiedBy: CP0PR80CA0020.lamprd80.prod.outlook.com
 (2603:10d6:103:14::32) To PH8PR19MB7070.namprd19.prod.outlook.com
 (2603:10b6:510:222::9)
X-Microsoft-Original-Message-ID: <87wn25srcu.fsf@HIDDEN>
MIME-Version: 1.0
X-MS-Exchange-MessageSentRepresentingType: 1
X-MS-PublicTrafficType: Email
X-MS-TrafficTypeDiagnostic: PH8PR19MB7070:EE_|DM6PR19MB3865:EE_
X-MS-Office365-Filtering-Correlation-Id: 4c3a4a90-3dd1-4033-b346-08db422e59b5
X-Microsoft-Antispam: BCL:0;
X-Microsoft-Antispam-Message-Info: /0lJsQJlFmuNtC7SjM5P+5LQb8xywhhdNfpoV+pRbFr8k9bdJ1spqmdrEsgP6mRjPYJcKAFa3+wMItGiffys+dD6aemebjIzvOCdHbyNGTzl5gbXca1DSk/Ij5reyjxZbV2vUlpBYXA2wHY4BfYtvNdRpEBNGhYntUgR4UOi2nmxplh90ii1NmKkn6dfsNsxl04WsoeDEKphiscqxkP/OxfznJWelgYIaPv6tmrsW1bA7/5KqHpVUu/PwfbKePxe01wvgngiCXgHEDTH1VLPqwj44a+1Og7jQYlfolP1O7vKqaHlB5wtm8pVVcWRbR0AaUni17pXHlzdxs0GKnEuA5o+Xp2LLiRxyHibZLfAiD8ozyM+wfA/rs01kignFmNOXtnxXNSQ61ukcq7bsg4tbHFYamSv1+Hd1eSYz4S3B+d9auvMF4t6/pmOp4dbKPio6J9bp64Djw0X9IZkUEnawAnxpNdgVfJQsGaE+PLsT2BUWsJtYip1J/dAKz8rbgk0EXhdZ5W9Mqn0jlTkTIeFjgU0DjuLYV59BoY690ixl3+pI8NJ7s7NyCw+V0P1Us+F
X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1
X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?LRIlOybPf+87Tr5q47I/HzdjrzEyRa4wXZvsNchlyXEaO+XUnW9nEFhIO5jh?=
 =?us-ascii?Q?DlSkBxJmukV+WljEE5bECfbHL/V2ABkJQNT02xDbKsElUvJ7wXlgoCaNGReZ?=
 =?us-ascii?Q?bfttErta7Kt99Zh6j9ynepHRg//9nTDJM9MnXg+633rLYHwQG2I7EwD1EOcs?=
 =?us-ascii?Q?MfNwQuVfCl6l1C5oeHjmSSywzIz8QVjGUhDX0QSl8w7vNpNVWXiXBVwFgQAx?=
 =?us-ascii?Q?IXcKiPAk5SV514667orEEHq/n8J7YXlPmOtS1QLVmxaECXWP3RqotJERL7FE?=
 =?us-ascii?Q?88ZPg+rOliadd6yy7abqHkbBgFWHQgvODygGI+ylaWJXasdFhleOeou2yuK8?=
 =?us-ascii?Q?8o6HsDlJgCZOEMiEmVe57K50RDT8XpJmYRGwfuaAQ9QGjkZCG5fz3OLHPvw5?=
 =?us-ascii?Q?IwvzxQf27t7mXSEUv7mDG48WfkK/eF+CfNlTTUyBblpnBUGwSqhIJBax8RIM?=
 =?us-ascii?Q?BAylFEvPLCCAIEMuHaVJvLHIm444813jPkwP9yt/dsTOkfAXHpWYQXfjaEYk?=
 =?us-ascii?Q?VnGfRVhhIvfYVKlOoMgf88qnsLZBAP7A5W/M+O5rjGxK8ZfeE5oc6y6TEi3R?=
 =?us-ascii?Q?+x1mP9iGZ0Xg2lxlsyG0czFLY/qN7MKDFNvrzNIEP2Fw5YheR9+58XHKVWEz?=
 =?us-ascii?Q?C6PQDMKzpuRmQyflR7M+DpSoALT6Ubm8YFL5Wl5zgndHVqyb/vL41qlKseRY?=
 =?us-ascii?Q?ZZZPoos7Z8fuGWkyegR1KA1E9OOJzdGU73kXOvnm/ksdR5Ar6a+D9xW4NIqc?=
 =?us-ascii?Q?Ab1EEJLcB2vi2N6z80iHYPdvAWBl3usfXTa6RkiOGfrJoIjLPQXH9PU0L3UR?=
 =?us-ascii?Q?r9fIfpaE1mop79LuDnW9pWp/zv5KO4/cQKO+6oZ1/VbmIVX5WLpAL1vQSpQL?=
 =?us-ascii?Q?MtiacixFJlUtv4y2x3HvcZZhedDcSatZaU8FCwbh247L1iux62Q9owKDqMKN?=
 =?us-ascii?Q?jOoDqbssvN8KXJuPtAWXtSutiXg6Cuu5XMhgPL5GMAH032JWdx6cSe+ePNIh?=
 =?us-ascii?Q?Zy7+EtLjwAhIqLVnf3ozKrsrjOTYCgX/+vSzCs0pWKjRjQDdrZznUW5r1k9f?=
 =?us-ascii?Q?9DZAMY1YeDapfm5t1r2a3kLgUhFnsovpV8orZb6r5h//Dr+ztWd49UA9ROe7?=
 =?us-ascii?Q?syshH7zi4Xopmb9yacc46u8WABSVP4YPg1aTPlTDJV0bl+P/ziv7jDZRmjBW?=
 =?us-ascii?Q?qG0BcBr/eiadNQ3DvoTznYKRWScG/4iVmNKrxrw4SnQOe3qs+zb4j/BJuban?=
 =?us-ascii?Q?Tbb0a4tUObeGxo1Zz8NqUw/2552SQWm0kIRJU5X8oSDg9IlVBRBKTDD/WqsV?=
 =?us-ascii?Q?BpY=3D?=
X-OriginatorOrg: sct-15-20-4755-11-msonline-outlook-e7757.templateTenant
X-MS-Exchange-CrossTenant-Network-Message-Id: 4c3a4a90-3dd1-4033-b346-08db422e59b5
X-MS-Exchange-CrossTenant-AuthSource: PH8PR19MB7070.namprd19.prod.outlook.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Apr 2023 06:05:04.7971 (UTC)
X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted
X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa
X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000
X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR19MB3865
Received-SPF: pass client-ip=2a01:111:f400:fe5a::80f;
 envelope-from=gabriel376@HIDDEN;
 helo=NAM12-MW2-obe.outbound.protection.outlook.com
X-Spam_score_int: -18
X-Spam_score: -1.9
X-Spam_bar: -
X-Spam_report: (-1.9 / 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, SPF_HELO_PASS=-0.001,
 SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.1 (-)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.1 (--)

--=-=-=
Content-Type: text/plain

severity: wishlist

My suggestion is to add a new command (i.e. an interactive function) to
pulse.el to highlight the current line or region.  The basic functions
already exist, but no command is provided.  This command is useful, for
example, in videos, demos or pair-programming sessions where the user
wish to highlight the current line or region for the audience.

Although pulse.el is part of CEDET, it provides general-purpose
functions not coupled to CEDET.

Example: apply patch and bind the new command to F1 key

(keymap-set global-map
            "<f1>"
            #'pulse-momentary-highlight-line-or-region)

============================================================

--=-=-=
Content-Type: text/x-diff
Content-Disposition: inline;
 filename=0001-Add-command-to-highlight-line-or-region-to-pulse.el.patch

From 30681b98fed3e90a653a741a644c94ee4f89a719 Mon Sep 17 00:00:00 2001
From: Gabriel do Nascimento Ribeiro <gabriel376@HIDDEN>
Date: Fri, 21 Apr 2023 02:51:47 -0300
Subject: [PATCH 1/1] Add command to highlight line or region to pulse.el

* lisp/cedet/pulse.el
(pulse-momentary-highlight-line-or-region): New command.
---
 lisp/cedet/pulse.el | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/lisp/cedet/pulse.el b/lisp/cedet/pulse.el
index 37b41fbe8c3..c76668152f7 100644
--- a/lisp/cedet/pulse.el
+++ b/lisp/cedet/pulse.el
@@ -215,6 +215,14 @@ pulse-momentary-highlight-region
     (overlay-put o 'pulse-delete t)
     (pulse-momentary-highlight-overlay o face)))
 
+;;;###autoload
+(defun pulse-momentary-highlight-line-or-region ()
+  "Highlight current region, when active, or current line, otherwise."
+  (interactive)
+  (if (use-region-p)
+      (pulse-momentary-highlight-region (region-beginning) (region-end))
+    (pulse-momentary-highlight-one-line)))
+
 ;;; Random integration with other tools
 
 (defvar pulse-command-advice-flag nil)
-- 
2.34.1


--=-=-=
Content-Type: text/plain

============================================================

---
Gabriel

--=-=-=--




Acknowledgement sent to Gabriel <gabriel376@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#62988; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Tue, 5 Sep 2023 16:30:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.