Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

eclipse.el not working with latest emcs #59

Open
ishovkun opened this issue Sep 20, 2020 · 2 comments
Open

eclipse.el not working with latest emcs #59

ishovkun opened this issue Sep 20, 2020 · 2 comments

Comments

@ishovkun
Copy link

Upon parsing eclipse.el, emacs throws the following error.
"old-style backquotes detected!"

@alfbr
Copy link
Member

alfbr commented Sep 20, 2020

Thanks for reporting! Hopefully, I will find time to look into it soon. Very happy if somebody else gets to it before me though :-)

@ishovkun
Copy link
Author

Here is the modification I made to make it work in emacs 27.
In the definition of the last macro in the block I replaced the inline-define of several variables with three separate statements.
The mode is still somewhat faulty since it does not adhere to the themes (as it was before), but it's a separate topic.

;; From custom web page for compatibility between versions of custom:
(eval-and-compile
  (condition-case ()
      (require 'custom)
    (error nil))
  (if (and (featurep 'custom) (fboundp 'custom-declare-variable))
      nil ;; We've got what we needed
    ;; We have the old custom-library, hack around it!
    (defmacro defgroup (&rest args)
      nil)
    (defmacro custom-add-option (&rest args)
      nil)
    (defmacro defface (&rest args) nil)
    (defmacro defcustom (var value doc &rest args)
      ;; (` (defvar (, var) (, value) (, doc)))))) <- old style
      (defvar var nil) ;; <- new style
      (defvar value nil)
      (defvar doc nil)
      )
    ))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants