1. 16 Feb, 2017 6 commits
  2. 15 Feb, 2017 12 commits
    • Michael Albinus's avatar
      Continue to fix bug#25607 · adfb6f1d
      Michael Albinus authored
      * lisp/ido.el (ido-complete): Let-bind `non-essential' to nil.
      (ido-file-name-all-completions-1): Do not bind `non-essential'.
      
      * lisp/net/tramp.el: (tramp-completion-file-name-handler):
      Improve autoloaded version.
      (tramp-completion-file-name-handler): Remove old compat code.
      Check only for `tramp-completion-mode-p'.
      (tramp-completion-mode-p): Autoload.  Do not check any longer
      for `last-input-event'.
      (tramp-completion-handle-expand-file-name): Simplify.  (Bug#25607)
      adfb6f1d
    • Michal Nazarewicz's avatar
      casing: don’t assume letters are *either* upper- or lower-case (bug#24603) · 6220faeb
      Michal Nazarewicz authored
      A compatibility digraph characters, such as Dž, are neither upper- nor
      lower-case.  At the moment however, those are reported as upper-case¹
      despite the fact that they change when upper-cased.
      
      Stop checking if a character is upper-case before trying to up-case it
      so that title-case characters are handled correctly.  This fixes one of
      the issues mentioned in bug#24603.
      
      ¹ Because they change when converted to lower-case.  Notice an asymmetry
        in that for a character to be considered lower-case it must not be
        upper-case (plus the usual condition of changing when upper-cased).
      
      * src/buffer.h (upcase1): Delete.
      (upcase): Change to upcase character unconditionally just like downcase
      does it.  This is what upcase1 was.
      
      * src/casefiddle.c (casify_object, casify_region): Use upcase instead
      of upcase1 and don’t check !uppercasep(x) before calling upcase.
      
      * src/keyboard.c (read_key_sequence): Don’t check if uppercase(x), just
      downcase(x) and see if it changed.
      
      * test/src/casefiddle-tests.el (casefiddle-tests--characters,
      casefiddle-tests-casing): Update test cases which are now passing.
      6220faeb
    • Michal Nazarewicz's avatar
      Generate upcase and downcase tables from Unicode data (bug#24603) · 5ec3a584
      Michal Nazarewicz authored
      Use Unicode data to generate case tables instead of mostly repeating
      them in lisp code.  Do that in a way which maps ‘Dz’ (and similar)
      digraph to ‘dz’ when down- and ‘DZ’ when upcasing.
      
      https://debbugs.gnu.org/cgi/bugreport.cgi?msg=89;bug=24603 lists all
      changes to syntax table and case tables introduced by this commit.
      
      * lisp/international/characters.el: Remove case-pairs defined with
      explicit Lisp code and instead use Unicode character properties.
      
      * test/src/casefiddle-tests.el (casefiddle-tests--characters,
      casefiddle-tests-casing): Update test cases which are now working
      as they should.
      5ec3a584
    • Michal Nazarewicz's avatar
      Add tests for casefiddle.c (bug#24603) · 0d429065
      Michal Nazarewicz authored
      Fixes cases marked FIXME upcoming in followup commits.
      
      * test/src/casefiddle-tests.el (casefiddle-tests-char-properties,
      casefiddle-tests-case-table, casefiddle-tests-casing-character,
      casefiddle-tests-casing, casefiddle-tests-casing-byte8,
      casefiddle-tests-casing-byte8-with-changes): New tests.
      (casefiddle-tests--test-casing): New helper function for runnig
      some of the tests.
      0d429065
    • Michal Nazarewicz's avatar
      oldXMenu: add missing #include <string.h> · aeeb86c9
      Michal Nazarewicz authored
      Some of the files in oldXMenu use functions from string.h without
      including that header which results in compile warnings:
      
      	ChgPane.c:46:5: warning: implicit declaration of function ‘strlen’
      	ChgPane.c:46:20: warning: incompatible implicit declaration of
      		built-in function ‘strlen’
      	ChgSel.c:62:2: warning: implicit declaration of function ‘strlen’
      	ChgSel.c:62:17: warning: incompatible implicit declaration of built-in
      		function ‘strlen’
      	Create.c:220:5: warning: implicit declaration of function ‘strcmp’
      	InsPane.c:65:5: warning: implicit declaration of function ‘strlen’
      	InsPane.c:65:20: warning: incompatible implicit declaration of
      		built-in function ‘strlen’
      	InsSel.c:68:5: warning: implicit declaration of function ‘strlen’
      	InsSel.c:68:20: warning: incompatible implicit declaration of built-in
      		function ‘strlen’
      	InsSel.c:75:5: warning: implicit declaration of function ‘strcmp’
      
      Add the necessary ‘#include <string.h>’.
      
      oldXMenu/ChgPane.c, oldXMenu/ChgSel.c, oldXMenu/Create.c, oldXMenu/InsPane.c,
      oldXMenu/InsSel.c: add missing #include <string.h>
      aeeb86c9
    • Paul Eggert's avatar
      Fixup recent rmail patch · e6041a05
      Paul Eggert authored
      * lisp/mail/rmail.el (rmail-epa-decrypt): Remove unused local.
      e6041a05
    • Richard Stallman's avatar
      Rmail fix · 971f4fab
      Richard Stallman authored
      * lisp/mail/rmail.el (rmail-epa-decrypt-1): Include the just-decrypted text
      as element 4 of the value.
      (rmail-epa-decrypt): Take the text to insert from that element.
      971f4fab
    • Vibhav Pant's avatar
      bytecomp-tests.el: Store all test forms in one constant. · 96e18ebb
      Vibhav Pant authored
      * test/lisp/emacs-lisp/bytecomp-tests.el: Store all test expressions
      in a single constant (byte-opt-testsuite-arith-data), add new forms
      which generate lapcode with adjacent/redundant tags.
      96e18ebb
    • Glenn Morris's avatar
      Small lispref edit · 1b685e7a
      Glenn Morris authored
      * doc/lispref/os.texi (User Identification):
      Remove extraneous detail about user-mail-address.
      1b685e7a
    • Katsumi Yamaoka's avatar
      Document fill-separate-heterogeneous-words-with-space (bug#25685) · 8a9c468b
      Katsumi Yamaoka authored
      * doc/lispref/text.texi (Filling):
      Document fill-separate-heterogeneous-words-with-space (bug#25685).
      8a9c468b
    • Noam Postavsky's avatar
      Test comment-multi-line = nil auto fill case too · 0a646662
      Noam Postavsky authored
      * test/lisp/progmodes/js-tests.el (js-mode-auto-fill): Test with
      `comment-multi-line' both nil and non-nil.
      * lisp/newcomment.el (comment-multi-line): Mark safe if it's a
      boolean.
      * etc/NEWS: Mention that `js-mode' now sets `comment-multi-line'.
      0a646662
    • Katsumi Yamaoka's avatar
      Don't delete leading and trailing space from CJK word (bug#25685) · 61ea36bb
      Katsumi Yamaoka authored
      * lisp/textmodes/fill.el (fill-delete-newlines):
      Don't delete leading and trailing space from CJK word.
      (fill-separate-heterogeneous-words-with-space):
      New user option that controls it (bug#25685).
      61ea36bb
  3. 14 Feb, 2017 6 commits
  4. 13 Feb, 2017 13 commits
  5. 12 Feb, 2017 3 commits
    • Karl Fogel's avatar
      Convert more uses of `looking-at' to `following-char' · a84da83c
      Karl Fogel authored
      This follows up to Mark Oteiza's commit of 12 Feb 2017, 14:46:03 UTC
      (commit 91478f46) with more of the same.
      
      * lisp/bookmark.el (bookmark-send-edited-annotation):
        (bookmark-bmenu-execute-deletions): Replace instances of looking-at
        with char comparisons using following-char.
      a84da83c
    • Paul Eggert's avatar
      Fix typos in tests for lax-plist-get etc. · d4429dfd
      Paul Eggert authored
      Problem reported by Eli Zaretskii (Bug#25606#62).
      * test/src/fns-tests.el (test-cycle-lax-plist-get)
      (test-cycle-plist-put, test-cycle-lax-plist-put):
      Fix tests to match behavior.
      d4429dfd
    • Michael Albinus's avatar
      Fix bug#25607 · 0769c995
      Michael Albinus authored
      * lisp/net/tramp.el (tramp-completion-file-name-handler):
      Improve autoloaded version.
      (tramp-autoload-file-name-handler): Avoid recursive load.
      (tramp-completion-handle-expand-file-name): Handle empty NAME.
      (Bug#25607)
      0769c995