]> code.delx.au - gnu-emacs/commitdiff
Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs.
authorK. Handa <handa@gnu.org>
Mon, 29 Dec 2014 13:54:07 +0000 (22:54 +0900)
committerK. Handa <handa@gnu.org>
Mon, 29 Dec 2014 13:54:07 +0000 (22:54 +0900)
1  2 
lisp/ChangeLog
lisp/international/mule.el

diff --combined lisp/ChangeLog
index 48c73bb4196c65fe737e4ba7a79580569d2a7dcb,82608b76b57fa103aac10921cda237cc22c4c4b4..64ead04f4b65105e2a54205290e0f8c387b0c2c6
@@@ -1,8 -1,56 +1,61 @@@
 +2014-12-29  K. Handa  <handa@gnu.org>
 +
 +      * international/mule.el (make-translation-table-from-alist):
 +      Accept nil or zero-length vector for FROM and TO.
 +
+ 2014-12-29  Lars Ingebrigtsen  <larsi@gnus.org>
+       * net/eww.el (eww-mode): Truncate overlong lines for prettier
+       display when resizing.
+       * net/shr.el (shr-width): Default to using the window width when
+       rendering.
+ 2014-12-29  Dmitry Gutov  <dgutov@yandex.ru>
+       Unbreak jumping to an alias's definition.
+       * emacs-lisp/find-func.el (find-function-library): Return a pair
+       (ORIG-FUNCTION . LIBRARY) instead of just its second element.
+       (find-function-noselect): Use it.
+       * progmodes/elisp-mode.el (elisp--xref-identifier-file): Rename to
+       `elisp--xref-identifier-location', incorporate logic from
+       `elisp--xref-find-definitions', use the changed
+       `find-function-library' return value.
+ 2014-12-29  Juri Linkov  <juri@linkov.net>
+       * comint.el (comint-history-isearch-message): Use field-beginning
+       instead of comint-line-beginning-position - that's more fixes for
+       http://lists.gnu.org/archive/html/emacs-devel/2014-12/msg00305.html
+       (comint-history-isearch-message): Fix args of isearch-message-prefix.
+ 2014-12-29  Juri Linkov  <juri@linkov.net>
+       * vc/vc-dir.el (vc-dir-display-file): New command (bug#19450).
+       (vc-dir-mode-map): Bind it to "\C-o".
+       (vc-dir-menu-map): Add it to menu.
+ 2014-12-29  Dmitry Gutov  <dgutov@yandex.ru>
+       * progmodes/etags.el (find-tag-other-window)
+       (find-tag-other-frame, find-tag-regexp, tags-loop-continue)
+       (tags-apropos): Declare obsolete.
+       * menu-bar.el (menu-bar-goto-menu): Replace all but one etags item
+       with xref ones.
+ 2014-12-28  Eli Zaretskii  <eliz@gnu.org>
+       * international/mule.el (define-coding-system): Fix typos in the
+       doc string.
+ 2014-12-28  Kenichi Handa  <handa@gnu.org>
+       * international/mule.el (define-coding-system): Improve the doc
+       string.
  2014-12-28  Ivan Shmakov  <ivan@siamics.net>
  
        * net/shr.el (shr-tag-table): Fix handling of tbody/header/footer
index fd527b1059e34907a2600871844bac9c5327e044,c957a77e9ab776d6e36a496c28c1b20ad1f3f301..392ecff021a9cf9e79d1428c66d1934885461883
@@@ -599,21 -599,22 +599,22 @@@ opposite of decoding)
  
  The decoding is done by at most 3 steps; the first is to convert
  a byte sequence to a character sequence by one of Emacs'
- internal routines specified by :coding-type attribute.  The
+ internal routines specified by `:coding-type' attribute.  The
  optional second step is to convert the character sequence (the
  result of the first step) by a translation table specified
- by :decode-translation-table attribute.  The optional third step
- is to convert the above reslut by a Lisp function specified
- by :post-read-conversion attribute.
- The encoding is done by at most 3 steps which are reverse of the
- decoding steps.  The optional first step converts a character
- sequence to another character sequence by a Lisp function
- specified by :pre-write-conversion attribute.  The optional
- second step converts the above result by a translation table
- specified by :encode-translation-table attribute..  The third
- step converts the abobe result to a byte sequence by one of
- Emacs' internal routines specified by :coding-type attribute.
+ by `:decode-translation-table' attribute.  The optional third step
+ is to convert the above result by a Lisp function specified
+ by `:post-read-conversion' attribute.
+ The encoding is done by at most 3 steps, which are the reverse
+ of the decoding steps.  The optional first step converts a
+ character sequence to another character sequence by a Lisp
+ function specified by `:pre-write-conversion' attribute.  The
+ optional second step converts the above result by a translation
+ table specified by `:encode-translation-table' attribute.  The
+ third step converts the above result to a byte sequence by one
+ of the Emacs's internal routines specified by the `:coding-type'
+ attribute.
  
  The following attributes have special meanings.  Those labeled as
  \"(required)\" should not be omitted.
@@@ -629,53 -630,52 +630,52 @@@ decodes and encodes to.  It must be on
  `utf-16', `iso-2022', `emacs-mule', `shift-jis', `ccl',
  `raw-text', `undecided'.
  
- If VALUE is `charset', the coding system is for handling a byte
sequence in which each byte or each two to four bytes sequence
- represents a character code of a charset specified
- by :charset-list attribute.
+ If VALUE is `charset', the coding system is for handling a
byte sequence in which each byte or every two- to four-byte
sequence represents a character code of a charset specified
+ by the `:charset-list' attribute.
  
  If VALUE is `utf-8', the coding system is for handling Unicode
- UTF-8 byte sequence.  See also the documentation of the
- attribute :bom.
+ UTF-8 byte sequences.  See also the documentation of the
+ attribute `:bom'.
  
  If VALUE is `utf-16', the coding system is for handling Unicode
- UTF-16 byte sequence.  See also the documentation of the
- attributes :bom and :endian.
+ UTF-16 byte sequences.  See also the documentation of the
+ attributes :bom and `:endian'.
  
- If VALUE is `iso-2022', the coding system is for handling byte
- sequence conforming to ISO/IEC 2022.  See also the documentation
- of the attributes :charset-list, :flags, and :designation.
+ If VALUE is `iso-2022', the coding system is for handling byte
+ sequences conforming to ISO/IEC 2022.  See also the documentation
+ of the attributes `:charset-list', `:flags', and `:designation'.
  
- If VALUE is `emacs-mule', the coding system is for handling a
- byte sequence which Emacs 20 and 21 used for internal character
- representations.
+ If VALUE is `emacs-mule', the coding system is for handling
+ byte sequences which Emacs 20 and 21 used for their internal
+ representation of characters.
  
- If VALUE is `shift-jis', the coding system is for handling a byte
- sequence of Shift_JIS format.  See also the
- attribute :charset-list.
+ If VALUE is `shift-jis', the coding system is for handling byte
+ sequences of Shift_JIS format.  See also the attribute `:charset-list'.
  
- If VALUE is `ccl', the coding system uses CCL programs to decodes
- and encodes to a byte sequence.  The CCL programs must be
- specified by the attributes :ccl-decoder and :ccl-encoder.
+ If VALUE is `ccl', the coding system uses CCL programs to decode
+ and encode byte sequences.  The CCL programs must be
+ specified by the attributes `:ccl-decoder' and `:ccl-encoder'.
  
- If VALUE is `raw-text', the coding system decodes a byte sequence
as is.
+ If VALUE is `raw-text', the coding system decodes byte sequences
without any conversions.
  
  `:eol-type'
  
  VALUE is the EOL (end-of-line) format of the coding system.  It must be
  one of `unix', `dos', `mac'.  The symbol `unix' means Unix-like EOL
- \(i.e. single LF), `dos' means DOS-like EOL \(i.e. sequence of CR LF),
- and `mac' means Mac-like EOL \(i.e. single CR).  If omitted, Emacs
- detects the EOL format automatically when decoding.
+ \(i.e. a single LF character), `dos' means DOS-like EOL \(i.e. a sequence
+ of CR followed by LF), and `mac' means Mac-like EOL \(i.e. a single CR).
If omitted, Emacs detects the EOL format automatically when decoding.
  
- `:charset-list' (required if :coding-type is `charset' or `shift-jis')
+ `:charset-list' (required if `:coding-type' is `charset' or `shift-jis')
  
  VALUE must be a list of charsets supported by the coding system.
  
- If `coding-type:' is `charset', on decoding and encoding by the
+ If `coding-type:' is `charset', then on decoding and encoding by the
  coding system, if a character belongs to multiple charsets in the
- list, a charset that comes earlier in the list is selected.
+ list, a charset that comes first in the list is selected.
  
  If `:coding-type' is `iso-2022', VALUE may be `iso-2022', which
  indicates that the coding system supports all ISO-2022 based
@@@ -685,7 -685,7 +685,7 @@@ If `:coding-type' is `shift-jis', VALU
  to four charsets supported by Shift_JIS encoding scheme.  The
  first charset (one dimension) is for code space 0x00..0x7F, the
  second (one dimension) for 0xA1..0xDF, the third (two dimension)
- for 0x8140..0xEFFC, the optional fourth (thw dimension) for
+ for 0x8140..0xEFFC, the optional fourth (three dimension) for
  0xF040..0xFCFC.
  
  If `:coding-type' is `emacs-mule', VALUE may be `emacs-mule',
@@@ -711,9 -711,9 +711,9 @@@ VALUE must be a translation table to us
  VALUE must be a function to call after some text is inserted and
  decoded by the coding system itself and before any functions in
  `after-insert-functions' are called.  This function is passed one
- argument; the number of characters in the text to convert, with
+ argument: the number of characters in the text to convert, with
  point at the start of the text.  The function should leave point
the same, and return the new character count.
unchanged, and should return the new character count.
  
  `:pre-write-conversion'
  
@@@ -742,7 -742,7 +742,7 @@@ to lower case
  `:mime-text-unsuitable'
  
  VALUE non-nil means the `:mime-charset' property names a charset which
- is unsuitable for the top-level media type \"text\".
+ is unsuitable for the top-level media of type \"text\".
  
  `:flags'
  
@@@ -772,8 -772,8 +772,8 @@@ This attribute is meaningful only when 
  
  `:bom'
  
- This attributes specifies whether the coding system uses a `byte order
- mark'.  VALUE must be nil, t, or cons of coding systems whose
+ This attributes specifies whether the coding system uses a \"byte order
+ mark\".  VALUE must be nil, t, or a cons cell of coding systems whose
  `:coding-type' is `utf-16' or `utf-8'.
  
  If the value is nil, on decoding, don't treat the first two-byte as
@@@ -782,9 -782,9 +782,9 @@@ BOM, and on encoding, don't produce BO
  If the value is t, on decoding, skip the first two-byte as BOM, and on
  encoding, produce BOM bytes according to the value of `:endian'.
  
- If the value is cons, on decoding, check the first two-byte.  If they
- are 0xFE 0xFF, use the car part coding system of the value.  If they
- are 0xFF 0xFE, use the cdr part coding system of the value.
+ If the value is a cons cell, on decoding, check the first two bytes.
+ If they are 0xFE 0xFF, use the car part coding system of the value.
If they are 0xFF 0xFE, use the cdr part coding system of the value.
  Otherwise, treat them as bytes for a normal character.  On encoding,
  produce BOM bytes according to the value of `:endian'.
  
@@@ -801,14 -801,14 +801,14 @@@ This attribute is meaningful only when 
  `:ccl-decoder' (required if :coding-type is `ccl')
  
  VALUE is a CCL program name defined by `define-ccl-program'.  The
- the CCL program reads a byte sequence and writes a character
sequence as a decoding result.
+ CCL program reads a byte sequence and writes a character sequence
+ as a decoding result.
  
  `:ccl-encoder' (required if :coding-type is `ccl')
  
  VALUE is a CCL program name defined by `define-ccl-program'.  The
the CCL program reads a character sequence and writes a byte
sequence as a encoding result.
CCL program reads a character sequence and writes a byte sequence
as an encoding result.
  
  `:inhibit-null-byte-detection'
  
@@@ -2317,13 -2317,7 +2317,13 @@@ ALIST is an alist, each element has th
  FROM and TO are a character or a vector of characters.
  If FROM is a character, that character is translated to TO.
  If FROM is a vector of characters, that sequence is translated to TO.
 -The first extra-slot of the value is a translation table for reverse mapping."
 +The first extra-slot of the value is a translation table for reverse mapping.
 +
 +FROM and TO may be nil.  If TO is nil, the translation from FROM
 +to nothing is defined in the translation table and that element
 +is ignored in the reverse map.  If FROM is nil, the translation
 +from TO to nothing is defined in the reverse map only.  A vector
 +of length zero has the same meaning as specifying nil."
    (let ((tables (vector (make-char-table 'translation-table)
                        (make-char-table 'translation-table)))
        table max-lookup from to idx val)
          (setq from (cdr elt) to (car elt)))
        (if (characterp from)
            (setq idx from)
 -        (setq idx (aref from 0)
 -              max-lookup (max max-lookup (length from))))
 -      (setq val (aref table idx))
 -      (if val
 -          (progn
 -            (or (consp val)
 -                (setq val (list (cons (vector idx) val))))
 -            (if (characterp from)
 -                (setq from (vector from)))
 -            (setq val (nconc val (list (cons from to)))))
 -        (if (characterp from)
 -            (setq val to)
 -          (setq val (list (cons from to)))))
 -      (aset table idx val))
 +        (if (= (length from) 0)
 +            (setq idx nil)
 +          (setq idx (aref from 0)
 +                max-lookup (max max-lookup (length from)))))
 +      (when idx
 +        (setq val (aref table idx))
 +        (if val
 +            (progn
 +              (or (consp val)
 +                  (setq val (list (cons (vector idx) val))))
 +              (if (characterp from)
 +                  (setq from (vector from)))
 +              (setq val (nconc val (list (cons from to)))))
 +          (if (characterp from)
 +              (setq val to)
 +            (setq val (list (cons from to)))))
 +        (aset table idx val)))
        (set-char-table-extra-slot table 1 max-lookup))
      (set-char-table-extra-slot (aref tables 0) 0 (aref tables 1))
      (aref tables 0)))