|
From: | Juri Linkov |
Subject: | bug#46119: 28.0.50; this-error-recenter |
Date: | Wed, 03 Feb 2021 19:39:15 +0200 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) |
>> Would it be possible to avoid code duplication between >> next-error-no-select and recenter-current-error? > > How about adding this macro? > > (defmacro with-selected-locus (n &rest body) > > (defun next-error-no-select (&optional n) >... > (with-selected-locus n)) I don't know, a macro call with empty body doesn't look nice. I guess then better to have code duplication than such macro.
[Prev in Thread] | Current Thread | [Next in Thread] |