Mercurial > emacs
annotate lisp/obsolete/swedish.el @ 110772:cd2496a17cf2
Merge changes made ein Gnus trunk.
gnus-util.el (gnus-completing-read-function): Exclude gnus-icompleting-read and gnus-ido-completing-read from candidates for XEmacs since iswitchb.el is very old and ido.el is unavailable in XEmacs.
gnus-registry.el (gnus-registry-install-nnregistry): Rewrite so as not to use `delete-dups' that is unavailable in XEmacs 21.4.
author | Katsumi Yamaoka <yamaoka@jpl.org> |
---|---|
date | Tue, 05 Oct 2010 06:36:32 +0000 |
parents | 1d1d5d9bd884 |
children | 376148b31b5e |
rev | line source |
---|---|
65082
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
1 ;;; swedish.el --- miscellaneous functions for dealing with Swedish |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
2 |
106815 | 3 ;; Copyright (C) 1988, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 |
74509 | 4 ;; Free Software Foundation, Inc. |
65082
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
5 |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
6 ;; Author: Howard Gayle |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
7 ;; Maintainer: FSF |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
8 ;; Keywords: i18n |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
9 |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
10 ;; This file is part of GNU Emacs. |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
11 |
94667
43d30a1ea764
Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents:
94000
diff
changeset
|
12 ;; GNU Emacs is free software: you can redistribute it and/or modify |
65082
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
13 ;; it under the terms of the GNU General Public License as published by |
94667
43d30a1ea764
Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents:
94000
diff
changeset
|
14 ;; the Free Software Foundation, either version 3 of the License, or |
43d30a1ea764
Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents:
94000
diff
changeset
|
15 ;; (at your option) any later version. |
65082
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
16 |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
17 ;; GNU Emacs is distributed in the hope that it will be useful, |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
18 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
19 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
20 ;; GNU General Public License for more details. |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
21 |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
22 ;; You should have received a copy of the GNU General Public License |
94667
43d30a1ea764
Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents:
94000
diff
changeset
|
23 ;; along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. |
65082
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
24 |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
25 ;;; Commentary: |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
26 |
94000
ee22366f2a68
Add a comment giving version of obsolescence.
Glenn Morris <rgm@gnu.org>
parents:
93975
diff
changeset
|
27 ;; This file has been obsolete since Emacs 22.1. |
ee22366f2a68
Add a comment giving version of obsolescence.
Glenn Morris <rgm@gnu.org>
parents:
93975
diff
changeset
|
28 |
90224
2d92f5c9d6ae
Revision: miles@gnu.org--gnu-2005/emacs--unicode--0--patch-78
Miles Bader <miles@gnu.org>
parents:
65096
diff
changeset
|
29 ;; Fixme: Is this actually used? if so, it should be in language, |
2d92f5c9d6ae
Revision: miles@gnu.org--gnu-2005/emacs--unicode--0--patch-78
Miles Bader <miles@gnu.org>
parents:
65096
diff
changeset
|
30 ;; possibly as a feature property of Swedish, probably defining a |
2d92f5c9d6ae
Revision: miles@gnu.org--gnu-2005/emacs--unicode--0--patch-78
Miles Bader <miles@gnu.org>
parents:
65096
diff
changeset
|
31 ;; `swascii' coding system. |
2d92f5c9d6ae
Revision: miles@gnu.org--gnu-2005/emacs--unicode--0--patch-78
Miles Bader <miles@gnu.org>
parents:
65096
diff
changeset
|
32 |
65082
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
33 ;;; Code: |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
34 |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
35 ;; Written by Howard Gayle. See case-table.el for details. |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
36 |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
37 ;; See iso-swed.el for a description of the character set. |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
38 |
65137
4377043d399d
Move the `defvar's to the top level.
Juanma Barranquero <lekktu@gmail.com>
parents:
65096
diff
changeset
|
39 (defvar mail-send-hook) |
4377043d399d
Move the `defvar's to the top level.
Juanma Barranquero <lekktu@gmail.com>
parents:
65096
diff
changeset
|
40 (defvar news-group-hook-alist) |
4377043d399d
Move the `defvar's to the top level.
Juanma Barranquero <lekktu@gmail.com>
parents:
65096
diff
changeset
|
41 (defvar news-inews-hook) |
65096
53f6f03cfce2
(news-inews-hook, news-group-hook-alist, mail-send-hook):
Juanma Barranquero <lekktu@gmail.com>
parents:
65082
diff
changeset
|
42 |
65082
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
43 (defvar swedish-re |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
44 "[ \t\n]\\(och\\|att\\|en\\|{r\\|\\[R\\|p}\\|P\\]\\|som\\|det\\|av\\|den\\|f|r\\|F\\\\R\\)[ \t\n.,?!:;'\")}]" |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
45 "Regular expression for common Swedish words.") |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
46 |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
47 (defvar swascii-to-8859-trans |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
48 (let ((string (make-string 256 ? )) |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
49 (i 0)) |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
50 (while (< i 256) |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
51 (aset string i i) |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
52 (setq i (1+ i))) |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
53 (aset string ?\[ 196) |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
54 (aset string ?\] 197) |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
55 (aset string ?\\ 214) |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
56 (aset string ?^ 220) |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
57 (aset string ?\{ 228) |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
58 (aset string ?\} 229) |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
59 (aset string ?\` 233) |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
60 (aset string ?\| 246) |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
61 (aset string ?~ 252) |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
62 string) |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
63 "Trans table from SWASCII to 8859.") |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
64 |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
65 ; $ is not converted because it almost always means US |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
66 ; dollars, not general currency sign. @ is not converted |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
67 ; because it is more likely to be an at sign in a mail address |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
68 ; than an E with acute accent. |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
69 |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
70 (defun swascii-to-8859-buffer () |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
71 "Convert characters in buffer from Swedish/Finnish-ascii to ISO 8859/1. |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
72 Works even on read-only buffers. `$' and `@' are not converted." |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
73 (interactive) |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
74 (let ((buffer-read-only nil)) |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
75 (translate-region (point-min) (point-max) swascii-to-8859-trans))) |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
76 |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
77 (defun swascii-to-8859-buffer-maybe () |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
78 "Call swascii-to-8859-buffer if the buffer looks like Swedish-ascii. |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
79 Leaves point just after the word that looks Swedish." |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
80 (interactive) |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
81 (let ((case-fold-search t)) |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
82 (if (re-search-forward swedish-re nil t) |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
83 (swascii-to-8859-buffer)))) |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
84 |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
85 (setq rmail-show-message-hook 'swascii-to-8859-buffer-maybe) |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
86 |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
87 (setq news-group-hook-alist |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
88 (append '(("^swnet." . swascii-to-8859-buffer-maybe)) |
65096
53f6f03cfce2
(news-inews-hook, news-group-hook-alist, mail-send-hook):
Juanma Barranquero <lekktu@gmail.com>
parents:
65082
diff
changeset
|
89 (bound-and-true-p news-group-hook-alist))) |
65082
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
90 |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
91 (defvar 8859-to-swascii-trans |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
92 (let ((string (make-string 256 ? )) |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
93 (i 0)) |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
94 (while (< i 256) |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
95 (aset string i i) |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
96 (setq i (1+ i))) |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
97 (aset string 164 ?$) |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
98 (aset string 196 ?\[) |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
99 (aset string 197 ?\]) |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
100 (aset string 201 ?@) |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
101 (aset string 214 ?\\) |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
102 (aset string 220 ?^) |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
103 (aset string 228 ?\{) |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
104 (aset string 229 ?\}) |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
105 (aset string 233 ?\`) |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
106 (aset string 246 ?\|) |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
107 (aset string 252 ?~) |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
108 string) |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
109 "8859 to SWASCII trans table.") |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
110 |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
111 (defun 8859-to-swascii-buffer () |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
112 "Convert characters in buffer from ISO 8859/1 to Swedish/Finnish-ascii." |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
113 (interactive "*") |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
114 (translate-region (point-min) (point-max) 8859-to-swascii-trans)) |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
115 |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
116 (setq mail-send-hook '8859-to-swascii-buffer) |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
117 (setq news-inews-hook '8859-to-swascii-buffer) |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
118 |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
119 ;; It's not clear what purpose is served by a separate |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
120 ;; Swedish mode that differs from Text mode only in having |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
121 ;; a separate abbrev table. Nothing says that the abbrevs you |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
122 ;; define in Text mode have to be English! |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
123 |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
124 ;(defvar swedish-mode-abbrev-table nil |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
125 ; "Abbrev table used while in swedish mode.") |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
126 ;(define-abbrev-table 'swedish-mode-abbrev-table ()) |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
127 |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
128 ;(defun swedish-mode () |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
129 ; "Major mode for editing Swedish text intended for humans to |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
130 ;read. Special commands:\\{text-mode-map} |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
131 ;Turning on swedish-mode calls the value of the variable |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
132 ;text-mode-hook, if that value is non-nil." |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
133 ; (interactive) |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
134 ; (kill-all-local-variables) |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
135 ; (use-local-map text-mode-map) |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
136 ; (setq mode-name "Swedish") |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
137 ; (setq major-mode 'swedish-mode) |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
138 ; (setq local-abbrev-table swedish-mode-abbrev-table) |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
139 ; (set-syntax-table text-mode-syntax-table) |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
140 ; (run-mode-hooks 'text-mode-hook)) |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
141 |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
142 ;(defun indented-swedish-mode () |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
143 ; "Major mode for editing indented Swedish text intended for |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
144 ;humans to read.\\{indented-text-mode-map} |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
145 ;Turning on indented-swedish-mode calls the value of the |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
146 ;variable text-mode-hook, if that value is non-nil." |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
147 ; (interactive) |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
148 ; (kill-all-local-variables) |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
149 ; (use-local-map text-mode-map) |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
150 ; (define-abbrev-table 'swedish-mode-abbrev-table ()) |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
151 ; (setq local-abbrev-table swedish-mode-abbrev-table) |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
152 ; (set-syntax-table text-mode-syntax-table) |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
153 ; (make-local-variable 'indent-line-function) |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
154 ; (setq indent-line-function 'indent-relative-maybe) |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
155 ; (use-local-map indented-text-mode-map) |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
156 ; (setq mode-name "Indented Swedish") |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
157 ; (setq major-mode 'indented-swedish-mode) |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
158 ; (run-mode-hooks 'text-mode-hook)) |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
159 |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
160 (provide 'swedish) |
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
161 |
93975
1e3a407766b9
Fix up comment convention on the arch-tag lines.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
91327
diff
changeset
|
162 ;; arch-tag: a117019d-acac-4ac4-8eac-0dbd49a41d32 |
65082
7f8dd08fc498
Moved from international. Old log:
Jan Djärv <jan.h.d@swipnet.se>
parents:
diff
changeset
|
163 ;;; swedish.el ends here |