Subject: Re: bug#55234: 28.1; replace-string in rectangle regio

From: Juri Linkov <[email-masked]>
Date: Fri, 03 Jun 2022 10:46:32 +0300

>>>   (mapcar 'car (region-bounds))
>>
>> Sounds reasonable.
>
> Then here is the implementation that is more less in line with
> how other rectangular functions are implemented:
>
> diff --git a/lisp/rect.el b/lisp/rect.el
> +(advice-add 'region-beginning :around #'rectangle--region-beginning)

This causes a strange compilation error:

  Loading lisp/mouse.el (source)...
  Eager macro-expansion failure: (void-function easy-menu-define)
  Eager macro-expansion failure: (void-function easy-menu-define)

  Error: void-function (easy-menu-define)
    debug-early(error (void-function easy-menu-define))
    (easy-menu-define help-mode-menu help-mode-map "Menu for Help mode." ...)
    require(help-mode)
    require(cl-extra)
    require(comp)
    advice--add-function(:around ... rectangle--region-beginning nil)
    advice-add(region-beginning :around rectangle--region-beginning)
    require(rect)
    load("mouse")
    load("loadup.el")

  Symbol's function definition is void: easy-menu-define