GNU Emacs 29.1がリリース - PGTKサポートや非常に長い行を含むテキストファイルの取り扱いが改善

[PR]記事内のアフィリエイトリンクから収入を得る場合があります
  • URLをコピーしました!

S 20230731 110954

GNU Emacs開発プロジェクトは7月30日(現地時間)、Emacsのメジャーバージョンアップ版「Emacs 29.1」をリリースしました。昨年4月に公開されたEmacs 28.1以来のメジャーアップ版で、現在公式サイトより最新版のソースコードをダウンロードすることができます。

Emacs 29.1では、pure GTK(PGTK)ビルドのサポートや、非常に長い行を含むテキストファイルの編集の高速化、libwebpライブラリによるWebP画像の表示サポート、Unicode 15.0のサポートなどが行われています。

また、連続したシングルクォートをダブルクォートに変更するというデフォルトモードを無効にする新しいユーザオプションの追加、様々なターミナルEmacsの機能強化、多数のコマンドラインオプションの追加も行われています。

主な新機能は以下の通りです。

  • Supports "pure GTK" (PGTK) build
  • Uses XInput 2 on X for input events
  • Uses tree-sitter parsers for several programming modes
  • Includes LSP client called Eglot
  • Includes the use-package package
  • Can access SQLite databases using sqlite3 library
  • Can display WebP images using libwebp library
  • Faster editing of files with very long lines
  • Better support for drag-and-drop on X
  • Pixel-precise scrolling with touchpad support
  • Enhanced support for editing and displaying Emoji
  • Support for Unicode 15.0 and many new scripts
  • Many enhancements of help and completion commands
  • Numerous enhancements to Image Dired
  • Double-buffering on MS-Windows

長い行を含むファイルの取り扱いの改善に関しては次のように説明されています。

Emacs is now capable of editing files with very long lines. The display of long lines has been optimized, and Emacs should no longer choke when a buffer on display contains long lines. The variable 'long-line-threshold' controls whether and when these display optimizations are in effect.

Emacsが非常に長い行を含むファイルを編集できるようになった。長い行の表示が最適化され、表示中のバッファに長い行が含まれていても、Emacsが詰まることがなくなりました。long-line-threshold'変数は、これらの表示の最適化をいつ有効にするかを制御します。

A companion variable 'large-hscroll-threshold' controls when another set of display optimizations are in effect, which are aimed specifically at speeding up display of long lines that are truncated on display.

付属の変数'large-hscroll-threshold'は、別の表示最適化セットが有効になるタイミングを制御する。これは、特に、表示時に切り捨てられる長い行の表示を高速化することを目的としている。

If you still experience slowdowns while editing files with long lines, this may be due to line truncation, or to one of the enabled minor modes, or to the current major mode. Try turning off line truncation with 'C-x x t', or try disabling all known slow minor modes with 'M-x so-long-minor-mode', or try disabling both known slow minor modes and the major mode with 'M-x so-long-mode', or visit the file with 'M-x find-file-literally' instead of the usual 'C-x C-f'.

長い行のあるファイルを編集しているときに速度低下が発生する場合は、行の切り捨て、有効になっているマイナーモード、または現在のメジャーモードが原因である可能性があります。C-x x t'で行の切り捨てをオフにしてみるか、'M-x so-long-minor-mode'で既知の遅いマイナーモードをすべて無効にしてみるか、'M-x so-long-mode'で既知の遅いマイナーモードとメジャーモードの両方を無効にしてみるか、通常の'C-x C-f'の代わりに'M-x find-file-literally'でファイルを訪れてみてください。

確かにこれまでEmacsで非常に長い行を含むテキストファイルを開こうとすると固まってしまうことがありました。バージョンアップによってこの問題が解決している事を期待したいと思います。

新機能の詳細はNEWSファイルなどで確認可能です。

S icon タイトル GNU Emacs
公式サイト https://www.gnu.org/software/emacs/
ソフトアンテナ https://softantenna.com/softwares/6967-gnu-emacs
説明 GNUが開発する高機能でカスタマイズ性の高いテキストエディタ。
よかったらシェアしてね!
  • URLをコピーしました!
  • URLをコピーしました!
目次