unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#54410: One cl-defgeneric in xref.el should be cl-defmethod
@ 2022-03-15 23:09 Philipp Stephani
  2022-03-16  3:29 ` Eli Zaretskii
  0 siblings, 1 reply; 7+ messages in thread
From: Philipp Stephani @ 2022-03-15 23:09 UTC (permalink / raw)
  To: 54410

[-- Attachment #1: Type: text/plain, Size: 610 bytes --]

Tags: patch

Is the following patch good for the release branch?



In GNU Emacs 28.0.92 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.31, cairo version 1.16.0)
 of 2022-03-14
Repository revision: 8e7a3f21e00649bacc01be627edd45ff01b51a33
Repository branch: emacs-28
Windowing system distributor 'The X.Org Foundation', version 11.0.12014000
System Description: Debian GNU/Linux rodete

Configured using:
 'configure --enable-gcc-warnings=warn-only
 --enable-gtk-deprecation-warnings --without-pop --with-mailutils
 --enable-checking=all --enable-check-lisp-object-type --with-modules
 'CFLAGS=-O0 -ggdb3''


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: xref-defmethod.patch --]
[-- Type: text/patch, Size: 448 bytes --]

diff --git a/lisp/progmodes/xref.el b/lisp/progmodes/xref.el
index 2fd5e19237..aefee31897 100644
--- a/lisp/progmodes/xref.el
+++ b/lisp/progmodes/xref.el
@@ -220,7 +220,7 @@ xref-location-group
   "A match xref item describes a search result."
   length)
 
-(cl-defgeneric xref-match-length ((item xref-match-item))
+(cl-defmethod xref-match-length ((item xref-match-item))
   "Return the length of the match."
   (xref-match-item-length item))
 

[-- Attachment #3: Type: text/plain, Size: 709 bytes --]


-- 
Google Germany GmbH
Erika-Mann-Straße 33
80636 München

Geschäftsführer: Paul Manicle, Liana Sebastian
Registergericht und -nummer: Hamburg, HRB 86891
Sitz der Gesellschaft: Hamburg

Diese E-Mail ist vertraulich.  Falls Sie diese fälschlicherweise erhalten haben
sollten, leiten Sie diese bitte nicht an jemand anderes weiter, löschen Sie
alle Kopien und Anhänge davon und lassen Sie mich bitte wissen, dass die E-Mail
an die falsche Person gesendet wurde.

This e-mail is confidential.  If you received this communication by mistake,
please don’t forward it to anyone else, please erase all copies and
attachments, and please let me know that it has gone to the wrong person.

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* bug#54410: One cl-defgeneric in xref.el should be cl-defmethod
  2022-03-15 23:09 bug#54410: One cl-defgeneric in xref.el should be cl-defmethod Philipp Stephani
@ 2022-03-16  3:29 ` Eli Zaretskii
  2022-03-16 12:14   ` Dmitry Gutov
  2022-03-17 12:07   ` Philipp Stephani
  0 siblings, 2 replies; 7+ messages in thread
From: Eli Zaretskii @ 2022-03-16  3:29 UTC (permalink / raw)
  To: Philipp Stephani; +Cc: 54410

> From: Philipp Stephani <p.stephani2@gmail.com>
> Date: Wed, 16 Mar 2022 00:09:23 +0100
> 
> Is the following patch good for the release branch?

What problems are caused by the current code?

In general, I'd prefer to leave the release branch alone at this time,
so we could release Emacs 28.1 soon.  It seems quite ready.





^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#54410: One cl-defgeneric in xref.el should be cl-defmethod
  2022-03-16  3:29 ` Eli Zaretskii
@ 2022-03-16 12:14   ` Dmitry Gutov
  2022-03-16 12:31     ` Eli Zaretskii
  2022-03-17 11:01     ` Lars Ingebrigtsen
  2022-03-17 12:07   ` Philipp Stephani
  1 sibling, 2 replies; 7+ messages in thread
From: Dmitry Gutov @ 2022-03-16 12:14 UTC (permalink / raw)
  To: Eli Zaretskii, Philipp Stephani; +Cc: 54410

On 16.03.2022 05:29, Eli Zaretskii wrote:
> What problems are caused by the current code?

I think it will cause no change in observable behavior, it's closer to 
the realm of better documentation.

The change should be very safe accordingly, though.





^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#54410: One cl-defgeneric in xref.el should be cl-defmethod
  2022-03-16 12:14   ` Dmitry Gutov
@ 2022-03-16 12:31     ` Eli Zaretskii
  2022-03-17 11:01     ` Lars Ingebrigtsen
  1 sibling, 0 replies; 7+ messages in thread
From: Eli Zaretskii @ 2022-03-16 12:31 UTC (permalink / raw)
  To: Dmitry Gutov; +Cc: p.stephani2, 54410

> Date: Wed, 16 Mar 2022 14:14:38 +0200
> Cc: 54410@debbugs.gnu.org
> From: Dmitry Gutov <dgutov@yandex.ru>
> 
> On 16.03.2022 05:29, Eli Zaretskii wrote:
> > What problems are caused by the current code?
> 
> I think it will cause no change in observable behavior, it's closer to 
> the realm of better documentation.

Thanks, but that's not exactly what I asked.





^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#54410: One cl-defgeneric in xref.el should be cl-defmethod
  2022-03-16 12:14   ` Dmitry Gutov
  2022-03-16 12:31     ` Eli Zaretskii
@ 2022-03-17 11:01     ` Lars Ingebrigtsen
  2022-03-17 11:23       ` Dmitry Gutov
  1 sibling, 1 reply; 7+ messages in thread
From: Lars Ingebrigtsen @ 2022-03-17 11:01 UTC (permalink / raw)
  To: Dmitry Gutov; +Cc: Philipp Stephani, 54410

Dmitry Gutov <dgutov@yandex.ru> writes:

> I think it will cause no change in observable behavior, it's closer to
> the realm of better documentation.
>
> The change should be very safe accordingly, though.

I think it would be better to push it to master.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#54410: One cl-defgeneric in xref.el should be cl-defmethod
  2022-03-17 11:01     ` Lars Ingebrigtsen
@ 2022-03-17 11:23       ` Dmitry Gutov
  0 siblings, 0 replies; 7+ messages in thread
From: Dmitry Gutov @ 2022-03-17 11:23 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: Philipp Stephani, 54410

On 17.03.2022 13:01, Lars Ingebrigtsen wrote:
> I think it would be better to push it to master.

Fine with me.





^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#54410: One cl-defgeneric in xref.el should be cl-defmethod
  2022-03-16  3:29 ` Eli Zaretskii
  2022-03-16 12:14   ` Dmitry Gutov
@ 2022-03-17 12:07   ` Philipp Stephani
  1 sibling, 0 replies; 7+ messages in thread
From: Philipp Stephani @ 2022-03-17 12:07 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 54410-done

Am Mi., 16. März 2022 um 04:29 Uhr schrieb Eli Zaretskii <eliz@gnu.org>:
>
> > From: Philipp Stephani <p.stephani2@gmail.com>
> > Date: Wed, 16 Mar 2022 00:09:23 +0100
> >
> > Is the following patch good for the release branch?
>
> What problems are caused by the current code?

I'm using Edebug for coverage instrumentation, and that only works
right in an automated way if there are no duplicate instrumented
symbols, because Edebug attaches coverage information to individual
symbols. cl-defmethod takes care of this by generating additional
symbols, but cl-defgeneric doesn't.

>
> In general, I'd prefer to leave the release branch alone at this time,
> so we could release Emacs 28.1 soon.  It seems quite ready.

Fine with me, I've pushed it to master as commit
6ed3f04e5a3c8aee40a26805bb00cdd070eba319.





^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2022-03-17 12:07 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-15 23:09 bug#54410: One cl-defgeneric in xref.el should be cl-defmethod Philipp Stephani
2022-03-16  3:29 ` Eli Zaretskii
2022-03-16 12:14   ` Dmitry Gutov
2022-03-16 12:31     ` Eli Zaretskii
2022-03-17 11:01     ` Lars Ingebrigtsen
2022-03-17 11:23       ` Dmitry Gutov
2022-03-17 12:07   ` Philipp Stephani

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).