mirror of
https://github.com/joaotavora/yasnippet.git
synced 2026-02-04 06:32:24 +00:00
Consider fundamental-mode as ultimate ancestor
* yasnippet.el (yas--modes-to-activate): If a mode doesn't have a `derived-mode-parent' property, use `fundamental-mode'. * yasnippet-tests.el (loading-with-cyclic-parenthood) (issue-492-and-494): Expect fundamental-mode to be active. * doc/snippet-expansion.org (Eligible snippets): Mention that fundamental-mode is a fallback parent mode.
This commit is contained in:
@@ -161,11 +161,13 @@ In particular, the following things matter:
|
||||
=M-x describe-variable RET major-mode RET= to find out which major
|
||||
mode you are in currently.
|
||||
|
||||
- Parent tables
|
||||
- Parent tables
|
||||
|
||||
Snippet tables defined as the parent of some other eligible table are
|
||||
also considered. This works recursively, i.e. parents of parents of
|
||||
eligible tables are also considered.
|
||||
Snippet tables defined as the parent of some other eligible table
|
||||
are also considered. This works recursively, i.e., parents of
|
||||
parents of eligible tables are also considered. As a special case,
|
||||
if a mode doesn't have a parent, then =fundamental-mode= is
|
||||
considered to be its parent.
|
||||
|
||||
- Buffer-local list of extra modes
|
||||
|
||||
|
||||
Reference in New Issue
Block a user