~ubuntu-branches/ubuntu/karmic/emacs-snapshot/karmic

« back to all changes in this revision

Viewing changes to src/composite.c

  • Committer: Bazaar Package Importer
  • Author(s): Romain Francoise
  • Date: 2007-07-01 18:41:19 UTC
  • mfrom: (1.1.21 upstream)
  • Revision ID: james.westby@ubuntu.com-20070701184119-1n27qhw9b1ee633k
Tags: 1:20070701-1
New snapshot (from the EMACS_22_BASE branch).

Show diffs side-by-side

added added

removed removed

Lines of Context:
500
500
         avoid it, in such a case, we change the property of the
501
501
         latter to the copy of it.  */
502
502
      if (from > BEGV
503
 
          && find_composition (from - 1, -1, &start, &end, &prop, Qnil))
 
503
          && find_composition (from - 1, -1, &start, &end, &prop, Qnil)
 
504
          && COMPOSITION_VALID_P (start, end, prop))
504
505
        {
505
506
          if (from < end)
506
507
            Fput_text_property (make_number (from), make_number (end),
510
511
          from = end;
511
512
        }
512
513
      else if (from < ZV
513
 
               && find_composition (from, -1, &start, &from, &prop, Qnil))
 
514
               && find_composition (from, -1, &start, &from, &prop, Qnil)
 
515
               && COMPOSITION_VALID_P (start, from, prop))
514
516
        run_composition_function (start, from, prop);
515
517
    }
516
518
 
521
523
         (to - 1).  */
522
524
      while (from < to - 1
523
525
             && find_composition (from, to, &start, &from, &prop, Qnil)
 
526
             && COMPOSITION_VALID_P (start, from, prop)
524
527
             && from < to - 1)
525
528
        run_composition_function (start, from, prop);
526
529
    }
528
531
  if (check_mask & CHECK_TAIL)
529
532
    {
530
533
      if (from < to
531
 
          && find_composition (to - 1, -1, &start, &end, &prop, Qnil))
 
534
          && find_composition (to - 1, -1, &start, &end, &prop, Qnil)
 
535
          && COMPOSITION_VALID_P (start, end, prop))
532
536
        {
533
537
          /* TO should be also at composition boundary.  But,
534
538
             insertion or deletion will make two compositions adjacent
542
546
          run_composition_function (start, end, prop);
543
547
        }
544
548
      else if (to < ZV
545
 
               && find_composition (to, -1, &start, &end, &prop, Qnil))
 
549
               && find_composition (to, -1, &start, &end, &prop, Qnil)
 
550
               && COMPOSITION_VALID_P (start, end, prop))
546
551
        run_composition_function (start, end, prop);
547
552
    }
548
553
}