Commit 434eeae3 authored by Johan Sundström's avatar Johan Sundström
Browse files

Texts imported to kom are rarely, if ever, in swascii; do not treat them as such.

parent 5ff963c6
2002-02-04 Johan Sundström <jhs@lysator.liu.se>
* view-text.el
(lyskom-view-text-convert-ISO-646-SE-to-ISO-8859-1):
Also, don't convert texts created by a mail importer. (The theory
here is that all ol'e farts writing swedish in swascii pursue this
practice only in kom, and that few people writing on mailing lists
imported to kom do.)
2002-01-30 Johan Sundström <jhs@lysator.liu.se> 2002-01-30 Johan Sundström <jhs@lysator.liu.se>
* view-text.el * view-text.el
......
...@@ -425,13 +425,15 @@ when put in your `lyskom-view-text-hook'." ...@@ -425,13 +425,15 @@ when put in your `lyskom-view-text-hook'."
;(add-hook 'lyskom-view-text-hook 'lyskom-filter-signature-hook) ;(add-hook 'lyskom-view-text-hook 'lyskom-filter-signature-hook)
(defun lyskom-view-text-convert-ISO-646-SE-to-ISO-8859-1 () (defun lyskom-view-text-convert-ISO-646-SE-to-ISO-8859-1 ()
"Display r{ksm|rg}s as räksmörgås (unless \"å o\"; converting "Display r{ksm|rg}s as räksmörgås unless the text is an imported mail
][\\}{| but not ^~@`. Yet another useful function to put in your or we are reviewing without conversion. In other words, the characters
`lyskom-view-text-hook'." ][\\}{| are converted, however ^~@` are not. Yet another useful function
to put in your `lyskom-view-text-hook'."
;; First the hard part - should we patch the text ;; First the hard part - should we patch the text
;; in the text object? ;; in the text object?
(if (not (equal lyskom-current-command (unless (or (equal lyskom-current-command
'kom-review-noconversion)) 'kom-review-noconversion)
(lyskom-text-is-mail-p lyskom-view-text-text-stat))
;; Yes, modify the text from the text-object (stored in mod) ;; Yes, modify the text from the text-object (stored in mod)
(let* ((mod (aref (cdr lyskom-view-text-text) 1)) (let* ((mod (aref (cdr lyskom-view-text-text) 1))
(brk (string-match "\n" mod)) (brk (string-match "\n" mod))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment