yoya / js2-mode

Automatically exported from code.google.com/p/js2-mode
0 stars 0 forks source link

Abbrev definitions are created in the fundamental mode's abbrev table #35

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Type ac into a js2-mode buffer.
2. Invoke inverse-add-mode-abbrev interactively.
3. Type appendChild and press enter.
4. Write the abbrevs file via write-abbrev-file
5. Notice the abbreviation for "ac" in ~/.abbrev_defs

What is the expected output? What do you see instead?

Should be under js2-mode-abbrev-table, which isn't defined. Instead, shows
up in fundamental-mode, which is not desired.

Please provide any additional information below.

Most major modes defvar a table and setq it in the *-mode() function, e.g.

(defvar js2-mode-abbrev-table nil
  "Abbrev table in use in `js2-mode' buffers.")
(define-abbrev-table 'js2-mode-abbrev-table ())

(defun js2-mode ()
  ...
  (setq local-abbrev-table js2-mode-abbrev-table))

Original issue reported on code.google.com by dereksla...@gmail.com on 15 Apr 2008 at 6:33

GoogleCodeExporter commented 8 years ago

Original comment by steve.ye...@gmail.com on 16 Apr 2008 at 9:56

GoogleCodeExporter commented 8 years ago

Original comment by steve.ye...@gmail.com on 19 Apr 2008 at 10:54