<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>20388</bug_id>
          
          <creation_ts>2009-06-09 16:01:02 +0400</creation_ts>
          <short_desc>doesn&apos;t treat the pasted text from X correctly as text (word wrapping, fonts)</short_desc>
          <delta_ts>2014-11-05 20:42:51 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>3</classification_id>
          <classification>Distributions</classification>
          <product>Branch 4.1</product>
          <component>emacs22-X11-gtk</component>
          <version>unspecified</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ivan Zakharyaschev">imz</reporter>
          <assigned_to name="Nobody&apos;s working on this, feel free to take it">nobody</assigned_to>
          
          
          <qa_contact name="qa-4.1@altlinux.org">qa-4.1</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>92794</commentid>
    <comment_count>0</comment_count>
    <who name="Ivan Zakharyaschev">imz</who>
    <bug_when>2009-06-09 16:01:02 +0400</bug_when>
    <thetext>emacs22-X11-gtk-22.2-alt5 in xorg-server-1.4.2-alt10.M41.1, Desktop 4.1

]$ locale
LANG=ru_RU.UTF-8
LC_CTYPE=&quot;ru_RU.UTF-8&quot;
LC_NUMERIC=&quot;ru_RU.UTF-8&quot;
LC_TIME=&quot;ru_RU.UTF-8&quot;
LC_COLLATE=&quot;ru_RU.UTF-8&quot;
LC_MONETARY=&quot;ru_RU.UTF-8&quot;
LC_MESSAGES=&quot;ru_RU.UTF-8&quot;
LC_PAPER=&quot;ru_RU.UTF-8&quot;
LC_NAME=&quot;ru_RU.UTF-8&quot;
LC_ADDRESS=&quot;ru_RU.UTF-8&quot;
LC_TELEPHONE=&quot;ru_RU.UTF-8&quot;
LC_MEASUREMENT=&quot;ru_RU.UTF-8&quot;
LC_IDENTIFICATION=&quot;ru_RU.UTF-8&quot;
LC_ALL=
$ 

How to reproduce:

start emacs in X, M-x text-mode, and paste a long Russian line from Firefox into Emacs (by middle-clicking or through the clipboard -- it doesn&apos;t matter), for example:

дивять десять одиннадцать двенадцать тринадцать четырнадцать пятнадцать шестнадцать семнадцать восемнадцать девятнадцать двадцать

then press space.

Result: the long pasted line is wrapped, but at wrong places (inside words):

дивять десять одиннадцать двенадцать
тринадцать четырнадцать пятнадцать ш
естнадцать семнадцать восемнадцать д
евятнадцать двадцать 

If you type one more word in Russian (e.g., &quot;дивять&quot;), you&apos;ll see that the fonts for the pasted text and normally entered text are different. (It&apos;s ugly for the pasted text.)

Then, M-x ispell-change-dictionary russian, M-x flyspell-buffer, and you&apos;ll see that the misspelt &quot;дивять&quot; in the pasted text is not detected, but the one entered in the normal way is detected as misspelt.

Expected: pasted Russian text is treated correctly as text.

Workaround: save the buffer to file immediately after pasting, and re-open it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>92827</commentid>
    <comment_count>1</comment_count>
    <who name="Eugene Vlasov">eugvv</who>
    <bug_when>2009-06-09 23:00:46 +0400</bug_when>
    <thetext>Cannot reproduce this bug in clean emacs (started as &quot;emacs -Q&quot;) or with site-file (emacs -q). Please provide minimal test case (init file and installed extensions) for reproduce bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>148672</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Shigorin">mike</who>
    <bug_when>2014-11-05 20:42:51 +0300</bug_when>
    <thetext>В 4.1/branch исправления не будут вноситься уже технически (заглушена очередь на сборку), поэтому прошу ошибки, актуальные для sisyphus/p7/t7, перевесить на текущие ветки или сизиф.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>