Download Emacs Predictive Completion Manual
Transcript
Chapter 5: Dictionaries 22 when exiting emacs). If nil, any unsaved modifications will be lost unless the dictionary is saved manually. See Section 5.2 [Loading and Saving Dictionaries], page 22. 5.2 Loading and Saving Dictionaries predictive-load-dict Load a dictionary by name, and add it to the list of dictionaries used by the current buffer. The dictionary will be included when learning from the buffer, see Section 5.5.1 [Learning from Buffers and Files], page 25, and if its autosave flag is set (see Section 5.1 [Creating Dictionaries], page 20), it will automatically be saved when the buffer is killed. The dictionary file must be in your loadpath. You should never normally need to use this command interactively, since predictive mode loads and unloads dictionaries automatically, as needed. dictree-load Load a dictionary from file. The name of the loaded dictionary is the same as the file name, with the extension removed. This will not add it to the list of dictionaries used by the current buffer (see predictive-load-dict, above). predictive-unload-dict Remove a dictionary from the list of dictionaries used by the current buffer. If the dictionary is no longer used by any other buffer, this also unloads it from Emacs. In that case, if its autosave flag is set, the dictionary will be saved before being unloaded (see Section 5.1 [Creating Dictionaries], page 20), unless this is overridden by supplying a prefix argument. You should never normally need to use this command interactively, since predictive mode loads and unloads dictionaries automatically, as needed. dictree-unload You probably don’t want to do this! Unloading a dictionary that’s still in use will cripple predictive mode, resulting in it spewing out incomprehensible Lisp errors. This command unconditionally unloads a dictionary. If the dictionary’s autosave flag is set, this will also save it (see Section 5.1 [Creating Dictionaries], page 20), unless overridden by supplying a prefix argument. predictive-save-dict Save a dictionary to its associated file. Prompt for a file name if there is none associated with the dictionary. predictive-write-dict Write a dictionary to a file specified via the mini-buffer. This also associates the dictionary with that file. If a prefix argument is supplied, you will not be asked to confirm if over-writing an existing file. predictive-save-modified-dicts Save all modified dictionaries that have a non-nil autosave flag. If a prefix argument is supplied, prompt for confirmation before saving each dictionary.