all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* abbrev_defs encoding issues
@ 2011-06-06 11:25 Andreas Röhler
  2011-06-06 16:34 ` Stefan Monnier
  0 siblings, 1 reply; 5+ messages in thread
From: Andreas Röhler @ 2011-06-06 11:25 UTC (permalink / raw)
  To: Emacs developers

Hi,

when using Emacs 24.. and Emacs 23.. series parallel or
consecutive, I'm running into trouble due to different
encoding for ~/.abbrev_defs - 23 uses emacs-mule, while 24 uses utf-8.

Having a look into NEWS.23

"** The abbrevs file is now a file named abbrev_defs in
user-emacs-directory; but the old location, ~/.abbrev_defs, is used if
that file exists."

that might be avoided to a certain extend by requiring the new location 
for 24 series.

Maybe some warning should user try to change that might help too.

Best regards,

Andreas

--
https://code.launchpad.net/~a-roehler/python-mode/components-python-mode
https://code.launchpad.net/s-x-emacs-werkstatt/




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: abbrev_defs encoding issues
  2011-06-06 11:25 abbrev_defs encoding issues Andreas Röhler
@ 2011-06-06 16:34 ` Stefan Monnier
  2011-06-06 17:40   ` Andreas Röhler
  2011-06-06 17:56   ` Andreas Röhler
  0 siblings, 2 replies; 5+ messages in thread
From: Stefan Monnier @ 2011-06-06 16:34 UTC (permalink / raw)
  To: Andreas Röhler; +Cc: Emacs developers

> when using Emacs 24.. and Emacs 23.. series parallel or
> consecutive, I'm running into trouble due to different
> encoding for ~/.abbrev_defs - 23 uses emacs-mule, while 24 uses utf-8.

Care to tell us what kind of trouble you bump into?


        Stefan



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: abbrev_defs encoding issues
  2011-06-06 16:34 ` Stefan Monnier
@ 2011-06-06 17:40   ` Andreas Röhler
  2011-06-06 18:52     ` Stefan Monnier
  2011-06-06 17:56   ` Andreas Röhler
  1 sibling, 1 reply; 5+ messages in thread
From: Andreas Röhler @ 2011-06-06 17:40 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: Emacs developers

Am 06.06.2011 18:34, schrieb Stefan Monnier:
>> when using Emacs 24.. and Emacs 23.. series parallel or
>> consecutive, I'm running into trouble due to different
>> encoding for ~/.abbrev_defs - 23 uses emacs-mule, while 24 uses utf-8.
>
> Care to tell us what kind of trouble you bump into?
>
>
>          Stefan
>

if an .abbrev_def is saved from v24, which has been edited from v23 
before, all german umlauts gets destroyed for example:

(the corresponding upper part gets displayed further below in the diff)

<     ("ürr" "Überraschung" nil 0)
<     ("üs" "überaus" nil 0)
<     ("ütr" "Übertragung" nil 0)
<     ("ütre" "übertreiben" nil 0)
<     ("ütro" "übertroffen" nil 0)
<     ("ütt" "erschüttert" nil 0)
<     ("üu" "Übung" nil 0)
<     ("üz" "Überzeugung" nil 0)
<     ("üzd" "überzeugend" nil 0)
<     ("üzn" "Überzeugungen" nil 0)
<     ("üzt" "überzeugt" nil 0)
---
 >     ("��" "da��" nil 0)
 >     ("��h" "Mi��handlung" nil 0)
 >     ("��dt" "��nderte" nil 0)
 >     ("��g" "��gypten" nil 0)
 >     ("��ge" "��gyptische" nil 0)
 >     ("��gen" "��gyptischen" nil 0)
 >     ("��n" "ausl��ndischen" nil 0)
 >     ("��nd" "��nderungen" nil 0)
 >     ("��r" "��lter" nil 0)
 >     ("��u��" "��u��erung" nil 0)
 >     ("��u\201\337" "��u\201\337erung" nil 0)
 >     ("����" "��u��erten" nil 0)
 >     ("��\201\337" "��u\201\337erten" nil 0)



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: abbrev_defs encoding issues
  2011-06-06 16:34 ` Stefan Monnier
  2011-06-06 17:40   ` Andreas Röhler
@ 2011-06-06 17:56   ` Andreas Röhler
  1 sibling, 0 replies; 5+ messages in thread
From: Andreas Röhler @ 2011-06-06 17:56 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: Emacs developers

correcting my previous posting:

edits have been done lately in v23, v24 abbrev are destroyed:

RCS file: .abbrev_defs,v
retrieving revision 1.1
diff -r1.1 .abbrev_defs
1c1
< ;;-*-coding: utf-8;-*-
---
 > ;;-*-coding: emacs-mule;-*-
149c149
<     ("staf" "Stammesführer" nil 0)
---
 >     ("staf" "Stammesf��hrer" nil 0)
152c152
<     ("stap" "Stabilitätspakt" nil 0)
---
 >     ("stap" "Stabilit��tspakt" nil 0)
155c155
<     ("stb" "Stabilität" nil 0)
---
 >     ("stb" "Stabilit��t" nil 0)
159c159
<     ("stee" "Steuererhöhung" nil 0)
---
 >     ("stee" "Steuererh��hung" nil 0)




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: abbrev_defs encoding issues
  2011-06-06 17:40   ` Andreas Röhler
@ 2011-06-06 18:52     ` Stefan Monnier
  0 siblings, 0 replies; 5+ messages in thread
From: Stefan Monnier @ 2011-06-06 18:52 UTC (permalink / raw)
  To: Andreas Röhler; +Cc: Emacs developers

> if an .abbrev_def is saved from v24, which has been edited from v23 before,
> all german umlauts gets destroyed for example:

This diff only shows that the byte-sequence has been changed, not that
the result will behave differently.  Since the encoding is different,
it's no wonder that non-ascii chars get represented differently.

Do you actually see ill-behavior?


        Stefan



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-06-06 18:52 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-06 11:25 abbrev_defs encoding issues Andreas Röhler
2011-06-06 16:34 ` Stefan Monnier
2011-06-06 17:40   ` Andreas Röhler
2011-06-06 18:52     ` Stefan Monnier
2011-06-06 17:56   ` Andreas Röhler

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.