diff options
author | Maciej Barć <xgqt@gentoo.org> | 2022-07-26 03:44:42 +0200 |
---|---|---|
committer | Maciej Barć <xgqt@gentoo.org> | 2022-07-26 04:28:09 +0200 |
commit | 665a44c158c315e4e5df8d63655cd5d19da42c10 (patch) | |
tree | bf78d03b72b6ac0f067a1508a994b11029e07b85 /app-emacs/racket-mode/files | |
parent | x11-terms/xfce4-terminal: Stabilize 1.0.4 arm64, #860927 (diff) | |
download | gentoo-665a44c158c315e4e5df8d63655cd5d19da42c10.tar.gz gentoo-665a44c158c315e4e5df8d63655cd5d19da42c10.tar.bz2 gentoo-665a44c158c315e4e5df8d63655cd5d19da42c10.zip |
app-emacs/racket-mode: instead of setq apply a patch
to overwrite the "racket--rkt-source-dir" variable, also remove
unnecessary setting of "racket--run.rkt" variable (that has been
dropped in 2021)
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
Diffstat (limited to 'app-emacs/racket-mode/files')
-rw-r--r-- | app-emacs/racket-mode/files/50racket-mode-gentoo.el | 3 | ||||
-rw-r--r-- | app-emacs/racket-mode/files/racket-mode-rkt-source-dir.patch | 11 |
2 files changed, 11 insertions, 3 deletions
diff --git a/app-emacs/racket-mode/files/50racket-mode-gentoo.el b/app-emacs/racket-mode/files/50racket-mode-gentoo.el index abebbf987f6f..eccbdd83a2b2 100644 --- a/app-emacs/racket-mode/files/50racket-mode-gentoo.el +++ b/app-emacs/racket-mode/files/50racket-mode-gentoo.el @@ -12,6 +12,3 @@ (add-to-list 'auto-mode-alist '("\\.rkt\\'" . racket-mode)) (add-to-list 'auto-mode-alist '("\\.rktd\\'" . racket-mode)) (add-to-list 'auto-mode-alist '("\\.rktl\\'" . racket-mode)) - -(setq racket--rkt-source-dir (expand-file-name "./racket/" "@SITEETC@")) -(setq racket--run.rkt (expand-file-name "main.rkt" racket--rkt-source-dir)) diff --git a/app-emacs/racket-mode/files/racket-mode-rkt-source-dir.patch b/app-emacs/racket-mode/files/racket-mode-rkt-source-dir.patch new file mode 100644 index 000000000000..0dbc7acb2366 --- /dev/null +++ b/app-emacs/racket-mode/files/racket-mode-rkt-source-dir.patch @@ -0,0 +1,11 @@ +--- a/racket-util.el ++++ b/racket-util.el +@@ -90,7 +90,7 @@ When installed as a package, this can be found from the variable + .el buffer file name.") + + (defvar racket--rkt-source-dir +- (expand-file-name "./racket/" racket--el-source-dir) ++ (expand-file-name "./racket/" "@SITEETC@") + "Path to dir of our Racket source files. ") + + (defun racket--restoring-current-buffer (proc) |