Received: (at 79643) by debbugs.gnu.org; 10 Nov 2025 07:49:34 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Mon Nov 10 02:49:34 2025 Received: from localhost ([127.0.0.1]:36602 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1vIMeb-0006jV-Nq for submit <at> debbugs.gnu.org; Mon, 10 Nov 2025 02:49:33 -0500 Received: from msg-2.mailo.com ([213.182.54.12]:49070 helo=mailo.com) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <yarl-baudig@HIDDEN>) id 1vIMeY-0006iZ-OT for 79643 <at> debbugs.gnu.org; Mon, 10 Nov 2025 02:49:32 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailoo.org; s=mailo; t=1762760963; bh=l9HkcZjnUT6w3riTxRWfQA9HqQYRxZDPksGgboBHmBk=; h=X-EA-Auth:From:To:Cc:Subject:In-Reply-To:References:Date: Message-ID:MIME-Version:Content-Type; b=k13+ZkRIzAxIer7HNBItoVBE6VBaIv0sLshBKZNSstipeys8BK1FkiAysE9ndZgEF b2a3/ELCgF4e/9PGHytJ06qVVUdtPd0b/cyRP1rYDRMI2uYSxN0sWRqKhYpGic3EIb /34//6PM4/OC3Lmy+PtU751nBGBJG3Cb61tzdC7k= Received: by b221-6.in.mailobj.net [192.168.90.26] with ESMTP via ip-20.mailobj.net [213.182.54.20] Mon, 10 Nov 2025 08:49:23 +0100 (CET) X-EA-Auth: f8qP0CCqrYraDiaIcwjEO9/eao2n0F5x/YDMvJTh4NSo/xGEouKVYnr4WVhWZOApew5LszbnGjFBJKJDfOcEzi0q4MOVN7BbByUxOY4Xr5U= From: Yarl <yarl-baudig@HIDDEN> To: Mats Lidell <matsl@HIDDEN> Subject: Re: bug#79643: hyrolo-yank-reformat-function needs region's end In-Reply-To: <874ir2akdf.fsf@HIDDEN> (Mats Lidell's message of "Sun, 09 Nov 2025 23:53:16 +0100") References: <87plalvrre.fsf@HIDDEN> <874ir2akdf.fsf@HIDDEN> Date: Mon, 10 Nov 2025 08:49:22 +0100 Message-ID: <875xbi8gzh.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 79643 Cc: 79643 <at> debbugs.gnu.org, Yarl <yarl-baudig@HIDDEN> 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 (-) Mats Lidell <matsl@HIDDEN> writes: > > Thanks for the report and sorry for late response. This was fixed in commit > dbe1f6c in the middle of October. It is available through the pre release on > gnu-devel and on Melpa. Please give it a try. > > Yours Mats Yes I saw that commit, thank you a lot. It is effective.
bug-hyperbole@HIDDEN:bug#79643; Package hyperbole.
Full text available.Received: (at 79643) by debbugs.gnu.org; 9 Nov 2025 22:53:30 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sun Nov 09 17:53:30 2025 Received: from localhost ([127.0.0.1]:33488 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1vIEHp-0001Oa-Nz for submit <at> debbugs.gnu.org; Sun, 09 Nov 2025 17:53:30 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:38982) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <matsl@HIDDEN>) id 1vIEHl-0001OE-Nv for 79643 <at> debbugs.gnu.org; Sun, 09 Nov 2025 17:53:27 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <matsl@HIDDEN>) id 1vIEHf-0004Zn-Is; Sun, 09 Nov 2025 17:53:19 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=pnLGxCpgP43lRZyHZ6oiaVgecma91AJHQowIopeOwJ4=; b=dbV97Z5vJH5kr3LEXw7c WnQReVSCSGVq1W7IjB+wTuSpxwDAlWRJ2SyR94rWgHuDmvbNsLLHLFHu73qe6ZIgY4Bw9jUhCySwU fhuS8nSJ/LsCllF++D1ha5dx+b8dpGCI4LxXgNPYFelDlchRqr0d89A45ihw278qvrGh4Ue8TQ+CV DK7dv3a56e36MyriGGpAgvWhESzRjNDwaJtlKOvhq05KcEjukV1gmRW0LJBFYHG7PSm5jWhkfTwVS zPr9RF6Ff2uKcjaR942oeIYV+9H1TkY6gzuS4bqvb64DTyC8cT3CDhEQ9NXXMp9NyN3hUtX4Jyo/P T5EKYCsOtIWxBw==; From: Mats Lidell <matsl@HIDDEN> To: Yarl <yarl-baudig@HIDDEN> Subject: Re: bug#79643: hyrolo-yank-reformat-function needs region's end In-Reply-To: <87plalvrre.fsf@HIDDEN> References: <87plalvrre.fsf@HIDDEN> Date: Sun, 09 Nov 2025 23:53:16 +0100 Message-ID: <874ir2akdf.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 79643 Cc: 79643 <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: -3.3 (---) > Yarl writes: > Hello, > > Below is hyrolo-yank: > > (defun hyrolo-yank (name &optional regexp-flag) > "Insert at point the first rolo entry with a headline containing NAME. > If the `consult' package is installed, interactively select and complete > the entry to be inserted. > > With optional prefix arg, REGEXP-FLAG, treat NAME as a regular expression > instead of a string." > (interactive (list > (hsys-consult-grep-headlines-read-regexp > #'hyrolo-consult-grep "Yank rolo headline matching") > current-prefix-arg)) > (when (string-empty-p name) > (setq name nil)) > (when (or (null name) (not (stringp name))) > (error "(hyrolo-yank): Invalid name: `%s'" name)) > > (let ((hyrolo-display-buffer (current-buffer)) > (start (point)) > found) > (save-excursion > (setq found > (if (and (hsys-consult-active-p) > (string-match "\\([^ \t\n\r\"'`]*[^ \t\n\r:\"'`0-9]\\): ?\\([1-9][0-9]*\\)[ :]" > name)) > (hyrolo-grep-file (match-string-no-properties 1 name) > (regexp-quote (substring name (match-end 0))) > -1 nil t) > (hyrolo-grep (if regexp-flag name (regexp-quote name)) -1 nil nil t)))) > ;; Let user reformat the region just yanked. > (when (= found 1) > (funcall hyrolo-yank-reformat-function start (point))) > found)) > > Because *save-excursion* is used, *start* equals to *(point)* in the > call to *hyrolo-yank-reformat-function*, which only gets the start of > the region just yanked. > > Thank you! Thanks for the report and sorry for late response. This was fixed in commit dbe1f6c in the middle of October. It is available through the pre release on gnu-devel and on Melpa. Please give it a try. Yours Mats
bug-hyperbole@HIDDEN:bug#79643; Package hyperbole.
Full text available.
Received: (at submit) by debbugs.gnu.org; 17 Oct 2025 08:48:35 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Oct 17 04:48:35 2025
Received: from localhost ([127.0.0.1]:46928 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
id 1v9g8X-0004gH-Gl
for submit <at> debbugs.gnu.org; Fri, 17 Oct 2025 04:48:35 -0400
Received: from lists.gnu.org ([2001:470:142::17]:53510)
by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.84_2) (envelope-from <yarl-baudig@HIDDEN>)
id 1v9g8F-0004dd-DG
for submit <at> debbugs.gnu.org; Fri, 17 Oct 2025 04:48:22 -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 <yarl-baudig@HIDDEN>)
id 1v9g88-00010R-UH
for bug-hyperbole@HIDDEN; Fri, 17 Oct 2025 04:48:08 -0400
Received: from msg-1.mailo.com ([213.182.54.11] helo=mailo.com)
by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.90_1) (envelope-from <yarl-baudig@HIDDEN>)
id 1v9g84-0005MG-MD
for bug-hyperbole@HIDDEN; Fri, 17 Oct 2025 04:48:08 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=mailoo.org; s=mailo;
t=1760690870; bh=Wf1GZyxIcM/Summ7vZmrauNo/OAXUcJFndT24xiRUN0=;
h=X-EA-Auth:From:To:Subject:Date:Message-ID:MIME-Version:
Content-Type;
b=AkoC1FggpMf+Be3pdYZW8jz9rwAscdliB6c1VZsl1GT03AF16x/Fq1smHZk4Zt4qB
rkPx07pF0KsqIrbFCiUuBnatHCLlMnm62qgwiPS/zlMWnOkJSc4KTMGp96bfYCEBhh
xyovpN0HmIbuoLME0GFzxlU52FV/lF5SCm5MLDG8=
Received: by b221-2.in.mailobj.net [192.168.90.22] with ESMTP
via ip-20.mailobj.net [213.182.54.20]
Fri, 17 Oct 2025 10:47:50 +0200 (CEST)
X-EA-Auth: v7Jvuw8I4dnfMCKlh1KZDy8Wo2ZrFw4WljwcfzyCWR83ial9JFmDXKCZXK1oKse+8cYuQNxr2MykMR26PVF19uh5HgRQytVWeRuKVpXT69w=
From: Yarl <yarl-baudig@HIDDEN>
To: bug-hyperbole@HIDDEN
Subject: hyrolo-yank-reformat-function needs region's end
Date: Fri, 17 Oct 2025 10:47:49 +0200
Message-ID: <87plalvrre.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
Received-SPF: pass client-ip=213.182.54.11;
envelope-from=yarl-baudig@HIDDEN; helo=mailo.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,
RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001,
SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 1.0 (+)
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: -0.0 (/)
Hello,
Below is hyrolo-yank:
--8<---------------cut here---------------start------------->8---
(defun hyrolo-yank (name &optional regexp-flag)
"Insert at point the first rolo entry with a headline containing NAME.
If the `consult' package is installed, interactively select and complete
the entry to be inserted.
With optional prefix arg, REGEXP-FLAG, treat NAME as a regular expression
instead of a string."
(interactive (list
(hsys-consult-grep-headlines-read-regexp
#'hyrolo-consult-grep "Yank rolo headline matching")
current-prefix-arg))
(when (string-empty-p name)
(setq name nil))
(when (or (null name) (not (stringp name)))
(error "(hyrolo-yank): Invalid name: `%s'" name))
(let ((hyrolo-display-buffer (current-buffer))
(start (point))
found)
(save-excursion
(setq found
(if (and (hsys-consult-active-p)
(string-match "\\([^ \t\n\r\"'`]*[^ \t\n\r:\"'`0-9]\\): ?\\([1-9][0-9]*\\)[ :]"
name))
(hyrolo-grep-file (match-string-no-properties 1 name)
(regexp-quote (substring name (match-end 0)))
-1 nil t)
(hyrolo-grep (if regexp-flag name (regexp-quote name)) -1 nil nil t))))
;; Let user reformat the region just yanked.
(when (= found 1)
(funcall hyrolo-yank-reformat-function start (point)))
found))
--8<---------------cut here---------------end--------------->8---
Because *save-excursion* is used, *start* equals to *(point)* in the
call to *hyrolo-yank-reformat-function*, which only gets the start of
the region just yanked.
Thank you!
Yarl <yarl-baudig@HIDDEN>:bug-hyperbole@HIDDEN.
Full text available.bug-hyperbole@HIDDEN:bug#79643; Package hyperbole.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.