1. 04 Oct, 2014 2 commits
    • Stefan Monnier's avatar
      Merge trivially safe differences from standalone CC-mode. · 03c45536
      Stefan Monnier authored
      * lisp/progmodes/cc-mode.el (c-initialize-cc-mode): Don't quote a symbol
      just to then pass it to `symbol-value'.
      (prog-mode): Provide fallback definition, if needed.
      * lisp/progmodes/cc-langs.el: Always load `cl'.  Don't load `cl-lib'.
      Remove "cl-" prefix accordingly.
      * lisp/progmodes/cc-fonts.el (c-font-lock-invalid-string): Use integerp or
      characterp depending on the type of characters.
      (c-font-lock-enum-tail): Remove unused var `start'.
      * lisp/progmodes/cc-engine.el: Load CL at compile-time.
      (c-declare-lang-variables): Use mapcan.
      (c-append-to-state-cache): Remove unused var `ce+1'.
      (c-parse-state-state): Make buffer-local.
      (c-ssb-lit-begin): Remove unused var `pps-end-pos'.
      (c-just-after-func-arglist-p): Remove unused var `end'.
      * lisp/progmodes/cc-defs.el: Load cc-fix if delete-dups is undefined.
      (c-<-as-paren-syntax, c->-as-paren-syntax): Move definition earlier.
      (c-make-keywords-re): Use delete-dups.
      (c-get-current-file): Avoid file-name-base.
      * lisp/progmodes/cc-cmds.el (c-electric-lt-gt): Remove unused var
      `close-paren-inserted'.
      * lisp/progmodes/cc-awk.el (c-forward-sws): Remove unused declaration.
      03c45536
    • Stefan Monnier's avatar
      * lisp/progmodes/python.el: Avoid building unneeded markers. · cb325041
      Stefan Monnier authored
      (python-font-lock-keywords, python-indent-dedent-line)
      (python-fill-paren, python-shell-completion-complete-or-indent):
      Prefer point over point-marker.
      (inferior-python-mode): Remove redundant completion settings.
      cb325041
  2. 01 Oct, 2014 2 commits
    • Stefan Monnier's avatar
      * lisp/subr.el (alist-get): New accessor. · a57fa964
      Stefan Monnier authored
      * lisp/emacs-lisp/gv.el (alist-get): Provide expander.
      * lisp/winner.el (winner-remember):
      * lisp/tempo.el (tempo-use-tag-list):
      * lisp/progmodes/gud.el (minor-mode-map-alist):
      * lisp/international/mule-cmds.el (define-char-code-property):
      * lisp/frameset.el (frameset-filter-params):
      * lisp/files.el (dir-locals-set-class-variables):
      * lisp/register.el (get-register, set-register):
      * lisp/calc/calc-yank.el (calc-set-register): Use it.
      * lisp/ps-print.el (ps-get, ps-put, ps-del): Mark as obsolete.
      * lisp/tooltip.el (tooltip-set-param): Mark as obsolete.
      (tooltip-show): Use alist-get instead.
      * lisp/ses.el (ses--alist-get): Remove.  Use alist-get instead.
      * admin/unidata/unidata-gen.el (unidata-gen-table-word-list): Use alist-get
      and cl-incf.
      a57fa964
    • Stefan Monnier's avatar
      * lisp/progmodes/python.el (python-shell-completion-get-completions): · 85ee81a0
      Stefan Monnier authored
      Use python-shell--prompt-calculated-input-regexp from the
      process buffer.
      Don't assume that `line' comes from the process buffer.
      
      Fixes: debbugs:18582
      85ee81a0
  3. 30 Sep, 2014 1 commit
  4. 29 Sep, 2014 1 commit
  5. 27 Sep, 2014 2 commits
    • Leo Liu's avatar
      * lisp/emacs-lisp/eldoc.el (eldoc-mode): Fix thinko. · 548e1696
      Leo Liu authored
      * lisp/progmodes/elisp-mode.el (elisp--eldoc-last-data): Use defvar.
      548e1696
    • Stefan Monnier's avatar
      Introduce global-eldoc-mode. Move Elisp-specific code to elisp-mode.el. · e6cfa098
      Stefan Monnier authored
      * lisp/emacs-lisp/eldoc.el (global-eldoc-mode): New minor mode.
      (eldoc-schedule-timer): Obey it.
      (eldoc-documentation-function): Default to nil.
      (eldoc-mode): Don't enable if eldoc-documentation-function is not set.
      (eldoc-documentation-function-default, eldoc-get-fnsym-args-string)
      (eldoc-highlight-function-argument, eldoc-get-var-docstring)
      (eldoc-last-data-store, eldoc-docstring-first-line)
      (eldoc-docstring-format-sym-doc, eldoc-fnsym-in-current-sexp)
      (eldoc-beginning-of-sexp, eldoc-current-symbol)
      (eldoc-function-argstring): Move to elisp-mode.el.
      (eldoc-symbol-function): Remove, unused.
      * lisp/progmodes/elisp-mode.el: New file.  Rename all "eldoc-*" to "elisp--*".
      (elisp-completion-at-point): Rename from lisp-completion-at-point.
      (elisp--preceding-sexp): Rename from preceding-sexp.
      * lisp/loadup.el: Load new file progmodes/elisp-mode.
      * lisp/ielm.el (inferior-emacs-lisp-mode): Set eldoc-documentation-function.
      * lisp/emacs-lisp/lisp.el (lisp--local-variables-1, lisp--local-variables)
      (lisp--local-variables-completion-table, lisp--expect-function-p)
      (lisp--form-quoted-p, lisp--company-doc-buffer)
      (lisp--company-doc-string, lisp--company-location)
      (lisp-completion-at-point): Move to elisp-mode.el.
      * lisp/emacs-lisp/lisp-mode.el (lisp--mode-syntax-table): New syntax-table,
      extracted from emacs-lisp-mode-syntax-table.
      (emacs-lisp-mode-abbrev-table, emacs-lisp-mode-syntax-table): Move to
      elisp-mode.el.
      (lisp-imenu-generic-expression): Add comments to document what comes
      from which Lisp dialect.
      (emacs-lisp-mode-map, emacs-lisp-byte-compile)
      (emacs-lisp-byte-compile-and-load, emacs-lisp-mode-hook)
      (emacs-lisp-mode, emacs-list-byte-code-comment-re)
      (emacs-lisp-byte-code-comment)
      (emacs-lisp-byte-code-syntax-propertize, emacs-lisp-byte-code-mode)
      (lisp-interaction-mode-map, lisp-interaction-mode)
      (eval-print-last-sexp, last-sexp-setup-props)
      (last-sexp-toggle-display, prin1-char, preceding-sexp)
      (eval-last-sexp-1, eval-last-sexp-print-value)
      (eval-last-sexp-fake-value, eval-sexp-add-defvars, eval-last-sexp)
      (eval-defun-1, eval-defun-2, eval-defun): Move to elisp-mode.el.
      * src/lisp.mk (lisp): Add elisp-mode.elc.
      e6cfa098
  6. 26 Sep, 2014 1 commit
    • Paul Eggert's avatar
      * progmodes/grep.el (grep-regexp-alist): Use more-accurate regexp. · 56c6a28d
      Paul Eggert authored
      Do not match file names that end in '/', as they cannot be 'grep'
      hits nowadays.  This prevents confusion when 'grep -r' reports a
      match in a file whose basename is ':12345:'.  Conversely, do not
      require exactly the same sequence of spaces and tabs after both
      colons, and allow spaces or tabs before the second colon, as per
      the POSIX spec for 'grep' output.
      56c6a28d
  7. 22 Sep, 2014 2 commits
  8. 21 Sep, 2014 2 commits
  9. 17 Sep, 2014 2 commits
  10. 14 Sep, 2014 1 commit
  11. 12 Sep, 2014 1 commit
    • Sam Steingold's avatar
      Add support for Vertica SQL. · 82bb5d8c
      Sam Steingold authored
      * lisp/progmodes/sql.el (sql-product-alist): Add vertica.
      (sql-vertica-program, sql-vertica-options)
      (sql-vertica-login-params, sql-comint-vertica, sql-vertica):
      New functions and variables to support Vertica.
      Inspired by code by Roman Scherer <roman@burningswell.com>.
      82bb5d8c
  12. 11 Sep, 2014 1 commit
    • Paul Eggert's avatar
      Spelling fixes. · 0f2ed592
      Paul Eggert authored
      * lisp/ses.el (ses-file-format-extend-parameter-list): Rename from
      ses-file-format-extend-paramter-list.  All uses changed.
      * lisp/gnus-cloud.el (gnus-cloud-parse-version-1): Fix misspelling
      of ":delete".
      0f2ed592
  13. 10 Sep, 2014 2 commits
    • Alan Mackenzie's avatar
      CC Mode: revert recent changes and fix bug 17463 (cc-langs.elc gets · c8b22035
      Alan Mackenzie authored
      loaded at run-time).
      * progmodes/cc-langs.el (c-no-parens-syntax-table): Rename the
      c-lang-const to c-make-no-parens-syntax-table and correct the
      logic.
      (c-no-parens-syntax-table): Correct the logic of the c-lang-defvar.
      c8b22035
    • Stefan Monnier's avatar
      CC-mode: Set open-paren-in-column-0-is-defun-start to nil; · 47003633
      Stefan Monnier authored
      plus misc cleanup.
      * lisp/progmodes/cc-mode.el (c-basic-common-init):
      Set open-paren-in-column-0-is-defun-start.
      (adaptive-fill-first-line-regexp, font-lock-syntactic-keywords):
      Remove declarations, unused.
      (run-mode-hooks): Remove declaration.
      (font-lock-defaults): Use plain `defvar' to declare.
      (c-run-mode-hooks): Test existence of run-mode-hooks with fboundp.
      * lisp/progmodes/cc-langs.el (c-filter-ops): Avoid `setq'.
      (c-make-mode-syntax-table): Don't micro-optimize.
      (c-keywords, c-keyword-member-alist): Simplify.
      (c-kwds-lang-consts): Don't eval at compile-time.
      (c-primary-expr-regexp): Comment out unused vars.
      * lisp/progmodes/cc-fonts.el (c-font-lock-context): Declare at top-level.
      (c-font-byte-compile): New var.
      (c--compile): New function.  Use it instead of `byte-compile'.
      (c-cpp-matchers): Quote the value returned by
      `c-make-syntactic-matcher' in case it's not self-evaluating.
      (c-basic-matchers-before): Avoid a plain MATCHER as keyword, wrap it in
      parentheses instead (in case MATCHER happens to be a list).
      (c-font-lock-enum-tail): Remove unused var `start'.
      (c-font-lock-objc-methods): Silence byte-compiler warnings.
      * lisp/progmodes/cc-engine.el (c-syntactic-re-search-forward): Sink an `if'
      test into an argument.
      * lisp/progmodes/cc-defs.el (c-point, c-major-mode-is, c-put-char-property)
      (c-get-char-property): Don't use `eval' just to unquote a constant.
      (c-use-extents): Remove.  Use (featurep 'xemacs), compiled
      more efficiently.
      (c-put-char-property-fun): Don't call `byte-compile' by hand.
      (c-clear-char-property, c-clear-char-properties): Check that `property'
      is a quoted constant.
      (c-emacs-features): Remove `infodock', `syntax-properties', and
      `pps-extended-state' (never used), `8-bit' and `1-bit' (use (featurep
      'xemacs) instead).  Use `with-temp-buffer' and let-bind vars after
      changing buffer, so we don't have to setq them again afterwards.
      (c-lang-const): Remove redundant symbolp assertions.
      (c-find-assignment-for-mode): Use `or'.
      * lisp/Makefile.in (compile-one-process): Remove cc-mode dependency.
      47003633
  14. 09 Sep, 2014 2 commits
  15. 08 Sep, 2014 4 commits
  16. 03 Sep, 2014 2 commits
  17. 02 Sep, 2014 1 commit
  18. 01 Sep, 2014 1 commit
  19. 28 Aug, 2014 1 commit
    • Stefan Monnier's avatar
      * lisp/progmodes/cc-defs.el: Expose c-lanf-defconst's expressions to the · 16f1e25b
      Stefan Monnier authored
      byte-compiler.
      (lookup-syntax-properties): Silence byte-compiler.
      (c-lang-defconst): Quote the code with `lambda' rather than with
      `quote'.
      (c-lang-const): Avoid unneeded setq.
      (c-lang-constants-under-evaluation): Add docstring.
      (c-lang--novalue): New constant.
      (c-find-assignment-for-mode): Use it instead of c-lang-constants.
      (c-get-lang-constant): Same here.
      Get the mode's value using `funcall' now that the code is quoted
      with `lambda'.
      16f1e25b
  20. 24 Aug, 2014 2 commits
    • Alan Mackenzie's avatar
      Handle C++11's "auto" and "decltype" constructions. · 4031fb7b
      Alan Mackenzie authored
      cc-engine.el (c-forward-type): Enhance to recognise and return 'decltype.
      (c-forward-decl-or-cast-1): New let variables backup-kwd-sym,
      prev-kwd-sym, new-style-auto.  Enhance to handle the new "auto" keyword.
          
      cc-fonts.el (c-font-lock-declarations): Handle the "decltype" keyword.
      (c-font-lock-c++-new): Handle "decltype" constructions.
          
      cc-langs.el (c-auto-ops, c-auto-ops-re): New c-lang-defconsts/defvars.
      (c-haskell-op, c-haskell-op-re): New c-lang-defconsts/defvars.
      (c-typeof-kwds, c-typeof-key): New c-lang-defconsts/defvars.
      (c-typeless-decl-kwds): Append "auto" onto the C++ value.
      (c-not-decl-init-keywords): Also exclude c-typeof-kwds from value.
      4031fb7b
    • Alan Mackenzie's avatar
      Make ">>" act as double template ender in C++ Mode. · 66bb9533
      Alan Mackenzie authored
      cc-langs.el (c->-op-cont-tokens): New lang-const split off from
      c->-op-cont-re.
      (c->-op-cont-tokens): Change to use the above.
      (c->-op-without->-cont-regexp): New lang-const.
          
      cc-engine.el (c-forward-<>-arglist-recur): Use
      c->-op-without->-cont-regexp in place of c->-op-cont-tokens.
      66bb9533
  21. 23 Aug, 2014 1 commit
  22. 20 Aug, 2014 1 commit
  23. 18 Aug, 2014 1 commit
  24. 13 Aug, 2014 2 commits
  25. 09 Aug, 2014 1 commit
  26. 08 Aug, 2014 1 commit