summaryrefslogtreecommitdiff
path: root/lisp
Commit message (Collapse)AuthorAgeFilesLines
* Move define-obsolete-variable-alias before the var's definition.Stefan Monnier2012-05-1224-75/+103
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/vc/log-edit.el (vc-comment-ring, vc-comment-ring-index): * lisp/tooltip.el (tooltip-hook): * lisp/textmodes/reftex-toc.el (reftex-toc-map): * lisp/textmodes/reftex-sel.el (reftex-select-label-map) (reftex-select-bib-map): * lisp/textmodes/reftex-index.el (reftex-index-map) (reftex-index-phrases-map): * lisp/speedbar.el (speedbar-syntax-table, speedbar-key-map): * lisp/progmodes/meta-mode.el (meta-mode-map): * lisp/novice.el (disabled-command-hook): * lisp/loadhist.el (unload-hook-features-list): * lisp/frame.el (blink-cursor): * lisp/files.el (find-file-not-found-hooks, write-file-hooks) (write-contents-hooks): * lisp/emulation/tpu-edt.el (GOLD-map): * lisp/emacs-lock.el (emacs-lock-from-exiting): * lisp/emacs-lisp/generic.el (generic-font-lock-defaults): * lisp/emacs-lisp/chart.el (chart-map): * lisp/dos-fns.el (register-name-alist): * lisp/dired-x.el (dired-omit-files-p): * lisp/desktop.el (desktop-enable): * lisp/cus-edit.el (custom-mode-hook): * lisp/buff-menu.el (buffer-menu-mode-hook): * lisp/bookmark.el (bookmark-read-annotation-text-func) (bookmark-exit-hooks): * lisp/allout.el (allout-mode-deactivate-hook) (allout-exposure-change-hook, allout-structure-added-hook) (allout-structure-deleted-hook, allout-structure-shifted-hook): * lisp/dirtrack.el (dirtrack-toggle, dirtrackp, dirtrack-debug-toggle) (dirtrack-debug): Move call to define-obsolete-variable-alias so it comes before the corresponding variable's definition.
* Fix mouse links in new Buffer Menu.Chong Yidong2012-05-122-1/+20
| | | | | | | | * buff-menu.el (Buffer-menu-mouse-select): Restore function. (Buffer-menu-mode-map): Bind it. (Buffer-menu--pretty-name): Add a mouse-face property. Fixes: debbugs:11459
* * buff-menu.el (Buffer-menu-buffer+size-width): Doc fix.Chong Yidong2012-05-122-1/+9
| | | | Fixes: debbugs:11454
* * lisp/progmodes/prolog.el: Use SMIE. Cleanup regexp setup.Stefan Monnier2012-05-112-176/+271
| | | | | | | | | | | | | | | (prolog-upper-case-string, prolog-lower-case-string) (prolog-atom-char-regexp, prolog-atom-regexp): Initialize in defconst. (prolog-use-smie, prolog-smie-grammar): New vars. (prolog-smie-forward-token, prolog-smie-backward-token) (prolog-smie-rules): New funs. (prolog-comment-indent): Remove. (prolog-mode-variables): Use default comment indentation instead. Setup SMIE. (prolog-build-case-strings, prolog-set-atom-regexps): Remove. (prolog-mode): Don't call them any more. (prolog-electric-colon, prolog-electric-dash) (prolog-edit-menu-insert-move): Use indent-according-to-mode.
* * lisp/dabbrev.el (dabbrev-expand): Make "no expansion found" a user-error.Stefan Monnier2012-05-112-2/+4
|
* * lisp/minibuffer.el (completion--twq-all): Again, allow case differences.Stefan Monnier2012-05-112-3/+6
|
* * lisp/term.el: Move keymap initialization code to be more idiomatic.Stefan Monnier2012-05-112-173/+157
| | | | | | (term-signals-menu, term-mode-map, term-raw-map, term-raw-escape-map) (term-terminal-menu): Move initialization into declaration. (term-escape-char): Let the user set it in her .emacs.
* * lisp/progmodes/sh-script.el: Use post-self-insert-hook&electric-pair-mode.Stefan Monnier2012-05-112-62/+507
| | | | | | | | | | | | | | | | | | | | | | Provide SMIE-based indentation (not enabled by default yet). (sh-mode-map): Don't bind electric keys. Use electric-pair-mode instead of skeleton-pair. (sh-assignment-regexp): Fit within 80 columns. (sh-indent-supported): Specify actual shell name instead of boolean. (sh--maybe-here-document): New fun, from sh-maybe-here-document. (sh-maybe-here-document): Use it. Make obsolete. (sh-electric-here-document-mode) New minor mode. (sh-mode): Use it. Don't set sh-indent-supported-here here. (sh-smie-sh-grammar, sh-smie--sh-operators, sh-smie--sh-operators-re) (sh-smie--sh-operators-back-re, sh-indent-after-continuation) (sh-smie-rc-grammar, sh-use-smie): New vars. (sh-smie--keyword-p, sh-smie--newline-semi-p, sh-smie--sh-keyword-p) (sh-smie-sh-forward-token, sh-smie--looking-back-at-continuation-p) (sh-smie-sh-backward-token, sh-smie--continuation-start-indent) (sh-smie-sh-rules, sh-smie-rc-rules, sh-smie--sh-keyword-in-p) (sh-smie--rc-after-special-arg-p, sh-smie-rc-backward-token) (sh-smie-sh-rules, sh-smie--rc-newline-semi-p): New functions. (sh-set-shell): Use smie-setup if requested.
* * lisp/term.el (term-set-escape-char): Properly set term-escape-char.Stefan Monnier2012-05-112-4/+12
|
* Cleanups and improvements for FFAP and URL.Chong Yidong2012-05-106-143/+199
| | | | | | | | | | | | | | | | | | | | | | | | | | | * ffap.el (ffap-url-unwrap-local): Make it work right. Use url-generic-parse-url, and handle host names and Windows filenames properly. (ffap-url-unwrap-remote): Use url-generic-parse-url. (ffap-url-unwrap-remote): Accept list values, specifying a list of URL schemes to work on. (ffap--toggle-read-only): New function. (ffap-read-only, ffap-read-only-other-window) (ffap-read-only-other-frame): Use it. (ffap-fixup-url): Don't check ffap-ftp-regexp, since it is not necessary for ffap-url-unwrap-remote. * url-parse.el (url-path-and-query, url-port-if-non-default): New functions. (url-generic-parse-url): Don't set the portspec slot if it is not specified; that is what `url-port' is for. (url-port): Only require the scheme to be specified to call url-scheme-get-property. * url-util.el (url-encode-url): Use url-path-and-query. * url-vars.el (url-mime-charset-string): Load mm-util lazily. Fixes: debbugs:9131
* Add the option to not create lockfilesDave Abrahams2012-05-092-0/+5
| | | | | | | | | * src/filelock.c (syms_of_filelock): New boolean create-lockfiles. (lock_file): If create_lockfiles is 0, do nothing. * lisp/cus-start.el (create-lockfiles): Add it. Fixes: debbugs:11227
* Encoding fix for browse-url-encode-url.Chong Yidong2012-05-092-2/+7
| | | | | | | * lisp/net/browse-url.el (browse-url-url-encode-chars): Use upper-case. (browse-url-encode-url): Encode spaces and quotes. Fixes: debbugs:6300
* * url-util.el (url--allowed-chars): Use upper-case for percent-encoding.Chong Yidong2012-05-092-3/+6
|
* Improve RFC 3986 conformance of url package.Chong Yidong2012-05-096-125/+259
| | | | | | | | | | | | | | | | | | | | | | | | | | Fix 2012-04-10 change to url.el. * url-http.el (url-http-create-request): Ignore obsolete attributes slot of url-object. * url-parse.el: Improve RFC 3986 conformance. (url-generic-parse-url): Do not populate the ATTRIBUTES slot, since this is not reliable for general RFC 3986 URIs. Keep the whole path and query inside the FILENAME slot. Improve docstring. (url-recreate-url-attributes): Mark as obsolete. (url-recreate-url): Handle missing scheme and userinfo. * url-util.el (url-encode-url): New function for URL quoting. (url-encoding-table, url-host-allowed-chars) (url-path-allowed-chars): New constants. (url--allowed-chars): New helper function. (url-hexify-string): Use them. * url-vars.el (url-nonrelative-link): Make the regexp stricter. * url.el (url-retrieve-internal): Use url-encode-url. Fixes: debbugs:7017
* Yet more ChangeLog merge fixesGlenn Morris2012-05-081-5/+0
|
* Merge from emacs-24; up to 2012-04-21T14:12:27Z!sdl.web@gmail.comGlenn Morris2012-05-085-21/+67
|\
| * * shell.el (shell-completion-vars): Fix last change.Stefan Monnier2012-05-072-1/+5
| | | | | | | | Fixes: debbugs:11348
| * Improve previous dir-locals-read-from-file changeGlenn Morris2012-05-061-1/+1
| |
| * Fix a gdb-mi process filtering issue arising in ansi-color.el.Chong Yidong2012-05-072-2/+12
| | | | | | | | | | | | * lisp/ansi-color.el (ansi-color-process-output): Check for validity of comint-last-output-start before using it. This avoids a bad interaction with gdb-mi's input/output buffer.
| * * files.el (dir-locals-read-from-file): Mention dir-locals in any error message.Glenn Morris2012-05-062-13/+20
| |
| * * emacs-lisp/package.el (package-built-in-p): Handle `emacs' package.Chong Yidong2012-05-062-2/+10
| | | | | | | | Fixes: debbugs:11410
| * Fix package.el handling of local variables on first line.Chong Yidong2012-05-052-1/+6
| | | | | | | | | | * lisp/emacs-lisp/package.el (package-buffer-info): Avoid putting local variables into description.
| * * lisp/shell.el (shell-completion-vars): Set pcomplete-arg-quote-list likeStefan Monnier2012-05-052-3/+12
| | | | | | | | | | | | | | shell-delimiter-argument-list. (shell-parse-pcomplete-arguments): Obey pcomplete-arg-quote-list. Fixes: debbugs:11348
| * Auto-commit of loaddefs files.Glenn Morris2012-05-041-1/+1
| |
| * Backport fix for Bug#11282 from trunkKenichi Handa2012-05-042-17/+37
| |
| * * select.el (xselect--encode-string): Always use utf-8 for TEXT on Nextstep.Chong Yidong2012-05-042-18/+29
| |
* | lisp/textmodes/rst.el: Silence byte-compiler warnings.Juanma Barranquero2012-05-092-19/+27
| | | | | | | | | | | | (rst-re-alist, rst-reset-section-caches): Move around. (rst-re): Use `characterp', not `char-valid-p'. (font-lock-beg, font-lock-end): Declare.
* | lisp/progmodes/idlw-shell.el: Cleanup after 2012-05-04T05:14:14Z!cyd@gnu.org.Juanma Barranquero2012-05-092-6/+5
| | | | | | | | | | (specs): Remove reference to deleted variable `idlwave-shell-activate-alt-keybindings' and simplify.
* | lisp/eshell/esh-cmd.el (eshell-debug-command): Fix typo in previous change.Juanma Barranquero2012-05-092-1/+5
| |
* | * lisp/files.el (auto-mode-alist): Treat ".make" like ".mk".Glenn Morris2012-05-082-0/+6
| |
* | * lisp/vc/log-edit.el: Add GNU coding standards highlighting.Stefan Monnier2012-05-082-2/+51
| | | | | | | | | | | | | | | | | | (log-edit-font-lock-gnu-style) (log-edit-font-lock-gnu-keywords): New vars. (log-edit-font-lock-keywords): New fun. (log-edit-mode): Don't fold case in font-lock. (log-edit-font-lock-keywords): Do not assume case-folding. * .dir-locals.el (log-edit-mode): Enable gnu-style checks.
* | * lisp/imenu.el: Misc cleanup. Make docstrings out of comments.Stefan Monnier2012-05-082-79/+66
| | | | | | | | | | | | | | | | | | Use lexical-binding. (imenu--index-alist, imenu--last-menubar-index-alist) (imenu-menubar-modified-tick): Use defvar-local. (imenu--split-menu): Remove unused var. (imenu--cleanup-seen): Declare as global. (imenu--cleanup): Use dolist.
* | * lisp/subr.el (defvar-local): Add debug spec and doc-string position.Stefan Monnier2012-05-082-0/+5
| |
* | Remove no-byte-compile setting from some lisp/language files.Glenn Morris2012-05-0718-28/+36
| | | | | | | | | | | | | | | | | | Same comments as per 2012-05-01T06:59:34Z!rgm@gnu.org, for lisp/term: Not that compiling these will bring any noticeable speed benefit, but there's really no reason not to compile them. The extra disk space and build time is negligible, and it might reveal use of obsolete functions, bugs, etc.
* | * lisp/play/zone.el (zone-pgm-stress): Don't pollute kill-ring. (Bug#11388)Glenn Morris2012-05-072-3/+6
| |
* | * progmodes/make-mode.el (makefile-browse): Remove unnecessary interactive.Aaron S. Hawley2012-05-072-1/+5
| | | | | | | | Fixes: debbugs:11324
* | Move some forms.el example files to etc/forms directoryGlenn Morris2012-05-074-137/+3
| | | | | | | | | | | | | | | | | | | | * etc/forms/README: New. * etc/forms/forms-d2.dat: Move to etc/forms/ subdirectory. * etc/forms/forms-d2.el, etc/forms/forms-pass.el: Move here from ../lisp. * lisp/forms.el: Related comment change.
* | Also apply previous change to file locals at the end of the fileGlenn Morris2012-05-071-0/+2
| |
* | * lisp/international/mule.el (find-auto-coding): Make "unibyte: t" obsolete.Glenn Morris2012-05-072-0/+7
| | | | | | | | | | | | * etc/NEWS: Edits. Ref: http://lists.gnu.org/archive/html/emacs-devel/2012-04/msg00434.html
* | * loadup.el: Preload newcomment.el.Stefan Monnier2012-05-073-5/+14
| | | | | | | | * newcomment.el: Move autoload-only code to toplevel.
* | 2012-05-05 Stefan Merten <smerten@oekonux.de>Stefan Merten2012-05-071-1629/+2220
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * rst.el: Major merge with upstream development up to Docutils SVN r7399 / rst.el V1.2.1. Clarified maintainership and authors. (rst-extract-version, rst-cvs-header, rst-cvs-rev) (rst-cvs-timestamp, rst-svn-rev, rst-svn-timestamp) (rst-official-version, rst-official-cvs-rev, rst-version) (rst-package-emacs-version-alist): New functions and variables for version information. (rst-bullets, rst-uri-schemes, rst-adornment-chars) (rst-max-inline-length, rst-re-alist-def, rst-re-alist) (rst-mode-syntax-table, rst-mode): New and corrected functions and variables representing reStructuredText features. (rst-re): New function for reStructuredText regexes. Used in many places. (rst-deprecated-keys, rst-call-deprecated, rst-define-key) (rst-mode-map): Rebound keys. (rst-mode-lazy, rst-font-lock-keywords) (rst-font-lock-extend-region) (rst-font-lock-extend-region-internal) (rst-font-lock-extend-region-extend) (rst-font-lock-find-unindented-line-limit) (rst-font-lock-find-unindented-line-match) (rst-adornment-level, rst-font-lock-adornment-level) (rst-font-lock-adornment-match) (rst-font-lock-handle-adornment-pre-match-form) (rst-font-lock-handle-adornment-matcher): Major revision of font-locking. Integrated with other code. `jit-lock-mode' is used now. (rst-preferred-adornments, rst-adjust-hook) (rst-new-adornment-down, rst-preferred-bullets) (rst-preferred-bullets, rst-indent, rst-indent-width) (rst-indent-field, rst-indent-literal-normal) (rst-indent-literal-minimized, rst-indent-comment): Changed, extended and improved customization. (rst-line-homogeneous-p, rst-line-homogeneous-nodent-p) (rst-normalize-cursor-position, rst-get-decoration) (rst-straighten-deco-spacing, rst-re-bullets, rst-re-items) (rst-rstrip, rst-toc-insert-find-delete-contents) (rst-shift-fill-region, rst-compute-bullet-tabs) (rst-debug-print-tabs, rst-debug-mark-found) (rst-shift-region-guts, rst-shift-region-right) (rst-shift-region-left, rst-use-char-classes) (rst-font-lock-keywords-function) (rst-font-lock-indentation-point) (rst-font-lock-find-unindented-line-begin) (rst-font-lock-find-unindented-line-end) (rst-font-lock-find-unindented-line) (rst-font-lock-adornment-point, rst-font-lock-level) (rst-adornment-level-alist): Removed functions and variables. (rst-compare-adornments, rst-get-adornment-match) (rst-suggest-new-adornment, rst-get-adornments-around) (rst-adornment-complete-p, rst-get-next-adornment) (rst-adjust-adornment, rst-display-adornments-hierarchy) (rst-straighten-adornments): Standardized function names to use "adornment" instead of "decoration". Corrected callers. Similar standardizing happened in many places. (rst-update-section, rst-adjust, rst-promote-region) (rst-enumerate-region, rst-bullet-list-region) (rst-repeat-last-character): Corrected use of `interactive'. (rst-classify-adornment, rst-find-all-adornments) (rst-get-hierarchy, rst-adjust-adornment, rst-toc-update) (rst-find-leftmost-column, rst-repeat-last-character): Refactored functions. (rst-find-title-line, rst-reset-section-caches) (rst-get-adornments-around, rst-adjust-adornment-work) (rst-arabic-to-roman, rst-roman-to-arabic) (rst-insert-list-pos, rst-insert-list-new-item) (rst-insert-list-continue, rst-insert-list, rst-forward-line): New functions. (rst-all-sections, rst-section-hierarchy) (rst-arabic-to-roman, rst-initial-enums, rst-initial-items): New variables. (rst-toc-return-wincfg, rst-toc-quit-window): Using window configuration instead of only buffer. Changed where necessary. (rst-line-tabs, rst-compute-tabs, rst-indent-line) (rst-shift-region, rst-adaptive-fill): New functions for indentation and filling. (rst-comment-line-break, rst-comment-indent) (rst-comment-insert-comment, rst-comment-region) (rst-uncomment-region): New functions for handling comments. (rst-compile): Shell arguments are quoted. (rst-compile-pdf-preview, rst-compile-slides-preview): Temporary files are deleted after use.
* | * lisp/buff-menu.el (list-buffers--refresh): Mark `size' as right-align.Stefan Monnier2012-05-073-21/+58
| | | | | | | | | | | | | | * lisp/emacs-lisp/tabulated-list.el (tabulated-list-init-header): Handle new :right-align column property. (tabulated-list-print-col): Idem, plus use `display' text-property to try and preserve alignment for variable pitch fonts.
* | Restore Buffer-menu-use-header-line functionality.Chong Yidong2012-05-073-10/+55
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/tabulated-list.el: Add no-header-line alternative. (tabulated-list-use-header-line): New var. (tabulated-list-init-header): Use it. (tabulated-list-print-fake-header): New function. (tabulated-list-print): Use it. (tabulated-list-sort-button-map): Add non-header-line commands. (tabulated-list-init-header): Add column name property to basic labels as well. (tabulated-list-col-sort): Handle non-header-line button case. (tabulated-list--sort-by-column-name): Fix a corner case. * lisp/buff-menu.el (list-buffers--refresh): Handle Buffer-menu-use-header-line.
* | * lisp/buff-menu.el: Convert to Tabulated List mode.Chong Yidong2012-05-075-644/+367
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (Buffer-menu-buffer+size-width): Make obsolete. (Buffer-menu-name-width, Buffer-menu-size-width): New variables. (Buffer-menu-mode-map): Inherit from tabulated-list-mode-map. (Buffer-menu-mode): Derive from tabulated-list-mode. Move command documentation into docstring of buffer-menu. (Buffer-menu-toggle-files-only): Add an informative message. (Buffer-menu-sort): Convert to alias for tabulated-list-sort. (Buffer-menu-buffer, Buffer-menu-beginning, Buffer-menu-mark) (Buffer-menu-unmark, Buffer-menu-backup-unmark) (Buffer-menu-delete, Buffer-menu-save, Buffer-menu-not-modified) (Buffer-menu-execute, Buffer-menu-select) (Buffer-menu-marked-buffers, Buffer-menu-toggle-read-only) (Buffer-menu-bury): Use Tabulated List machinery. (Buffer-menu-mouse-select, Buffer-menu-sort-by-column) (Buffer-menu-sort-button-map, Buffer-menu-make-sort-button): Deleted. (list-buffers--refresh): New function. (list-buffers-noselect): Use it. (tabulated-list-entry-size->, Buffer-menu--pretty-name) (Buffer-menu--pretty-file-name): New helper functions. * lisp/loadup.el: Preload tabulated-list. * lisp/emacs-lisp/tabulated-list.el (tabulated-list-sort): Rename from tabulated-list-sort-column. (tabulated-list-init-header): Add the initial aligning space even if tabulated-list-padding is zero. * src/lisp.mk (lisp): Update.
* | * lisp/emacs-lisp/cl-macs.el (cl-expr-contains): Handle cons cellsChristopher Schmidt2012-05-062-7/+17
| | | | | | | | | | | | whose cdr is not a cons cell correctly. Fixes: debbugs:11038
* | Some cleanups for the buffer menu and electric buffer menu.Chong Yidong2012-05-064-11/+15
| | | | | | | | | | | | | | | | * lisp/buff-menu.el (list-buffers): Move C-x C-b binding from buff-menu.el to bindings.el. * lisp/ebuff-menu.el (Electric-buffer-menu-undefined): Use the :advertised-binding feature.
* | Improvements for Tabulated List mode.Chong Yidong2012-05-062-67/+195
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/tabulated-list.el (tabulated-list-format): Accept additional plist in column descriptors. (tabulated-list-init-header): Obey it. (tabulated-list-get-entry): New function. (tabulated-list-put-tag): Use it. Use string-width instead of length. (tabulated-list--column-number): New function. (tabulated-list-print): Use it. (tabulated-list-print-col): New function. Set `tabulated-list-column-name' property on each column's text. (tabulated-list-print-entry): Use it. (tabulated-list-delete-entry, tabulated-list-set-col): New functions. (tabulated-list-sort-column): New command. Fixes: debbugs:11337
* | Fix match highlighting in compilation buffers.Troels Nielsen2012-05-062-9/+15
| | | | | | | | | | | | | | | | * progmodes/compile.el (compilation-internal-error-properties): Calculate start position correctly when end-col is set but end-line is not. Fixes: debbugs:11382
* | Cosmetic fix for Man-unindent.Wolfgang Jenkner2012-05-062-1/+11
| | | | | | | | | | | | | | * lisp/man.el (Man-unindent): Use text-property-default-nonsticky to prevent untabify from inheriting face properties. Fixes: debbugs:11408
* | Optionally include holidays in cal-html outputGlenn Morris2012-05-052-13/+40
| | | | | | | | | | | | | | | | | | | | * lisp/calendar/cal-html.el: (cal-html-holidays): New option. (cal-html-css-default): Add holiday entry. (holiday-in-range): Autoload it. (cal-html-htmlify-entry): Add optional class argument. (cal-html-htmlify-list): Add optional holidays argument. (cal-html-insert-agenda-days): Include holidays in the output. (cal-html-one-month): Maybe include holidays.