summaryrefslogtreecommitdiff
path: root/src/abbrev.c
Commit message (Collapse)AuthorAgeFilesLines
* Rewrite abbrev.c in Elisp.Stefan Monnier2007-10-281-803/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * image.c (Qcount): Don't declare as extern. (syms_of_image): Initialize and staticpro `Qcount'. * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions. * emacs.c (main): Don't call syms_of_abbrev. * Makefile.in (obj): Remove abbrev.o. (abbrev.o): Remove. * abbrev.c: Remove. Rewrite abbrev.c in Elisp. * abbrev.el (abbrev-mode): Move custom group from cus-edit.el. (abbrev-table-get, abbrev-table-put, abbrev-get) (abbrev-put, make-abbrev-table, abbrev-table-p, clear-abbrev-table) (define-abbrev, abbrev--check-chars, define-global-abbrev) (define-mode-abbrev, abbrev--active-tables, abbrev-symbol) (abbrev-expansion, abbrev--before-point, expand-abbrev) (unexpand-abbrev, abbrev--write, abbrev--describe) (insert-abbrev-table-description, define-abbrev-table): New funs, largely transcribed from abbrev.c. (abbrev-with-wrapper-hook): New macro. (abbrev-table-name-list, global-abbrev-table) (abbrev-minor-mode-table-alist, fundamental-mode-abbrev-table) (abbrevs-changed, abbrev-all-caps, abbrev-start-location) (abbrev-start-location-buffer, last-abbrev, last-abbrev-text) (last-abbrev-location, pre-abbrev-expand-hook, abbrev-expand-function): New vars, largely transcribed from abbrev.c. * cus-edit.el (abbrev-mode): Remove. Move to abbrev.el. * cus-start.el: Remove abbrev-all-caps and pre-abbrev-expand-hook. * loadup.el: Load "abbrev.el" before "lisp-mode.el".
* * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.Stefan Monnier2007-10-021-3/+0
| | | | | | | (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c. * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER): * lread.c (defvar_per_buffer): * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
* Merge from emacs--rel--22Miles Bader2007-07-261-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | Patches applied: * emacs--rel--22 (patch 70-73) - Update from CVS 2007-07-25 Glenn Morris <rgm@gnu.org> * Relicense all FSF files to GPLv3 or later. Revision: emacs@sv.gnu.org/emacs--devo--0--patch-828
| * Switch license to GPLv3 or later.Glenn Morris2007-07-251-1/+1
| |
* | (abbrev_check_chars): New function.Glenn Morris2007-07-171-2/+72
|/ | | | | (Fdefine_global_abbrev, Fdefine_mode_abbrev): Call abbrev_check_chars to check abbrev characters are word constituents. Doc fix.
* (Fdefine_abbrev): Doc fix.Richard M. Stallman2007-04-221-1/+1
|
* Add 2007 to copyright years.Glenn Morris2007-01-211-1/+1
|
* (syms_of_abbrev) <last-abbrev-text>: Doc fix.Juanma Barranquero2006-12-101-1/+1
|
* (Qforce): New Lisp_Object.Glenn Morris2006-12-051-3/+18
| | | | | | (Fdefine_abbrev): Do not overwrite non-system abbrevs with system abbrevs, unless 'force is applied. (syms_of_abbrev): Add Qforce.
* (Finsert_abbrev_table_description): Sort the abbrevs alphabetically.Richard M. Stallman2006-04-181-2/+24
| | | | (record_symbol): New function.
* Update years in copyright notice; nfc.Thien-Thi Nguyen2006-02-061-1/+1
|
* Update years in copyright notice; nfc.Thien-Thi Nguyen2005-08-071-2/+2
|
* Update FSF's address.Lute Kamstra2005-07-041-2/+2
|
* (Funexpand_abbrev): Follow error conventions.Juanma Barranquero2005-06-231-1/+1
|
* (Fexpand_abbrev): Undo previous change.Richard M. Stallman2004-07-311-2/+2
|
* (Fexpand_abbrev): Run Qpre_abbrev_expand_hookRichard M. Stallman2004-07-241-2/+2
| | | | only when a real abbrev is present.
* Update copyright.Kim F. Storm2004-06-161-1/+1
|
* (Finsert_abbrev_table_description): Doc fix.Luc Teirlinck2004-02-241-1/+2
|
* Add arch taglinesMiles Bader2003-09-011-0/+3
|
* (Fexpand_abbrev): Insert before deleting.Richard M. Stallman2003-08-291-2/+5
|
* (Fdefine_abbrev_table): Use XCAR, XCDR.Stefan Monnier2003-04-171-2/+2
|
* Trailing whitespace deleted.Juanma Barranquero2003-02-041-1/+1
|
* (Fexpand_abbrev): Fix for the multibyte case.Kenichi Handa2002-08-201-7/+21
|
* Most uses of XSTRING combined with STRING_BYTES or indirection changed toKen Raeburn2002-07-151-5/+5
| | | | | SCHARS, SBYTES, STRING_INTERVALS, SREF, SDATA; explicit size_byte references left unchanged for now.
* * abbrev.c (write_abbrev): Use SYMBOL_NAME instead of XSYMBOL andKen Raeburn2002-05-201-1/+1
| | | | name field.
* (abbrev-start-location): Doc fix.Pavel Janík2002-04-251-3/+3
|
* Add comment of arbitrary chosen constant 59.Pavel Janík2002-04-221-0/+1
|
* Change defvar_int def and vars to use EMACS_INT instead of just int.Stefan Monnier2002-03-041-1/+1
|
* (Fexpand_abbrev): Increment plist as use count only if it is an integer.Richard M. Stallman2002-03-031-1/+1
|
* * abbrev.c (Fexpand_abbrev): Use NILP instead of implicit zeroKen Raeburn2001-12-291-1/+1
| | | | comparison to test lisp value returned by Fget.
* Use the plist of an abbrev for multiple params if nec.Richard M. Stallman2001-12-281-21/+80
| | | | | | | | | | | (Fdefine_abbrev): New arg SYSTEM-FLAG for a system abbrev. (Fdefine_global_abbrev, Fdefine_mode_abbrev): Update calls to Fdefine_abbrev. (write_abbrev): Update for changed data format. Don't list "system" abbrevs. (Fexpand_abbrev): Update use count with new data format. (describe_abbrev): Update for changed data format. (Fdefine_abbrev_table): Handle the new SYSTEM-FLAG.
* (Fexpand_abbrev): Use Frun_hooks instead of Vrun_hooks.Richard M. Stallman2001-11-261-2/+1
|
* Update usage of CHECK_ macros (remove unused second argument).Pavel Janík2001-11-021-10/+10
|
* (Finsert_abbrev_table_description): Reindent.Pavel Janík2001-10-211-1/+1
|
* Change doc-string comments to `new style' [w/`doc:' keyword].Miles Bader2001-10-171-54/+54
|
* Put doc strings in comments.Pavel Janík2001-10-151-85/+86
|
* Use SYMBOL_VALUE/ SET_SYMBOL_VALUE macros instead of accessingGerd Moellmann2001-10-051-12/+14
| | | | symbols' value directly.
* (syms_of_abbrev): Set buffer_default's abbrev tableGerd Moellmann2000-06-191-0/+1
| | | | to Vfundamental_mode_abbrev_table.
* Comment change.Richard M. Stallman2000-01-211-4/+7
|
* (Fexpand_abbrev): If expanding an abbrev which has onlyGerd Moellmann1999-12-301-1/+14
| | | | | | a hook, and the hook has a non-nil `no-self-insert' property, let the return value of the hook specify whether an expansion took place. If it returns nil, no expansion has been performed.
* (Fexpand_abbrev): Remove unused variables.Gerd Moellmann1999-09-201-1/+0
|
* (Fdefine_abbrev): Doc fix.Richard M. Stallman1999-05-181-1/+3
|
* Include charset.h.Kenichi Handa1998-11-161-0/+1
|
* (Funexpand_abbrev): Add ADJUST instead of subtracting.Richard M. Stallman1998-08-051-1/+1
|
* Fix -Wimplicit warnings.Andreas Schwab1998-04-141-0/+1
|
* Use STRING_BYTES and SET_STRING_BYTES.Richard M. Stallman1998-03-211-3/+3
|
* Reorder args of del_range_both.Karl Heuer1998-02-251-1/+1
|
* Update copyright year.Richard M. Stallman1998-01-211-1/+1
|
* (Fexpand_abbrev): Pass both kinds of size to oblookup.Richard M. Stallman1998-01-051-6/+10
| | | | | (Fexpand_abbrev): Pass new args to insert_from_string. (Funexpand_abbrev): Likewise. Use size_byte.
* Update copyright year.Richard M. Stallman1998-01-011-1/+1
|