emacs-refactor icon indicating copy to clipboard operation
emacs-refactor copied to clipboard

‘error: (void-variable emr-buffer-report-mode)’ on gccemacs

Open twlz0ne opened this issue 5 years ago • 1 comments
trafficstars

emr-load-failed-on-gccemacs

Expected Behavior

Load success

Actual Behavior

Load failed

Steps to reproduce

$ gccemacs -nw -Q -l test-emr-on-gccemacs.el --batch # 1. Recompile *.elc
$ gccemacs -nw -Q -l test-emr-on-gccemacs.el         # 2. Recompile *.eln
$ gccemacs -nw -Q -l test-emr-on-gccemacs.el         # 3. Load package
test-emr-on-gccemacs.el
;;; Usage:
;;
;; 1. Recompile *.elc
;;
;;   /path/to/gccemacs -nw -Q -l /path/to/test-emr-on-gccemacs.el --batch
;;
;; 2. Recompile *.eln
;;
;;   /path/to/gccemacs -nw -Q -l /path/to/test-emr-on-gccemacs.el
;;
;; 3. Load package
;;
;;   /path/to/gccemacs -nw -Q -l /path/to/test-emr-on-gccemacs.el
;;
;;; Date: 2020-09-18 01.43.44
(toggle-debug-on-error)

;; Use installed packaged
(require 'seq)
(setq user-emacs-directory
      (car (seq-filter
            #'file-exists-p
            (list (format "~/.emacs.d/%s/" emacs-version)
                  (format "~/.emacs.d/%s/" emacs-major-version)
                  "~/.emacs.d/"))))
(setq package-user-dir (concat user-emacs-directory "elpa/"))
(package-initialize)

(require 'cl-macs)
(cl-assert (boundp 'comp-eln-load-path) t "Not gccemacs")

(define-advice native-compile-async (:after (&rest _) debug)
  (with-current-buffer "*scratch*"
    (erase-buffer)
    (insert ";; Waiting for async complation to finish."))
  (display-buffer comp-async-buffer-name))

(add-hook 'comp-async-all-done-hook
          (lambda ()
            (with-current-buffer "*scratch*"
              (erase-buffer)
              (insert ";; Restart Emacs"))))

(if noninteractive
    ;; Recompile elc
    (progn
      (require 'find-func)
      (byte-recompile-directory
       (file-name-directory (find-library-name "emr")) 0 'force))
  ;; Load package
  (require 'emr)
  (emr-initialize))

;;; test-emr-on-gccemacs.el ends here

Environment

  • macOS 10.12.6
  • Emacs 28.0.50 [feature/native-comp: c55884d72a4ea806a97c9925d6f85adcca89a3bd]
  • emr-20200420.721

CC @AndreaCorallo

twlz0ne avatar Sep 18 '20 05:09 twlz0ne

I'm seeing what I think is the same thing on Arch Linux with the same branch. Not sure if maybe this belongs in feature/native-comp, any thoughts?

titaniumbones avatar Jan 28 '21 14:01 titaniumbones