From 188acbf7faeb39274953ecacd5dcab1cfb6e161d Mon Sep 17 00:00:00 2001 From: JenChieh Date: Sat, 27 Jan 2024 20:36:42 -0800 Subject: [PATCH] docs: Expose reach verbosity --- docs/content/en/Development-API/_index.md | 10 ++++++++++ docs/content/zh-TW/Development-API/_index.md | 10 ++++++++++ 2 files changed, 20 insertions(+) diff --git a/docs/content/en/Development-API/_index.md b/docs/content/en/Development-API/_index.md index f624d34f..93f8a1c0 100644 --- a/docs/content/en/Development-API/_index.md +++ b/docs/content/en/Development-API/_index.md @@ -734,6 +734,16 @@ Define each log level color. (error . ansi-red))) ``` +## 🔍 Function: eask-reach-verbosity-p (`symbol`) + +Make execution when it reaches the verbosity level. + +```elisp +(when (eask-reach-verbosity-p 'debug) + ;; TODO: execution here.. + ) +``` + ## 🔍 Macro: eask-with-verbosity (`symbol` &rest `body`) Define verbosity scope. diff --git a/docs/content/zh-TW/Development-API/_index.md b/docs/content/zh-TW/Development-API/_index.md index 098207bf..634f1c1a 100644 --- a/docs/content/zh-TW/Development-API/_index.md +++ b/docs/content/zh-TW/Development-API/_index.md @@ -726,6 +726,16 @@ $ cat /.log/messages.log (error . ansi-red))) ``` +## 🔍 函式: eask-reach-verbosity-p (`symbol`) + +達到詳細等級時執行。 + +```elisp +(when (eask-reach-verbosity-p 'debug) + ;; TODO: 在這裡執行.. + ) +``` + ## 🔍 巨集: eask-with-verbosity (`symbol` &rest `body`) 定義消息範圍。