all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Abbrevs
@ 2003-08-26  8:59 Super-User
  2003-08-27 14:56 ` Abbrevs Kevin Rodgers
  0 siblings, 1 reply; 2+ messages in thread
From: Super-User @ 2003-08-26  8:59 UTC (permalink / raw)


Hello,
I have the following problem with Abbrevs:
"GNU Emacs 20.7.1 (sparc-sun-solaris2.8, X toolkit)\n of Tue Oct 16 2001 on jupiter"
............................................................
a. ELISP> (abbrev-expansion "XSAR_1" shell-mode-abbrev-table)
   "/export/home/JUPITER_XSAR_1/"
b. ELISP> (expand-abbrev)
   nil

Question: Why does (expand-abbrev) not the same work as
          `abbrev-expansion' obviously does?  
Do I need any setup of variables such that Abbrevs accepts uppercase
abbrevs? 

Thank you very much in advance for any hint.

Regards Willi.Rattei@dlr.de

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Abbrevs
  2003-08-26  8:59 Abbrevs Super-User
@ 2003-08-27 14:56 ` Kevin Rodgers
  0 siblings, 0 replies; 2+ messages in thread
From: Kevin Rodgers @ 2003-08-27 14:56 UTC (permalink / raw)


Super-User wrote:

> Hello,
> I have the following problem with Abbrevs:
> "GNU Emacs 20.7.1 (sparc-sun-solaris2.8, X toolkit)\n of Tue Oct 16 2001 on jupiter"
> ............................................................
> a. ELISP> (abbrev-expansion "XSAR_1" shell-mode-abbrev-table)
>    "/export/home/JUPITER_XSAR_1/"
> b. ELISP> (expand-abbrev)
>    nil
> 
> Question: Why does (expand-abbrev) not the same work as
>           `abbrev-expansion' obviously does?  
> Do I need any setup of variables such that Abbrevs accepts uppercase
> abbrevs? 


`C-h f' is your friend:


| abbrev-expansion is a built-in function.
| (abbrev-expansion ABBREV &optional TABLE)
|
| Return the string that ABBREV expands into in the current buffer.
| Optionally specify an abbrev table as second arg;
| then ABBREV is looked up in that table only.

| expand-abbrev is an interactive built-in function.
| (expand-abbrev)
|
| Expand the abbrev before point, if there is an abbrev there.
| Effective when explicitly called even when `abbrev-mode' is nil.
| Returns the abbrev symbol, if expansion took place.

-- 
Kevin Rodgers

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-08-27 14:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-08-26  8:59 Abbrevs Super-User
2003-08-27 14:56 ` Abbrevs Kevin Rodgers

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.