1. 02 Feb, 2015 2 commits
  2. 01 Feb, 2015 7 commits
  3. 31 Jan, 2015 1 commit
    • Stefan Monnier's avatar
      EIEIO: Simplify help hyperlinks; Try and reduce hardcoding in .elc · e0be229d
      Stefan Monnier authored
      * lisp/emacs-lisp/cl-generic.el (cl--generic-search-method): Fix regexp.
      
      * lisp/emacs-lisp/eieio-core.el (eieio--check-type): Remove.
      Use cl-check-type everywhere instead.
      (eieio-class-object): Remove, use find-class instead when needed.
      (class-p): Don't inline.
      (eieio-object-p): Check more thoroughly, so we don't treat cl-structs,
      such as eieio classes, as objects.  Don't inline.
      (object-p): Mark as obsolete.
      (eieio-defclass-autoload, eieio-defclass-internal, eieio-oref)
      (eieio--generic-tagcode): Avoid `class-p'.
      (eieio-make-class-predicate, eieio-make-child-predicate): New functions.
      (eieio-defclass-internal): Use current-load-list rather than
      `class-location'.
      
      * lisp/emacs-lisp/eieio-opt.el (eieio-help-class, eieio-help-constructor):
      Use find-lisp-object-file-name, help-fns-short-filename and new calling
      convention for eieio-class-def.
      (eieio-build-class-list): Remove function, unused.
      (eieio-method-def): Remove button type, unused.
      (eieio-class-def): Inherit from help-function-def.
      (eieio--defclass-regexp): New constant.
      (find-function-regexp-alist): Use it.
      (eieio--specializers-apply-to-class-p): Handle eieio--static as well.
      (eieio-help-find-method-definition, eieio-help-find-class-definition):
      Remove functions.
      
      * lisp/emacs-lisp/eieio.el (defclass): Use new eieio-make-class-predicate
      and eieio-make-child-predicate.
      (eieio-class-parents): Use eieio--class-object.
      (slot-boundp, find-class, eieio-override-prin1): Avoid class-p.
      (slot-exists-p): Use find-class.
      
      * test/automated/eieio-tests.el (eieio-test-23-inheritance-check): Simplify.
      e0be229d
  4. 30 Jan, 2015 9 commits
  5. 29 Jan, 2015 2 commits
  6. 28 Jan, 2015 5 commits
    • Stefan Monnier's avatar
    • Tassilo Horn's avatar
      Fix issues with BibTeX entries containing ")". · ba10f4b5
      Tassilo Horn authored
      * textmodes/reftex.el (reftex-syntax-table-for-bib): Give ( and )
      punctuation syntax since to allow bibtex fields with values such
      as {Test 1) and 2)} (bug#19205, bug#19707).
      (reftex--prepare-syntax-tables): New function.
      (reftex-mode): Use it.
      
      [backport from trunk]
      ba10f4b5
    • Tassilo Horn's avatar
      Fix issues with BibTeX entries containing ")". · 8a8bd38f
      Tassilo Horn authored
      * textmodes/reftex.el (reftex-syntax-table-for-bib): Give ( and )
      punctuation syntax since to allow bibtex fields with values such
      as {Test 1) and 2)} (bug#19205, bug#19707).
      (reftex--prepare-syntax-tables): New function.
      (reftex-mode): Use it.
      8a8bd38f
    • Fabián Ezequiel Gallina's avatar
      Cleanup lisp/ChangeLog · 028ddef7
      Fabián Ezequiel Gallina authored
      028ddef7
    • Stefan Monnier's avatar
      Tighten up the tagcode used for eieio and cl-struct objects · 2668ac1a
      Stefan Monnier authored
      * lisp/emacs-lisp/eieio-core.el (eieio-defclass-internal): Set the function
      slot of the tag symbol to :quick-object-witness-check.
      (eieio-object-p): Use :quick-object-witness-check.
      (eieio--generic-tagcode): Use cl--generic-struct-tag.
      * lisp/emacs-lisp/cl-preloaded.el: New file.
      * lisp/emacs-lisp/cl-macs.el (cl--bind-inits): Remove, unused.
      (cl--transform-lambda, cl-destructuring-bind): Remove cl--bind-inits.
      (cl--make-usage-args): Strip away &aux args.
      (cl-case, cl-typecase, cl--parse-loop-clause): Use macroexp-let2.
      (cl-the, cl-check-type): Use macroexp-let2 and cl-typep.
      (cl-defstruct): Use `declare' and cl-struct-define.
      * lisp/emacs-lisp/cl-generic.el (cl--generic-struct-tag): New function.
      (cl--generic-struct-tagcode): Use it to tighten the tagcode.
      * lisp/loadup.el: Load cl-preloaded.
      * src/lisp.mk (lisp): Add cl-preloaded.
      2668ac1a
  7. 27 Jan, 2015 9 commits
    • Katsumi Yamaoka's avatar
    • Ivan Shmakov's avatar
      Allow for adding new members to Tar archives. · a56eab82
      Ivan Shmakov authored
      * lisp/tar-mode.el: Allow for adding new archive members.
      (tar-new-regular-file-header, tar--pad-to, tar--put-at)
      (tar-header-serialize): New functions.
      (tar-current-position): Split from tar-current-descriptor.
      (tar-current-descriptor): Use it.
      (tar-new-entry): New command.
      (tar-mode-map): Bind it.
      * doc/emacs/files.texi (File Archives): Document "I" for tar-new-entry.
      * etc/NEWS: Mention the new tar-new-entry command.
      
      Fixes: debbugs:19274
      a56eab82
    • Sam Steingold's avatar
      minor tweaks for `python-check' · bd7a1e15
      Sam Steingold authored
      * lisp/progmodes/python.el (python-check-custom-command): Buffer local
      because it usually includes the buffer name.
      (python-check-command): Set to epylint when pyflakes is not available.
      bd7a1e15
    • Thomas Fitzsimmons's avatar
      EUDC: New maintainer · 3a546663
      Thomas Fitzsimmons authored
      * net/eudcb-bbdb.el, net/eudcb-ldap.el, net/eudcb-mab.el,
      net/eudc-bob.el, net/eudcb-ph.el, net/eudc.el, net/eudc-export.el,
      net/eudc-hotlist.el, net/eudc-vars.el: New maintainer.
      3a546663
    • Artur Malabarba's avatar
    • Oleh Krehel's avatar
      lisp/emacs-lisp/derived.el (define-derived-mode): Declare indent 3. · 2c3b05c9
      Oleh Krehel authored
      Now, e.g. `indent-sexp' will produce:
      
          (define-derived-mode outline-mode text-mode "Outline"
            "Set ...")
      
      instead of:
      
          (define-derived-mode outline-mode text-mode "Outline"
                               "Set ...")
      2c3b05c9
    • Katsumi Yamaoka's avatar
      lisp/ChangeLog (2015-01-27): Add bug# · de925ab1
      Katsumi Yamaoka authored
      de925ab1
    • Fabián Ezequiel Gallina's avatar
      python.el: New non-global state dependent indentation engine. · 5485e3e5
      Fabián Ezequiel Gallina authored
      Fixes: debbugs:18319
      Fixes: debbugs:19595
      
      * lisp/progmodes/python.el (python-syntax-comment-or-string-p): Accept
      PPSS as argument.
      (python-syntax-closing-paren-p): New function.
      (python-indent-current-level)
      (python-indent-levels): Mark obsolete.
      (python-indent-context): Return more context cases.
      (python-indent--calculate-indentation)
      (python-indent--calculate-levels): New functions.
      (python-indent-calculate-levels): Use them.
      (python-indent-calculate-indentation, python-indent-line):
      (python-indent-line-function): Rewritten to use new API.
      (python-indent-dedent-line): Simplify logic.
      (python-indent-dedent-line-backspace): Use `unless`.
      (python-indent-toggle-levels): Delete function.
      
      * test/automated/python-tests.el (python-indent-pep8-1)
      (python-indent-pep8-2, python-indent-pep8-3)
      (python-indent-after-comment-1, python-indent-after-comment-2)
      (python-indent-inside-paren-1, python-indent-inside-paren-2)
      (python-indent-after-block-1, python-indent-after-block-2)
      (python-indent-after-backslash-1, python-indent-after-backslash-2)
      (python-indent-after-backslash-3, python-indent-block-enders-1)
      (python-indent-block-enders-2, python-indent-block-enders-3)
      (python-indent-block-enders-4, python-indent-block-enders-5)
      (python-indent-dedenters-1, python-indent-dedenters-2)
      (python-indent-dedenters-3, python-indent-dedenters-4)
      (python-indent-dedenters-5, python-indent-dedenters-6)
      (python-indent-dedenters-7, python-indent-dedenters-8): Fix tests.
      (python-indent-base-case, python-indent-after-block-3)
      (python-indent-after-backslash-5, python-indent-inside-paren-3)
      (python-indent-inside-paren-4, python-indent-inside-paren-5)
      (python-indent-inside-paren-6, python-indent-inside-string-1)
      (python-indent-inside-string-2, python-indent-inside-string-3)
      (python-indent-dedent-line-backspace-1): New Tests.
      5485e3e5
    • Katsumi Yamaoka's avatar
  8. 26 Jan, 2015 5 commits
    • Stefan Monnier's avatar
      * lisp/emacs-lisp/cl-generic.el (cl--generic-method): New struct. · a9a3d429
      Stefan Monnier authored
      (cl--generic): The method-table is now a (list-of cl--generic-method).
      (cl--generic-member-method): New function.
      (cl-generic-define-method): Use it.
      (cl--generic-build-combined-method, cl--generic-cache-miss):
      Adapt to new method-table.
      (cl--generic-no-next-method-function): Add `method' argument.
      (cl-generic-call-method): Adapt to new method representation.
      (cl--generic-cnm-sample, cl--generic-nnm-sample): Adjust.
      (cl-find-method, cl-method-qualifiers): New functions.
      (cl--generic-method-info): Adapt to new method representation.
      Return a string for the qualifiers.
      (cl--generic-describe):
      * lisp/emacs-lisp/eieio-opt.el (eieio-help-class): Adjust accordingly.
      (eieio-all-generic-functions, eieio-method-documentation):
      Adjust to new method representation.
      
      * lisp/emacs-lisp/eieio-compat.el (eieio--defmethod): Use cl-find-method.
      
      * test/automated/cl-generic-tests.el: Try and make sure cl-lib is not
      required at run-time.
      a9a3d429
    • Stefan Monnier's avatar
      * lisp/emacs-lisp/cl-generic.el: Add a method-combination hook. · 4cdde919
      Stefan Monnier authored
      (cl-generic-method-combination-function): New var.
      (cl--generic-lambda): Remove `with-cnm' arg.
      (cl-defmethod): Change accordingly.
      (cl-generic-define-method): Don't check qualifiers validity.
      Preserve all qualifiers in `method-table'.
      (cl-generic-call-method): New function.
      (cl--generic-nest): Remove (morph into cl-generic-call-method).
      (cl--generic-build-combined-method): Adjust to new format of method-table
      and use cl-generic-method-combination-function.
      (cl--generic-standard-method-combination): New function, extracted from
      cl--generic-build-combined-method.
      (cl--generic-cnm-sample): Adjust to new format of method-table.
      
      * lisp/emacs-lisp/eieio-compat.el (eieio--defmethod): Use () qualifiers
      instead of :primary.
      
      * lisp/emacs-lisp/eieio-datadebug.el (eieio-debug-methodinvoke):
      Remove obsolete function.
      
      * test/automated/cl-generic-tests.el (cl-generic-test-11-next-method-p):
      New test.
      4cdde919
    • Lars Magne Ingebrigtsen's avatar
      (shr-make-table-1): Make colspan display more sensibly. · 1a369fc7
      Lars Magne Ingebrigtsen authored
      This makes display of stuff like
      
       ---------- ---- ---- ----
      |R1C1      |R1C2|R1C2|R1C2|
       ---------- ---- ---- ----
      |R2C1 and R2C2  |RC4      |
      |in one         |         |
       ---------- ---- ---- ----
      
      work
      1a369fc7
    • Lars Magne Ingebrigtsen's avatar
      776705f4
    • Lars Magne Ingebrigtsen's avatar