tsutsui / netbsd-teokureliveimage

Scripts and files to build NetBSD "Teokure Live Image" http://www.ceres.dti.ne.jp/tsutsui/netbsd/liveimage/
9 stars 1 forks source link

emacs28 起動時に `~/.emacs` でエラーが出ている #58

Closed tsutsui closed 10 minutes ago

tsutsui commented 2 months ago

メールで報告をもらったので登録。

emacs 28.2 を起動すると以下のメッセージが表示される、とのこと

Warning (initialization): An error occurred while loading ‘/home/mikutter/.emacs’:

Symbol's function definition is void: set-default-font

To ensure normal operation, you should investigate and remove the
cause of the error in your initialization file.  Start Emacs with
the ‘--debug-init’ option to view a complete error backtrace. Disable showing Disable logging

https://www.gnu.org/software/emacs/manual/html_node/emacs/Fonts.html を参考に以下のようにするとメッセージは出なくなるものの詳細は確認必要、とのこと

--- .emacs.orig
+++ .emacs
@@ -10,7 +10,7 @@

 ; font settings
 (cond (window-system
-  (set-default-font "Luxi Mono-10")
+  (add-to-list 'default-frame-alist '(font . "Luxi Mono-10"))
   (set-fontset-font (frame-parameter nil 'font)
      'unicode
      '("VL Gothic" . "unicode-bmp"))))

そもそも現状の設定もどこから持ってきたのかすっかり忘れてしまったので思い出すところから。

tsutsui commented 3 days ago

pkgsrc-2024Q2 では emacs29 に更新されている。 今のままだと同じエラーが出るとは思うが、前述の修正がそのまま適用できるかは確認必要。

tsutsui commented 14 hours ago

ひとまず 20240420版の emacs 28.2 では修正案でエラーなく起動する。

emacs 29 はとりあえず作ってみてから確認する。