Skip to content
Snippets Groups Projects
Commit 1fcddcf2 authored by David Kågedal's avatar David Kågedal
Browse files

* language.el (lyskom-languages): Ny variabel.

(lyskom-define-language): Sätt den.
parent a2d921a6
No related branches found
No related tags found
No related merge requests found
...@@ -32,14 +32,19 @@ ...@@ -32,14 +32,19 @@
(require 'lyskom-vars "vars") (require 'lyskom-vars "vars")
;;; Variables
;;(defvar lyskom-language-symbols nil ;;(defvar lyskom-language-symbols nil
;; "Symbols with language data bound to them") ;; "Symbols with language data bound to them")
(defvar lyskom-languages nil
"A alist of defined languages.
Each entry is a pair (SYMBOL . (NAME NAME ...)) where symbol is the symbol
used for identification, and the NAMEs are names of the language.")
(defvar lyskom-language-categories nil (defvar lyskom-language-categories nil
"Categories used") "Categories used")
;;; Variables
(defvar lyskom-language-vars nil (defvar lyskom-language-vars nil
"A list of all language-dependent variables.") "A list of all language-dependent variables.")
...@@ -190,9 +195,11 @@ if 'lyskom-menu is not found." ...@@ -190,9 +195,11 @@ if 'lyskom-menu is not found."
(get category 'lyskom-language-symbols))) (get category 'lyskom-language-symbols)))
(defun lyskom-define-language (language name) (defun lyskom-define-language (language &rest names)
;; Do nothing for now (let ((match (assq language lyskom-languages)))
) (if match
(setcdr match names)
(setq lyskom-languages (cons (cons language names) lyskom-languages)))))
(defun lyskom-set-language (language) (defun lyskom-set-language (language)
"Set the current language to LANGUAGE." "Set the current language to LANGUAGE."
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment