From f30f243573c3a1485c0700fee1174acb72fdd05e Mon Sep 17 00:00:00 2001
From: h-east <h.east.727@gmail.com>
Date: Tue, 22 Apr 2025 20:59:45 +0900
Subject: [PATCH 1/3] Update autocmd.{txt,jax}

---
 doc/autocmd.jax | 15 ++++++++++++++-
 en/autocmd.txt  | 15 ++++++++++++++-
 2 files changed, 28 insertions(+), 2 deletions(-)

diff --git a/doc/autocmd.jax b/doc/autocmd.jax
index 3fdc87c85..60cd9ea1b 100644
--- a/doc/autocmd.jax
+++ b/doc/autocmd.jax
@@ -1,4 +1,4 @@
-*autocmd.txt*   For Vim バージョン 9.1.  Last change: 2025 Apr 04
+*autocmd.txt*   For Vim バージョン 9.1.  Last change: 2025 Apr 21
 
 
 		  VIMリファレンスマニュアル    by Bram Moolenaar
@@ -404,6 +404,7 @@ Vimは以下のイベントを認識する。イベント名が大文字か小
 |CmdlineChanged|	コマンドラインのテキストに変更が加えられた後
 |CmdlineEnter|		カーソルがコマンドラインに移動した後
 |CmdlineLeave|		カーソルがコマンドラインを離れる前
+|CmdlineLeavePre|	コマンドラインを離れる前
 
 |InsertEnter|		挿入モードを開始したとき
 |InsertChange|		挿入や置換モードで<Insert>をタイプしたとき
@@ -645,6 +646,18 @@ CmdlineLeave			カーソルがコマンドラインを離れる前、非イン
 				<afile> はコマンドラインの種類を示す 1 文字に
 				設定される。
 				|cmdwin-char|
+							*CmdlineLeavePre*
+CmdlineLeavePre			コマンドラインを抜ける直前、かつ
+				|CmdlineLeave| の前に発生する。この情報は
+				|CmdlineLeave| が呼び出される前にクリアされる
+				ため、|cmdcomplete_info()| で補完情報を取得す
+				るのに便利である。マッピングで ":" を非対話的
+				に使用した場合に発生するが、|<Cmd>| を使用する
+				場合は発生しない。また、CTRL-C または <Esc> を
+				入力してコマンドラインを終了した場合にも発生す
+				る。<afile> には、コマンドラインの種類を示す 1
+				文字が設定される。
+				詳細は |cmdwin-char| を参照。
 							*CmdwinEnter*
 CmdwinEnter			Command-lineウィンドウに入った後。この特殊な
 				ウィンドウに対してのみオプションを設定するのに
diff --git a/en/autocmd.txt b/en/autocmd.txt
index b9b76ffce..204a9117c 100644
--- a/en/autocmd.txt
+++ b/en/autocmd.txt
@@ -1,4 +1,4 @@
-*autocmd.txt*   For Vim version 9.1.  Last change: 2025 Apr 04
+*autocmd.txt*   For Vim version 9.1.  Last change: 2025 Apr 21
 
 
 		  VIM REFERENCE MANUAL    by Bram Moolenaar
@@ -398,6 +398,7 @@ Name			triggered by ~
 |CmdlineChanged|	after a change was made to the command-line text
 |CmdlineEnter|		after the cursor moves to the command line
 |CmdlineLeave|		before the cursor leaves the command line
+|CmdlineLeavePre|	before preparing to leave the command line
 
 |InsertEnter|		starting Insert mode
 |InsertChange|		when typing <Insert> while in Insert or Replace mode
@@ -639,6 +640,18 @@ CmdlineLeave			Before leaving the command line; including
 				<afile> is set to a single character,
 				indicating the type of command-line.
 				|cmdwin-char|
+							*CmdlineLeavePre*
+CmdlineLeavePre			Just before leaving the command line, and
+				before |CmdlineLeave|.  Useful for capturing
+				completion info with |cmdcomplete_info()|, as
+				this information is cleared before
+				|CmdlineLeave| is triggered.  Triggered for
+				non-interactive use of ":" in a mapping, but
+				not when using |<Cmd>|.  Also triggered when
+				abandoning the command line by typing CTRL-C
+				or <Esc>.  <afile> is set to a single
+				character indicating the command-line type.
+				See |cmdwin-char| for details.
 							*CmdwinEnter*
 CmdwinEnter			After entering the command-line window.
 				Useful for setting options specifically for

From b101403307c96bef7875a4e3bad018aaa2b16cb7 Mon Sep 17 00:00:00 2001
From: h_east <h.east.727@gmail.com>
Date: Sat, 26 Apr 2025 23:18:46 +0900
Subject: [PATCH 2/3] Update doc/autocmd.jax

Co-authored-by: Tsuyoshi CHO <Tsuyoshi.CHO+github@Gmail.com>
---
 doc/autocmd.jax | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/doc/autocmd.jax b/doc/autocmd.jax
index 60cd9ea1b..2bfb9a26d 100644
--- a/doc/autocmd.jax
+++ b/doc/autocmd.jax
@@ -648,9 +648,9 @@ CmdlineLeave			カーソルがコマンドラインを離れる前、非イン
 				|cmdwin-char|
 							*CmdlineLeavePre*
 CmdlineLeavePre			コマンドラインを抜ける直前、かつ
-				|CmdlineLeave| の前に発生する。この情報は
+				|CmdlineLeave| の前に発生する。補完情報は
 				|CmdlineLeave| が呼び出される前にクリアされる
-				ため、|cmdcomplete_info()| で補完情報を取得す
+				ため、|cmdcomplete_info()| はこの情報を取得す
 				るのに便利である。マッピングで ":" を非対話的
 				に使用した場合に発生するが、|<Cmd>| を使用する
 				場合は発生しない。また、CTRL-C または <Esc> を

From 85319826ad7803f82aba8c12a3e61701e9e49fd8 Mon Sep 17 00:00:00 2001
From: h_east <h.east.727@gmail.com>
Date: Wed, 30 Apr 2025 10:28:01 +0900
Subject: [PATCH 3/3] Update doc/autocmd.jax

Co-authored-by: Tsuyoshi CHO <Tsuyoshi.CHO+github@Gmail.com>
---
 doc/autocmd.jax | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/doc/autocmd.jax b/doc/autocmd.jax
index 2bfb9a26d..91d2a414a 100644
--- a/doc/autocmd.jax
+++ b/doc/autocmd.jax
@@ -404,7 +404,7 @@ Vimは以下のイベントを認識する。イベント名が大文字か小
 |CmdlineChanged|	コマンドラインのテキストに変更が加えられた後
 |CmdlineEnter|		カーソルがコマンドラインに移動した後
 |CmdlineLeave|		カーソルがコマンドラインを離れる前
-|CmdlineLeavePre|	コマンドラインを離れる前
+|CmdlineLeavePre|	コマンドラインを離れる準備の前
 
 |InsertEnter|		挿入モードを開始したとき
 |InsertChange|		挿入や置換モードで<Insert>をタイプしたとき