summaryrefslogtreecommitdiff
path: root/lisp
Commit message (Collapse)AuthorAgeFilesLines
* * lisp/emacs-lisp/lisp-mode.el (eval-sexp-add-defvars): Expand macrosStefan Monnier2013-06-032-0/+6
| | | | | | eagerly. Fixes: debbugs:14422
* * configure.ac (file-notification): New option, replaces inotify option.Michael Albinus2013-06-033-39/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (HAVE_W32): Remove w32notify.o. (with_file_notification): Add checks for glib and w32. Adapt check for inotify. (Summary): Add entry for file notification. * autogen/config.in: Add entries for HAVE_GFILENOTIFY, HAVE_W32NOTIFY and USE_FILE_NOTIFY. * lisp/autorevert.el (auto-revert-notify-enabled) (auto-revert-notify-rm-watch, auto-revert-notify-add-watch) (auto-revert-notify-event-p, auto-revert-notify-event-file-name) (auto-revert-notify-handler): Handle also gfilenotify. * lisp/subr.el: (file-notify-handle-event): New defun. Replacing ... (inotify-event-p, inotify-handle-event, w32notify-handle-event): Removed. * src/Makefile.in (NOTIFY_OBJ): New variable. (base_obj): Replace inotify.o by $(NOTIFY_OBJ). * src/emacs.c (main): Use HAVE_W32NOTIFY to wrap respective code. Call syms_of_gfilenotify. * src/gfilenotify.c: New file. * src/keyboard.c (Qfile_notify): New variable. Replaces Qfile_inotify and Qfile_w32notify. (top): Wrap respective code by HAVE_GFILENOTIFY, HAVE_INOTIFY, HAVE_W32NOTIFY and USE_FILE_NOTIFY. * src/lisp.h: Declare syms_of_gfilenotify. * src/termhooks.h (e): Wrap enum by USE_FILE_NOTIFY.
* Search and highlight symbol at point.Juri Linkov2013-06-035-9/+93
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/emacs/display.texi (Highlight Interactively): Add global keybindings with the key prefix `M-s h'. Document old command `highlight-phrase'. Document new command `highlight-symbol-at-point'. * lisp/bindings.el (search-map): Bind `highlight-symbol-at-point' to `M-s h .'. * lisp/hi-lock.el (highlight-symbol-at-point): New alias for the new command `hi-lock-face-symbol-at-point'. (hi-lock-face-symbol-at-point): New command. (hi-lock-map): Bind `highlight-symbol-at-point' to `C-x w .'. (hi-lock-menu): Add `highlight-symbol-at-point'. (hi-lock-mode): Doc fix. * lisp/isearch.el (isearch-forward-symbol-at-point): New command. (search-map): Bind `isearch-forward-symbol-at-point' to `M-s .'. (isearch-highlight-regexp): Add a regexp which matches words/symbols for word/symbol mode. * lisp/subr.el (find-tag-default-bounds): New function with the body mostly moved from `find-tag-default'. (find-tag-default): Move most code to `find-tag-default-bounds', call it and apply `buffer-substring-no-properties' afterwards. Fixes: debbugs:14427
* * NEWS: Document eshell visual subcommands and options.Tassilo Horn2013-06-032-3/+8
| | | | | * eshell/em-term.el (eshell-term-initialize): Use `cl-intersection' rather than `intersection'.
* * lisp/eshell/em-term.el: New defcustoms need :version tags.Glenn Morris2013-06-021-2/+6
|
* Merge with CEDET upstream (rev. 8564).David Engster2013-06-0224-2474/+2909
|\
| * * lisp/cedet/srecode/srt-wy.el: Regenerate.David Engster2013-06-022-1/+7
| |
| * * registry.el (initialize-instance, registry-lookup)David Engster2013-06-022-189/+196
| | | | | | | | | | | | | | | | (registry-lookup-breaks-before-lexbind, registry-lookup-secondary) (registry-lookup-secondary-value, registry-search, registry-delete) (registry-insert, registry-reindex, registry-size, registry-prune): Do not wrap methods in `eval-and-compile'. This breaks due to latest changes in EIEIO (introduction of eieio-core.el).
| * Merge from CEDET upstream (8564).David Engster2013-06-0221-2284/+2706
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp: * emacs-lisp/eieio.el (eieio--defalias, eieio-hook) (eieio-error-unsupported-class-tags, eieio-skip-typecheck) (eieio-optimize-primary-methods-flag, eieio-initializing-object) (eieio-unbound, eieio-default-superclass) (eieio--define-field-accessors, method-static, method-before) (method-primary, method-after, method-num-lists) (method-generic-before, method-generic-primary) (method-generic-after, method-num-slots) (eieio-specialized-key-to-generic-key) (eieio--check-type, class-v, class-p) (eieio-class-name, define-obsolete-function-alias) (eieio-class-parents-fast, eieio-class-children-fast) (same-class-fast-p, class-constructor, generic-p) (generic-primary-only-p, generic-primary-only-one-p) (class-option-assoc, class-option, eieio-object-p) (class-abstract-p, class-method-invocation-order) (eieio-defclass-autoload-map, eieio-defclass-autoload) (eieio-class-un-autoload, eieio-defclass) (eieio-eval-default-p, eieio-perform-slot-validation-for-default) (eieio-add-new-slot, eieio-copy-parents-into-subclass) (eieio--defgeneric-init-form, eieio-defgeneric-form) (eieio-defgeneric-reset-generic-form) (eieio-defgeneric-form-primary-only) (eieio-defgeneric-reset-generic-form-primary-only) (eieio-defgeneric-form-primary-only-one) (eieio-defgeneric-reset-generic-form-primary-only-one) (eieio-unbind-method-implementations) (eieio--defmethod, eieio--typep) (eieio-perform-slot-validation, eieio-validate-slot-value) (eieio-validate-class-slot-value, eieio-barf-if-slot-unbound) (eieio-oref, eieio-oref-default, eieio-default-eval-maybe) (eieio-oset, eieio-oset-default, eieio-slot-originating-class-p) (eieio-slot-name-index, eieio-class-slot-name-index) (eieio-set-defaults, eieio-initarg-to-attribute) (eieio-attribute-to-initarg, eieio-c3-candidate) (eieio-c3-merge-lists, eieio-class-precedence-c3) (eieio-class-precedence-dfs, eieio-class-precedence-bfs) (eieio-class-precedence-list, eieio-generic-call-methodname) (eieio-generic-call-arglst, eieio-generic-call-key) (eieio-generic-call-next-method-list) (eieio-pre-method-execution-functions, eieio-generic-call) (eieio-generic-call-primary-only, eieiomt-method-list) (eieiomt-optimizing-obarray, eieiomt-install) (eieiomt-add, eieiomt-next, eieiomt-sym-optimize) (eieio-generic-form, eieio-defmethod, make-obsolete) (eieio-defgeneric, make-obsolete): Moved to eieio-core.el (defclass): Remove `eval-and-compile' from macro. (call-next-method, shared-initialize): Instead of using `scoped-class' variable, use new eieio--scoped-class, and eieio--with-scoped-class. (initialize-instance): Rename local variable 'scoped-class' to 'this-class' to remove ambiguitity from old global. * emacs-lisp/eieio-core.el: New file. Derived from key parts of eieio.el. (eieio--scoped-class-stack): New variable (eieio--scoped-class): New fcn (eieio--with-scoped-class): New scoping macro. (eieio-defclass): Use pushnew instead of add-to-list. (eieio-defgeneric-form-primary-only-one, eieio-oset-default) (eieio-slot-name-index, eieio-set-defaults, eieio-generic-call) (eieio-generic-call-primary-only, eieiomt-add): Instead of using `scoped-class' variable, use new eieio--scoped-class, and eieio--with-scoped-class. * emacs-lisp/eieio-base.el (cl-lib): Require during compile. * admin/grammars: * grammars/srecode-template.wy (variable): Accept a single number as a variable value. Allows the 'priority' to be set to a number. (wisent-srecode-template-lexer): Move number up so it can be created. * etc/srecode: * srecode/c.srt (header_guard): Add :c parameter so it works standalone * lisp/cedet: * semantic/edit.el (semantic-change-function): Use `save-match-data' around running hooks. * semantic/decorate/mode.el (semantic-decorate-style-predicate-default) (semantic-decorate-style-highlighter-default): New. (semantic-decoration-mode): Do not require `semantic/decorate/include' anymore. (semantic-toggle-decoration-style): Error if an unknown decoration style is toggled. (define-semantic-decoration-style): Add new :load option. When :load is specified, add autoload tokens for the definition functions so that code is loaded when the mode is used. (semantic-decoration-on-includes): New autoload definition for highlighting includes. * semantic/bovine/c.el (semantic-lex-c-ifdef): Allow some misc characters to appear after the tested variable. * semantic/ede-grammar.el (project-compile-target): Calculate full src name via ede-expand-filename instead of the crutch of the current buffer. Enables this target to compile in batch mode. * semantic/idle.el (semantic-idle-symbol-maybe-highlight): Wrap highlighting of remote symbol with `save-excursion'. (semantic-idle-scheduler-work-parse-neighboring-files): Instead of using directory-files on each found mode pattern, collect all the patterns for the current mode, and then for each file, see if it matches any of them. If it does, parse the file. (Patch inspiration from Tomasz Gajewski.) * semantic/ctxt.el (semantic-ctxt-end-of-symbol): New. (semantic-ctxt-current-symbol-default): New. * semantic/bovine/el.el (semantic-default-elisp-setup): Add autoload cookie. Explain existence. (footer): Add local variable for loaddefs. * semantic/db.el (semanticdb-file-table-object): Add new filter, only checking for regular files too. * semantic/wisent/python.el (semantic-format-tag-abbreviate): New override. Cuts back on size of code tags. * srecode/compile.el (srecode-compile-templates): Fix warning punctuation. Remove status messages to clean up testing output * ede/base.el (ede-project-placeholder-cache-file): Update doc to mention 'nil' value. (ede-save-cache): Disable cache save if file is nil. * ede.el (ede-initialize-state-current-buffer): Flush deleted projects. (global-ede-mode): Always append our find-file-hook to the end. (ede-flush-deleted-projects): New command. * ede/cpp-root.el (ede-preprocessor-map): Protect against init problems. * ede/proj.el (ede-proj-target): Added a new "custom" option for custom symbols representing a compiler or linker instead of restricting things to only the predefined compilers and linkers. * semantic.el (semantic-mode-map): To avoid showing showing Development menu twice, only disable menu item if menu-bar is actually enabled, otherwise the popup 'global menu' might display a disabled Development menu. * semantic/complete.el (semantic-displayor-show-request): Fix which slot in obj is set to the max tags.
* | * eshell/esh-ext.el (eshell-external-command): Pass args toTassilo Horn2013-06-025-15/+78
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `eshell-find-interpreter'. (eshell-find-interpreter): Add new second parameter ARGS. * eshell/em-script.el (eshell-script-initialize): Add second arg to the function added as MATCH to `eshell-interpreter-alist' * eshell/em-dirs.el (eshell-dirs-initialize): Add second arg to the function added as MATCH to `eshell-interpreter-alist' * eshell/em-term.el (eshell-visual-subcommands): New defcustom. (eshell-visual-options): New defcustom. (eshell-escape-control-x): Adapt docstring. (eshell-term-initialize): Test `eshell-visual-subcommands' and `eshell-visual-options' in addition to `eshell-visual-commands'. (eshell-exec-visual): Pass args to `eshell-find-interpreter'.
* | lisp/ChangeLog, src/ChangeLog: Fix whitespace.Juanma Barranquero2013-06-021-7/+6
| |
* | ns-win commentGlenn Morris2013-06-011-0/+5
| |
* | Merge from emacs-24; up to 2012-12-27T20:09:45Z!juri@jurta.orgGlenn Morris2013-06-012-2/+8
|\ \
| * | * progmodes/python.el: Fix typo in commentary.Fabián Ezequiel Gallina2013-05-261-1/+1
| | |
| * | * progmodes/python.el (python-indent-block-enders): Add break,Fabián Ezequiel Gallina2013-05-262-1/+7
| | | | | | | | | | | | continue and raise keywords.
* | | * lisp/pcmpl-gnu.el (pcomplete/tar): Check obsolete variable is bound.Glenn Morris2013-06-012-1/+4
| | |
* | | Plain boundp silences compilation warnings since Emacs 22.1.Glenn Morris2013-06-012-5/+4
| | | | | | | | | | | | | | | * progmodes/cc-defs.el (zmacs-region-stays, zmacs-regions) (lookup-syntax-properties): Remove unecessary cc-bytecomp-defvar.
* | | Plain fboundp silences compilation warnings since Emacs 22.1Glenn Morris2013-06-017-14/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * progmodes/cc-cmds.el (delete-forward-p): * progmodes/cc-defs.el (buffer-syntactic-context-depth): * progmodes/cc-engine.el (buffer-syntactic-context): * progmodes/cc-fonts.el (face-property-instance): * progmodes/cc-mode.el (set-keymap-parents): * progmodes/cc-vars.el (get-char-table): No need for cc-bytecomp-defun. * progmodes/cc-defs.el (c-set-region-active, c-beginning-of-defun-1) * progmodes/cc-mode.el (c-make-inherited-keymap): Use plain fboundp.
* | | Don't (re)define a basic custom widget in cc-varsGlenn Morris2013-06-012-7/+15
| | | | | | | | | | | | | | | * lisp/progmodes/cc-vars.el (other): Emacs has this widget since at least 21.1, so don't (re)define it.
* | | Replace obsolete function lisp-complete-symbolGlenn Morris2013-06-012-1/+7
| | | | | | | | | | | | | | | * lisp/cedet/semantic/grammar.el (semantic-grammar-complete): Replace the obsolete function lisp-complete-symbol.
* | | Silence some cedet compilation warningsGlenn Morris2013-06-014-0/+8
| | | | | | | | | | | | | | | | | | * cedet/semantic/analyze/fcn.el (semantic-tag-similar-p): Autoload. * cedet/srecode/args.el, cedet/srecode/java.el: Require ede.
* | | * cedet/semantic/lex.el (semantic-lex-make-type-table): Fix transposed args.Glenn Morris2013-06-012-1/+5
| | |
* | | * eshell/em-cmpl.el (eshell-cmpl-initialize): Replace obsolete aliasGlenn Morris2013-06-012-2/+7
| | |
* | | Auto-commit of loaddefs files.Glenn Morris2013-06-011-306/+277
| | |
* | | * progmodes/octave.el (octave-mode-syntax-table): Give `.'Leo Liu2013-06-012-9/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | punctuation syntax. (inferior-octave-minimal-columns) (inferior-octave-last-column-width): New variables. (inferior-octave-track-window-width-change): New function. (inferior-octave-mode): Adjust column width so that Octave output, for example from 'ls', can fit into the window nicely.
* | | Spelling fixes.Paul Eggert2013-05-311-1/+1
| | |
* | | * lisp/progmodes/ruby-mode.el (ruby-syntax-expansion-allowed-p):Dmitry Gutov2013-05-312-1/+6
| | | | | | | | | | | | Highlight expansions inside regexp literals.
* | | * sym-comp.el (symbol-complete): Replace obsolete completion-annotate-function.Glenn Morris2013-05-312-5/+9
| | |
* | | * progmodes/cc-vars.el (c-make-macro-with-semi-re): Silence compiler.Glenn Morris2013-05-312-0/+5
| | |
* | | * lisp/progmodes/ruby-mode.el (ruby-syntax-expansion-allowed-p): NewDmitry Gutov2013-05-312-48/+71
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | function, checks if expression expansion is allowed in given parse state. (ruby-syntax-propertize-expansion): Use it. (ruby-syntax-propertize-function): Bind `case-fold-search' to nil around the body. * test/automated/ruby-mode-tests.el: New tests, for percent literals and expression expansion.
* | | * lisp/isearch.el (isearch-mode-map): Bind `isearch-toggle-invisible' to ↵Juri Linkov2013-05-312-3/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | "\M-si". (isearch-invisible): New variable. (isearch-forward): Doc fix. (isearch-mode): Set `isearch-invisible' to the value of `search-invisible'. (isearch-toggle-case-fold): Doc fix. (isearch-toggle-invisible): New command. (isearch-query-replace): Let-bind `search-invisible' to the value of `isearch-invisible'. (isearch-search): Use `isearch-invisible' instead of `search-invisible'. Let-bind `search-invisible' to the value of `isearch-invisible'. Fixes: debbugs:11378
* | | * lisp/progmodes/gdb-mi.el (gdb-wait-for-pending): Fix typo.Glenn Morris2013-05-302-1/+3
| | |
* | | * lisp/replace.el (perform-replace): Avoid `isearch-range-invisible'Juri Linkov2013-05-312-0/+9
| | | | | | | | | | | | | | | | | | call when `query-flag' is nil and `search-invisible' is non-nil. Fixes: debbugs:11746
* | | cc-bytecomp tweaks for sake of byte-compilerGlenn Morris2013-05-302-2/+18
| | | | | | | | | | | | | | | | | | * lisp/progmodes/cc-bytecomp.el (cc-bytecomp-noruntime-functions): New. (cc-require): Suppress spurious "noruntime" warnings. (cc-require-when-compile): Use fboundp, for sake of compiler.
* | | * lisp/progmodes/cc-mode.el: Move load of cc-vars before that of cc-langsGlenn Morris2013-05-302-1/+6
| | | | | | | | | | | | (which in turn loads cc-vars), to quieten compiler.
* | | * lisp/paren.el: Simplify the code.Stefan Monnier2013-05-302-95/+86
| | | | | | | | | | | | | | | | | | | | | | | | | | | (show-paren-mode): Always start the timer. (show-paren--idle-timer): Rename from show-paren-idle-timer. (show-paren--overlay, show-paren--overlay-1): Rename from show-paren-overlay and show-paren-overlay-1, and initialize to an overlay rather than to nil. (show-paren-function): Misc cleanup and simplifications.
* | | * lisp/paren.el (show-paren-data-function): New hook.Stefan Monnier2013-05-302-65/+86
| | | | | | | | | | | | | | | (show-paren--default): New function, extracted from show-paren-function. (show-paren-function): Use show-paren-data-function.
* | | * syntax.el (syntax-propertize-function): Fix docstring.Stefan Monnier2013-05-301-6/+7
| | |
* | | Silence ielm compilationGlenn Morris2013-05-292-8/+13
| | | | | | | | | | | | | | | | | | | | | | | | * lisp/ielm.el (ielm-map, ielm-complete-symbol): Use completion-at-point rather than obsolete functions. (inferior-emacs-lisp-mode): Doc fix. Set completion-at-point-functions, rather than comint-dynamic-complete-functions.
* | | In Eshell, replace obsolete lisp-complete-symbolGlenn Morris2013-05-292-3/+13
| | | | | | | | | | | | | | | | | | * eshell/em-cmpl.el (eshell-complete-lisp-symbol): New function. (eshell-cmpl-initialize, eshell-complete-parse-arguments): Replace obsolete lisp-complete-symbol with eshell-complete-lisp-symbol.
* | | * gnus/nnmail.el (nnmail-fancy-expiry-target): Also bind ↵Glenn Morris2013-05-292-2/+7
| | | | | | | | | | | | mail-dont-reply-to-names
* | | * gnus/spam-stat.el (spam-stat-save): No need to tweak font-lock in temp buffersGlenn Morris2013-05-292-2/+4
| | |
* | | * image.el (image-animated-p): Tweak definition.Glenn Morris2013-05-294-7/+19
| | | | | | | | | | | | * gnus/shr.el (shr-put-image): Silence compiler.
* | | rlogin.el tiny cleanupGlenn Morris2013-05-292-8/+25
| | | | | | | | | | | | | | | | | | | | | | | | * net/rlogin.el (rlogin-program, rlogin-explicit-args): Default to ssh. (rlogin-process-connection-type): Tweak default. Add set-after. (rlogin-host): Doc fix. (rlogin): Tweak prompt. (rlogin-tab-or-complete): Use completion-at-point rather than alias.
* | | Use completion-at-point rather than obsolete alias.Glenn Morris2013-05-293-3/+7
| | | | | | | | | | | | | | | | | | * net/net-utils.el (nslookup-mode-map, ftp-mode-map): * progmodes/tcl.el (inferior-tcl-mode-map): Use completion-at-point rather than obsolete alias.
* | | * lisp/emacs-lisp/eieio.el (eieio-eval-default-p): Move before use.Glenn Morris2013-05-292-4/+6
| | |
* | | * erc/erc-backend.el: Require erc at run-time too (silences compilation)Glenn Morris2013-05-292-1/+6
| | |
* | | * minibuffer.el (read-file-name-completion-ignore-case):Glenn Morris2013-05-292-9/+14
| | | | | | | | | | | | | | | | | | | | | Move before completion--in-region, for eager macro expansion. Somehow, this avoids an eager macro expansion failure present during bootstrap since ~ 2013-04-17.
* | | * lisp/replace.el (occur-engine): Rename `globalcount' to `global-lines'Juri Linkov2013-05-302-31/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | for total count of matching lines. Add `global-matches' for total count of matches. Rename `matches' to `lines' for count of matching lines. Add `matches' for count of matches. Rename `lines' to `curr-line' for line count. Rename `prev-lines' to `prev-line' for line number of prev match endpt. Increment `matches' for every match. Print the number of matching lines in the header. (occur-context-lines): Rename `lines' to `curr-line'. Rename `prev-lines' to `prev-line'. Fixes: debbugs:14017
* | | * lisp/replace.el (perform-replace): Add `skip-read-only-count',Juri Linkov2013-05-302-17/+71
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `skip-filtered-count', `skip-invisible-count' let-bound to 0. Increment them for corresponding conditions and report the number of skipped occurrences in the final message. (query-replace, query-replace-regexp, query-replace-regexp-eval) (replace-string, replace-regexp): Doc fix. Fixes: debbugs:11746