1. 30 Jan, 2015 9 commits
  2. 29 Jan, 2015 2 commits
  3. 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]
    • 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.
    • Fabián Ezequiel Gallina's avatar
      Cleanup lisp/ChangeLog · 028ddef7
      Fabián Ezequiel Gallina authored
    • 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.
  4. 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
    • 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.
    • 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.
    • 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 ...")
    • Katsumi Yamaoka's avatar
      lisp/ChangeLog (2015-01-27): Add bug# · de925ab1
      Katsumi Yamaoka authored
    • 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-levels): Mark obsolete.
      (python-indent-context): Return more context cases.
      (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.
    • Katsumi Yamaoka's avatar
  5. 26 Jan, 2015 6 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.
      * 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.
    • 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-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.
    • 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         |         |
       ---------- ---- ---- ----
    • Lars Magne Ingebrigtsen's avatar
    • Lars Magne Ingebrigtsen's avatar
    • Lars Ingebrigtsen's avatar
      * lisp/net/eww.el (eww-add-bookmark): Fix prompt · c3d4505b
      Lars Ingebrigtsen authored
      And clean up the code slightly.
  6. 25 Jan, 2015 2 commits
  7. 23 Jan, 2015 1 commit
  8. 22 Jan, 2015 5 commits
    • Paul Eggert's avatar
      Don't downcase system diagnostics' first letters · 8dd58a2d
      Paul Eggert authored
      * etc/NEWS: Document this.
      * lisp/emacs-lisp/bytecomp.el (byte-compile-file):
      * lisp/ffap.el (find-file-at-point):
      * lisp/files.el (insert-file-1):
      * lisp/net/ange-ftp.el (ange-ftp-barf-if-not-directory)
      * lisp/progmodes/etags.el (visit-tags-table):
      * lisp/url/url-dav.el (url-dav-delete-directory, url-dav-delete-file)
      Keep diagnostics consistent with system's.
      * lisp/erc/erc-dcc.el (erc-dcc-server):
      * lisp/ffap.el (ffap-machine-p):
      Ignore case while comparing diagnostics.
      * src/fileio.c (report_file_errno): Don't downcase, and simplify.
      Fixes: bug#19642
    • Stefan Monnier's avatar
      Avoid generating invalid usage info for pathological function · 938bca8e
      Stefan Monnier authored
      Fixes: debbugs:19645
      * lisp/help.el (help-make-usage): Don't turn a "_" arg into an empty-string.
      * lisp/emacs-lisp/cl-generic.el (cl--generic-lambda): Don't confuse a string
      body with a docstring.
    • Wolfgang Jenkner's avatar
      Backport: Handle the `neg' operator in some calc-units functions. · 3a345b50
      Wolfgang Jenkner authored
      * lisp/calc/calc-units.el (math-units-in-expr-p)
      (math-single-units-in-expr-p, math-find-compatible-unit-rec)
      (math-extract-units): Handle the `neg' operator.  (Bug#19582)
      * test/automated/calc-tests.el (calc-tests-equal, calc-tests-simple):
      New functions.
      (test-calc-remove-units, test-calc-extract-units)
      (test-calc-convert-units): New tests.
    • Dmitry Gutov's avatar
      xref: Replace defgeneric and defmethod with cl- counterparts · 03346fb0
      Dmitry Gutov authored
      * lisp/progmodes/xref.el (xref-location-marker, xref-location-group):
      Use `cl-defgeneric' and `cl-defmethod' instead of the EIEIO
      * lisp/progmodes/etags.el (xref-location-marker): Same.
    • Dmitry Gutov's avatar
      xref: Input history and minor tweaks · a17a5dae
      Dmitry Gutov authored
      * lisp/progmodes/xref.el (xref--current): Rename from `xref--selected'.
      (xref--inhibit-mark-current): Rename from
      `xref--inhibit-mark-selected'.  Update the usages.
      (xref-quit): Reword the docstring.  Kill buffers after quitting
      windows instead of before.
      (xref--insert-xrefs): Tweak help-echo.
      (xref--read-identifier-history, xref--read-pattern-history):
      New variables.
      (xref--read-identifier, xref-find-apropos): Use them.
  9. 21 Jan, 2015 1 commit
    • Ulrich Müller's avatar
      Allow update-game-score to run sgid instead of suid. · 20f66485
      Ulrich Müller authored
      * configure.ac (gamegroup): New AC_SUBST.
      (--with-gameuser): Allow to specify a group instead of a user.
      In the default case, check at configure time if a 'games' user
      * lib-src/update-game-score.c: Allow the program to run sgid
      instead of suid, in order to match common practice for most games.
      (main): Check if we are running sgid.  Pass appropriate file
      permission bits to 'write_scores'.
      (write_scores): New 'mode' argument, instead of hardcoding 0644.
      (get_prefix): Update error message.
      * lib-src/Makefile.in (gamegroup): New variable, set by configure.
      ($(DESTDIR)${archlibdir}): Handle both suid or sgid when
      installing the 'update-game-score' program.
      * lisp/play/gamegrid.el (gamegrid-add-score-with-update-game-score):
      Allow the 'update-game-score' helper program to run suid or sgid.