* Re: master 0a15956f49: * lisp/outline.el (outline-minor-mode-use-margins): New user option.
[not found] ` <20220919193656.A2342C00872@vcs2.savannah.gnu.org>
@ 2022-09-19 19:40 ` Lars Ingebrigtsen
2022-09-19 19:42 ` Juri Linkov
0 siblings, 1 reply; 6+ messages in thread
From: Lars Ingebrigtsen @ 2022-09-19 19:40 UTC (permalink / raw
To: Juri Linkov; +Cc: emacs-devel
Juri Linkov <juri@jurta.org> writes:
> - (text " close "))
> - "Icon used for buttons for closing a section in outline buffers."
> + (text " > "))
The `text' version isn't for ASCII art, but for people that prefer text
instead of symbols. So please revert that back.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: master 0a15956f49: * lisp/outline.el (outline-minor-mode-use-margins): New user option.
2022-09-19 19:40 ` master 0a15956f49: * lisp/outline.el (outline-minor-mode-use-margins): New user option Lars Ingebrigtsen
@ 2022-09-19 19:42 ` Juri Linkov
2022-09-19 19:45 ` Lars Ingebrigtsen
0 siblings, 1 reply; 6+ messages in thread
From: Juri Linkov @ 2022-09-19 19:42 UTC (permalink / raw
To: Lars Ingebrigtsen; +Cc: emacs-devel
>> - (text " close "))
>> - "Icon used for buttons for closing a section in outline buffers."
>> + (text " > "))
>
> The `text' version isn't for ASCII art, but for people that prefer text
> instead of symbols. So please revert that back.
Ok, will do. But should we have an option for ASCII art when no images
and no Unicode characters are available?
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: master 0a15956f49: * lisp/outline.el (outline-minor-mode-use-margins): New user option.
2022-09-19 19:42 ` Juri Linkov
@ 2022-09-19 19:45 ` Lars Ingebrigtsen
2022-09-19 19:52 ` Juri Linkov
0 siblings, 1 reply; 6+ messages in thread
From: Lars Ingebrigtsen @ 2022-09-19 19:45 UTC (permalink / raw
To: Juri Linkov; +Cc: emacs-devel
Juri Linkov <juri@jurta.org> writes:
> Ok, will do. But should we have an option for ASCII art when no images
> and no Unicode characters are available?
Sure.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: master 0a15956f49: * lisp/outline.el (outline-minor-mode-use-margins): New user option.
2022-09-19 19:45 ` Lars Ingebrigtsen
@ 2022-09-19 19:52 ` Juri Linkov
2022-09-19 19:56 ` Lars Ingebrigtsen
0 siblings, 1 reply; 6+ messages in thread
From: Juri Linkov @ 2022-09-19 19:52 UTC (permalink / raw
To: Lars Ingebrigtsen; +Cc: emacs-devel
[-- Attachment #1: Type: text/plain, Size: 158 bytes --]
>> Ok, will do. But should we have an option for ASCII art when no images
>> and no Unicode characters are available?
>
> Sure.
Maybe something like this?
[-- Attachment #2: icon-ascii.patch --]
[-- Type: text/x-diff, Size: 2600 bytes --]
diff --git a/lisp/outline.el b/lisp/outline.el
index ab37e398e9..efebd46d69 100644
--- a/lisp/outline.el
+++ b/lisp/outline.el
@@ -315,7 +315,8 @@ outline-open
'((image "outline-open.svg" "outline-open.pbm" :height 15)
(emoji "🔽")
(symbol " ▼ ")
- (text " v "))
+ (ascii " v ")
+ (text " open "))
"Icon used for buttons for opened sections in outline buffers."
:version "29.1"
:help-echo "Close this section")
@@ -324,7 +325,8 @@ outline-close
'((image "outline-close.svg" "outline-close.pbm" :height 15)
(emoji "▶️")
(symbol " ▶ ")
- (text " > "))
+ (ascii " > ")
+ (text " close "))
"Icon used for buttons for closed sections in outline buffers."
:version "29.1"
:help-echo "Open this section")
@@ -333,7 +335,8 @@ outline-close-rtl
'((image "outline-close.svg" "outline-close.pbm" :height 15 :rotation 180)
(emoji "◀️")
(symbol " ◀ ")
- (text " < "))
+ (ascii " < ")
+ (text " close "))
"Right-to-left icon used for buttons in closed outline sections."
:version "29.1")
diff --git a/lisp/emacs-lisp/icons.el b/lisp/emacs-lisp/icons.el
index ccc3657793..732b2181bb 100644
--- a/lisp/emacs-lisp/icons.el
+++ b/lisp/emacs-lisp/icons.el
@@ -42,7 +42,7 @@ icon-button
:version "29.1"
:group 'customize)
-(defcustom icon-preference '(image emoji symbol text)
+(defcustom icon-preference '(image emoji symbol ascii text)
"List of icon types to use, in order of preference.
Emacs will choose the icon of the highest preference possible
on the current display, and \"degrade\" gracefully to an icon
@@ -52,6 +52,7 @@ icon-preference
:type '(repeat (choice (const :tag "Images" image)
(const :tag "Colorful Emojis" emoji)
(const :tag "Monochrome Symbols" symbol)
+ (const :tag "ASCII art" ascii)
(const :tag "Text Only" text))))
(defmacro define-icon (name parent specification documentation &rest keywords)
@@ -61,7 +62,7 @@ define-icon
SPECIFICATION is an alist of entries where the first element is
the type, and the rest are icons of that type. Valid types are
-`image', `emoji', `symbol' and `text'.
+`image', `emoji', `symbol', 'ascii' and `text'.
KEYWORDS specify additional information. Valid keywords are:
@@ -221,6 +222,9 @@ icons--create
(and (cl-every #'char-displayable-p icon)
icon))
+(cl-defmethod icons--create ((_type (eql 'ascii)) icon _keywords)
+ icon)
+
(cl-defmethod icons--create ((_type (eql 'text)) icon _keywords)
icon)
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: master 0a15956f49: * lisp/outline.el (outline-minor-mode-use-margins): New user option.
2022-09-19 19:52 ` Juri Linkov
@ 2022-09-19 19:56 ` Lars Ingebrigtsen
2022-09-19 20:12 ` Juri Linkov
0 siblings, 1 reply; 6+ messages in thread
From: Lars Ingebrigtsen @ 2022-09-19 19:56 UTC (permalink / raw
To: Juri Linkov; +Cc: emacs-devel
Juri Linkov <juri@jurta.org> writes:
> Maybe something like this?
Looks good to me (but I didn't actually test the patch).
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: master 0a15956f49: * lisp/outline.el (outline-minor-mode-use-margins): New user option.
2022-09-19 19:56 ` Lars Ingebrigtsen
@ 2022-09-19 20:12 ` Juri Linkov
0 siblings, 0 replies; 6+ messages in thread
From: Juri Linkov @ 2022-09-19 20:12 UTC (permalink / raw
To: Lars Ingebrigtsen; +Cc: emacs-devel
>> Maybe something like this?
>
> Looks good to me (but I didn't actually test the patch).
I failed to describe the difference between 'ascii' and 'text'
in the documentation, so I just reverted back to old text 🙃
Everyone who need ASCII art can customize the existing type 'text'.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2022-09-19 20:12 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <166361621622.23438.4967408256154572806@vcs2.savannah.gnu.org>
[not found] ` <20220919193656.A2342C00872@vcs2.savannah.gnu.org>
2022-09-19 19:40 ` master 0a15956f49: * lisp/outline.el (outline-minor-mode-use-margins): New user option Lars Ingebrigtsen
2022-09-19 19:42 ` Juri Linkov
2022-09-19 19:45 ` Lars Ingebrigtsen
2022-09-19 19:52 ` Juri Linkov
2022-09-19 19:56 ` Lars Ingebrigtsen
2022-09-19 20:12 ` Juri Linkov
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.