* Adding multiple lists to global-abbrev-table
@ 2022-08-03 15:27 carlmarcos--- via Users list for the GNU Emacs text editor
[not found] ` <N8ZJIUL--3-2@tutanota.com-N8ZJQWQ--3-2>
2022-08-04 4:29 ` Jean Louis
0 siblings, 2 replies; 3+ messages in thread
From: carlmarcos--- via Users list for the GNU Emacs text editor @ 2022-08-03 15:27 UTC (permalink / raw)
To: Help Gnu Emacs
I want to include multiple lists (e.g. cun1 and cun2) to `global-abbrev-table'
(setq cun1
'( ("all" "l") ("as" "as") ("can" "k") ))
(setq cun2
'( ("again" "ag") ("any" "n") ("before" "bf") ))
What can I do?
^ permalink raw reply [flat|nested] 3+ messages in thread
[parent not found: <N8ZJIUL--3-2@tutanota.com-N8ZJQWQ--3-2>]
* Re: Adding multiple lists to global-abbrev-table
[not found] ` <N8ZJIUL--3-2@tutanota.com-N8ZJQWQ--3-2>
@ 2022-08-03 15:30 ` carlmarcos--- via Users list for the GNU Emacs text editor
0 siblings, 0 replies; 3+ messages in thread
From: carlmarcos--- via Users list for the GNU Emacs text editor @ 2022-08-03 15:30 UTC (permalink / raw)
To: carlmarcos; +Cc: Help Gnu Emacs
Aug 3, 2022, 15:27 by help-gnu-emacs@gnu.org:
> I want to include multiple lists (e.g. cun1 and cun2) to `global-abbrev-table'
>
> (setq cun1
> '( ("all" "l") ("as" "as") ("can" "k") ))
>
> (setq cun2
> '( ("again" "ag") ("any" "n") ("before" "bf") ))
>
> What can I do?
>
In the code I see references to EXPANSION, what is it exactly?
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Adding multiple lists to global-abbrev-table
2022-08-03 15:27 Adding multiple lists to global-abbrev-table carlmarcos--- via Users list for the GNU Emacs text editor
[not found] ` <N8ZJIUL--3-2@tutanota.com-N8ZJQWQ--3-2>
@ 2022-08-04 4:29 ` Jean Louis
1 sibling, 0 replies; 3+ messages in thread
From: Jean Louis @ 2022-08-04 4:29 UTC (permalink / raw)
To: carlmarcos; +Cc: Help Gnu Emacs
* carlmarcos--- via Users list for the GNU Emacs text editor <help-gnu-emacs@gnu.org> [2022-08-03 18:28]:
> I want to include multiple lists (e.g. cun1 and cun2) to `global-abbrev-table'
>
> (setq cun1
> '( ("all" "l") ("as" "as") ("can" "k") ))
>
> (setq cun2
> '( ("again" "ag") ("any" "n") ("before" "bf") ))
>
> What can I do?
(type-of global-abbrev-table) ⇒ vector
And what are you doing? Is it vector or what?
And how about following?
(define-abbrev-table 'global-abbrev-table
'(("actfsf" "Take action in Free Software Foundation campaigns:
https://www.fsf.org/campaigns" nil :count 4)
("bgs" "Big League Sales Closing Techniques" nil :count 1) ))
That is how you should define it if you want to define it
programmatically.
Feature is not meant to be defined programmatically but interactively
in Emacs. But you insist it should be defined programmatically.
As you insist so much on it, then you should first read Emacs Lisp
manual and Emacs manual and then inspect variable, like
{C-h v global-abbrev-table RET} and then press TAB to move to
‘../abbrev_defs’. and then press enter, most probably you would see
how it is defined in that file.
I have given you instructions how to defined abbrevs, and by playing
with it you should find out how to do it.
Emacs is for playing. You should go through all of the Help menu and
learn.
--
Jean
Take action in Free Software Foundation campaigns:
https://www.fsf.org/campaigns
In support of Richard M. Stallman
https://stallmansupport.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-08-04 4:29 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-03 15:27 Adding multiple lists to global-abbrev-table carlmarcos--- via Users list for the GNU Emacs text editor
[not found] ` <N8ZJIUL--3-2@tutanota.com-N8ZJQWQ--3-2>
2022-08-03 15:30 ` carlmarcos--- via Users list for the GNU Emacs text editor
2022-08-04 4:29 ` Jean Louis
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).