all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Jean Louis <bugs@gnu.support>
To: carlmarcos@tutanota.com
Cc: Help Gnu Emacs <help-gnu-emacs@gnu.org>
Subject: Re: Adding multiple lists to global-abbrev-table
Date: Thu, 4 Aug 2022 07:29:00 +0300	[thread overview]
Message-ID: <YutLDIgq9T7bNGik@protected.localdomain> (raw)
In-Reply-To: <N8ZJIUL--3-2@tutanota.com>

* 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/



      parent reply	other threads:[~2022-08-04  4:29 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=YutLDIgq9T7bNGik@protected.localdomain \
    --to=bugs@gnu.support \
    --cc=carlmarcos@tutanota.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.