summaryrefslogtreecommitdiff
path: root/lisp
Commit message (Collapse)AuthorAgeFilesLines
* Merge from emacs-23Stefan Monnier2011-01-141250-1469/+1478
|\
| * Forgot to mark tiny change.Glenn Morris2011-01-021-1/+1
| |
| * Abbrev.el fix for bug #7733. (tiny change)Brent Goodrick2011-01-022-11/+17
| | | | | | | | | | * lisp/abbrev.el (prepare-abbrev-list-buffer): If listing local abbrev table, get the value before switching to the output buffer.
| * * progmodes/python.el (python-mode): Don't impose font-lock.Stefan Monnier2011-01-022-1/+4
| | | | | | | | Fixes: debbugs:3628
| * Add 2011 to FSF/AIST copyright years.Glenn Morris2011-01-021305-1343/+1364
| |
* | * emulation/cua-base.el (cua--init-keymaps):Kim F. Storm2011-01-142-1/+6
| | | | | | | | Remap exchange-point-and-mark in cua-global-keymap.
* | * progmodes/sh-script.el (sh-other-keywords): Add ZSH's foreachTassilo Horn2011-01-142-1/+6
| | | | | | | | loop keyword.
* | * net/rcirc.el: Adding maintainer info and e-mail addresses.Deniz Dogan2011-01-141-2/+3
| |
* | * lisp/emacs-lisp/easymenu.el: Add :enable, and obey :label. Require CL.Stefan Monnier2011-01-132-41/+52
| | | | | | | | | | | | | | | | | | (easy-menu-create-menu, easy-menu-convert-item-1): Use :label rather than nil for labels. Use `case'. Add :enable as alias for :active. (easy-menu-binding): Obey :label. Fixes: debbugs:7754
* | Use run-mode-hooks for major mode hooks.Stefan Monnier2011-01-1321-1361/+1343
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/textmodes/reftex-toc.el (reftex-toc-mode-map): Rename from reftex-toc-map. (reftex-toc-mode): Use define-derived-mode. * lisp/textmodes/reftex-sel.el (reftex-select-shared-map): New map. (reftex-select-label-mode-map, reftex-select-bib-mode-map): Rename from reftex-select-(label|bib)-map. Move init into declaration. (reftex-select-label-mode, reftex-select-bib-mode): Use define-derived-mode. * lisp/textmodes/reftex-index.el (reftex-index-phrases-mode-map) (reftex-index-mode-map): Rename from reftex-index(-phrases)-map. Move init into delcaration. (reftex-index-mode, reftex-index-phrases-mode): Use define-derived-mode. * lisp/speedbar.el (speedbar-mode-syntax-table): Renaqme from speedbar-syntax-table. Move init into declaration. (speedbar-mode-map): Rename from speedbar-key-map. Move init into declaration. (speedbar-file-key-map): Move init into declaration. (speedbar-mode): Use define-derived-mode. * lisp/recentf.el (recentf-mode): Don't run hook (or message) redundantly. * lisp/net/rcirc.el (rcirc-mode): Use run-mode-hooks. * lisp/emacs-lisp/chart.el (chart-mode-map): Rename from chart-map. (chart-face-list): Move initialization into declaration. (chart-mode): Use define-derived-mode. * lisp/calculator.el (calculator-mode-map): Move init into declaration. (calculator-mode): Use define-derived-mode. * lisp/cedet/srecode/srt-mode.el (srecode-template-mode): Use define-derived-mode. * lisp/cedet/semantic/symref/list.el (semantic-symref-results-mode): Use run-mode-hooks. * lisp/erc/erc.el (erc-mode): * lisp/erc/erc-dcc.el (erc-dcc-chat-mode): Use define-derived-mode. * lisp/org/org-remember.el (org-remember-mode): * lisp/org/org-capture.el (org-capture-mode): Don't run hook redundantly. Fixes: debbugs:513
* | * lisp/mail/mail-utils.el (mail-strip-quoted-names): Make the regexp codeStefan Monnier2011-01-132-46/+30
| | | | | | | | work for nested comments.
* | * lisp/progmodes/prolog.el: Use syntax-propertize. Further code cleanup.Stefan Monnier2011-01-132-526/+539
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (prolog-use-prolog-tokenizer-flag): Change default when syntax-propertize can be used. (prolog-syntax-propertize-function): New var. (prolog-mode-variables): Move make-local-variable into `set'. Don't make comment-column local since we don't set it. Set comment-add (as it was in previous prolog.el). Use dolist. Set syntax-propertize-function. (prolog-mode, prolog-inferior-mode): Call prolog(-inferior)-menu directly, not through the mode-hook. (prolog-buffer-module, prolog-indent-level) (prolog-paren-is-the-first-on-line-p, prolog-paren-balance) (prolog-comment-limits, prolog-goto-comment-column): Use line-(end|beginning)-position. (prolog-build-prolog-command): Tighten up regexp. (prolog-consult-compile): Move make-local-variable into `set'. (prolog-consult-compile-filter, prolog-goto-next-paren) (prolog-help-on-predicate, prolog-clause-info) (prolog-mark-predicate): Don't let+setq. (prolog-indent-line): Use indent-line-to. Only call prolog-goto-comment-column if necessary. (prolog-indent-level): Use bobp. (prolog-first-pos-on-line): Remove, not used any more. (prolog-in-string-or-comment): Use syntax-ppss if available. (prolog-help-on-predicate): Use read-string. (prolog-goto-predicate-info): Simplify. (prolog-read-predicate): Use `default' rather than `initial'. (prolog-temporary-file): Use make-temp-file to close a security hole. (prolog-toggle-sicstus-sd): New command. (prolog-electric-underscore, prolog-variables-to-anonymous): Use dynamic-scoping as it was meant. (prolog-menu): Move menu definitions to top-level. Use a toggle-button for Sicstus's source debugger. Change "Code" to the more usual "Prolog", and hence change "Prolog" to "System". (prolog-inferior-menu): Reuse prolog-menu's help menu. Move other menu definition to top-level.
* | (doc-view-initiate-display): Fall back to normal mode whenTassilo Horn2011-01-132-5/+8
| | | | | | | | | | doc-view-mode cannot be enabled, also when extracting the document text into a separate buffer (bug#6446).
* | * doc-view.el (doc-view-open-text): Use meaningful text bufferTassilo Horn2011-01-132-1/+10
| | | | | | | | | | name. Keep original document's directory as default-directory (bug#6446).
* | * simple.el (shell-command): Don't error out if shell commandTassilo Horn2011-01-132-1/+11
| | | | | | | | | | buffer contains text with non-nil read-only property when erasing the buffer.
* | * ido.el (ido-may-cache-directory): Move "too-big" check later.Kim F. Storm2011-01-132-6/+12
| | | | | | | | | | (ido-next-match, ido-prev-match): Fix stray reordering of matching items when cycling through the matches.
* | * dired-x.el (dired-omit-verbose): New defcustom that allowsTassilo Horn2011-01-132-5/+20
| | | | | | | | | | disabling the omit messages. (dired-omit-expunge): Use it.
* | Merged from trunk.Christian Ohler2011-01-1313-195/+222
|\ \
| * | * font-lock.el (font-lock-verbose): Default to nil.Chong Yidong2011-01-122-2/+7
| | |
| * | New arg RETURN-ACTION for compose-mail, and related functions.Chong Yidong2011-01-129-173/+186
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/mail/sendmail.el (mail-return-action): New var. (mail-mode): Make it buffer-local. (mail-bury): Obey it. Move special Rmail window handling to rmail-mail-return. (mail, mail-setup): New arg RETURN-ACTION. (sendmail-user-agent-compose): Move from simple.el. * lisp/simple.el (sendmail-user-agent-compose): Move to sendmail.el. (compose-mail): New arg RETURN-ACTION. (compose-mail-other-window, compose-mail-other-frame): Likewise. * lisp/gnus/gnus-msg.el (gnus-msg-mail): New arg RETURN-ACTION. Pass it to message-mail. * lisp/gnus/message.el (message-mail): New arg RETURN-ACTION. (message-return-action): New var. (message-bury): Use it. (message-mode): Make it buffer-local. (message-send-and-exit): Always call message-bury. (message-tool-bar-gnome): Tweak tool-bar items. Add :vert-only tags. * lisp/mail/rmail.el (rmail-mail-return): New function. (rmail-start-mail): Pass it to compose-mail. * lisp/mh-e/mh-comp.el (mh-user-agent-compose): New arg RETURN-ACTION.
| * | * cus-theme.el (customize-themes): Use switch-to-buffer.Chong Yidong2011-01-123-11/+15
| | | | | | | | | | | | | | | * menu-bar.el (menu-bar-custom-menu): Tweak Mule and Customize menus. Add menu item for customize-themes.
| * | * emacs-lisp/package.el (package--list-packages): Use switch-to-buffer.Chong Yidong2011-01-122-9/+14
| | |
* | | Add ERT, a tool for automated testing in Emacs Lisp.Christian Ohler2011-01-133-0/+2838
|/ / | | | | | | | | | | | | | | | | | | * Makefile.in, configure.in, doc/misc/Makefile.in, doc/misc/makefile.w32-in: Add ERT. Make "make check" run tests in test/automated. * doc/misc/ert.texi, lisp/emacs-lisp/ert.el, lisp/emacs-lisp/ert-x.el: New files. * test/automated: New directory.
* | proto-stream.el (open-protocol-stream): Protect against the low-level ↵Lars Magne Ingebrigtsen2011-01-116-23/+49
| | | | | | | | | | | | | | | | | | transport functions returning nil. gnus-sum.el (gnus-summary-next-article): Remove hack to reselect group window, because it does the wrong thing when a separate frame displays the group buffer. gnus-int.el (gnus-request-accept-article): Don't try to update marks and stuff if the backend didn't return the article number. This fixes an Exchange-related nnimap bug. mm-decode.el (mm-preferred-alternative-precedence): Discourage showing empty parts. nnimap.el (nnimap-convert-partial-article): Protect against zero-length body parts.
* | * lisp/emacs-lisp/unsafep.el (unsafep): Handle backquoted forms.Johan Bockgård2011-01-112-0/+7
| |
* | * lisp/progmodes/prolog.el: Fix up coding conventions and such.Stefan Monnier2011-01-112-318/+272
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (prolog-indent-width): Use the same default as in previous prolog.el rather than tab-width which depends on which buffer is current when the file is loaded. (prolog-electric-newline-flag): Only enable if electric-indent-mode is not available. (prolog-emacs): Remove. Use (featurep 'xemacs) instead. (prolog-known-systems): Remove. (prolog-mode-syntax-table, prolog-inferior-mode-map): Move initialization into declaration. (prolog-mode-map): Move initialization into declaration. Remove system-specific mode-map vars, since they referred to the same keymap anyway. (prolog-mode-variables): Obey the user's preference w.r.t adaptive-fill-mode. Prefer symbol-value to `eval'. (prolog-mode-keybindings-edit): Add compatibility bindings. (prolog-mode): Use define-derived-mode. Don't handle mercury here. (mercury-mode-map): New var. (mercury-mode, prolog-inferior-mode): Use define-derived-mode. (prolog-ensure-process, prolog-process-insert-string) (prolog-consult-compile): Use with-current-buffer. (prolog-guess-fill-prefix): Simplify data flow. (prolog-replace-in-string): New function to use instead of replace-in-string. (prolog-enable-sicstus-sd): Don't abuse `eval'. (prolog-uncomment-region): Use `uncomment-region' when available. (prolog-electric-colon, prolog-electric-dash): Use `eolp'. (prolog-int-to-char, prolog-char-to-int): New functions to use instead of int-to-char and char-to-int. (prolog-mode-hook, prolog-inferior-mode-hook): Don't force font-lock.
* | * lisp/progmodes/prolog.el: Replace by a whole new file.Stefan Bruda2011-01-102-353/+4052
| |
* | * lisp/subr.el (eval-after-load): Fix timing for features.Stefan Monnier2011-01-102-11/+30
| | | | | | | | | | | | | | | | (declare-function, undefined, insert-for-yank) (replace-regexp-in-string): Follow checkdoc's recommendations. * doc/lispref/loading.texi (Hooks for Loading): Adjust doc of eval-after-load. Fixes: debbugs:7769
* | * lisp/calendar/diary-lib.el (diary-mode): Refresh *Calendar* afterStefan Monnier2011-01-102-15/+23
| | | | | | | | refreshing the diary buffer.
* | allout.el: Add 2011 to the file copyright.Ken Manheimer2011-01-102-8/+16
| | | | | | | | | | | | (allout-encrypt-string): Prevent encryption from adding an extra newline at the end of the topic body. (allout-version): Increment to 2.3.
* | * net/dbus.el (dbus-unregister-service): Complete doc. FixMichael Albinus2011-01-102-3/+16
| | | | | | | | call of dbus-error signal.
* | * net/dbus.el (dbus-register-property): Use `dont-register' keyword.Michael Albinus2011-01-102-5/+9
| |
* | * net/dbus.el (dbus-unregister-service): Translate returnedMichael Albinus2011-01-102-11/+26
| | | | | | | | | | | | integer into a symbol. (dbus-register-property): Use `dbus-register-service' to do the name registration.
* | Make org-link and idlwave-help-link inherit from link face.Chong Yidong2011-01-094-7/+12
| | | | | | | | | | | | | | Suggested by Joakim Verona. * lisp/org/org-faces.el (org-link): * lisp/progmodes/idlw-help.el (idlwave-help-link): Inherit from link face.
* | * lisp/comint.el (comint-highlight-prompt): Inherit from minibuffer-prompt.Chong Yidong2011-01-092-3/+3
| |
* | Fix 2010-03-12T22:56:30Z!cyd@stupidchicken.com change -- rename ↵Chong Yidong2011-01-093-42/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | :on/off-image widget props to :on/off-glyph. * wid-edit.el (visibility): Replace :on-image and :off-image widget properties with :on-glyph and :off-glyph, for consistency with the `visibility' widget. (widget-toggle-value-create, widget-visibility-value-create): Merge into a single function `widget-toggle-value-create'. * cus-edit.el (custom-variable-value-create, custom-visibility) (custom-face-edit-value-create, custom-face-value-create): Replace :on-image and :off-image widget properties with :on-glyph and :off-glyph, for consistency with the `visibility' widget.
* | Update dired.elAndreas Schwab2011-01-091-1/+1
| |
* | * lisp/net/ldap.el (ldap-search-internal): Don't use eval.Andreas Schwab2011-01-092-8/+8
| |
* | * lisp/subr.el (read-char-choice): Use read-key. Suggested by Stefan.Chong Yidong2011-01-092-1/+3
| | | | | | | | * src/fns.c (Fyes_or_no_p): Minor doc fix.
* | Record "safe themes" as sha1 hashes, as suggested by Stefan Monnier.Chong Yidong2011-01-082-68/+77
| | | | | | | | | | | | | | * lisp/custom.el (custom-safe-themes): Rename from custom-safe-theme-files. Add :risky tag. (load-theme, custom-theme-load-confirm): Save sha1 hashes to custom-safe-themes, not filenames. Suggested by Stefan Monnier.
* | Tweaks to tool-bar for default, VC-dir, Compile, and Info.Chong Yidong2011-01-085-47/+65
| | | | | | | | | | | | | | | | | | | | | | | | | | * tool-bar.el (tool-bar-setup): Remove Help button. Remove label from Search and add a label to Undo. * vc/vc-dir.el (vc-dir-tool-bar-map): Rearrange, removing inappropriate buttons and adding :vert-only tags. * progmodes/compile.el (compilation-mode-tool-bar-map): Adjust to removal of Help tool-bar button. Remove Undo button for space. * info.el (info-tool-bar-map): Add :vert-only tags.
* | * doc-view.el (doc-view-mode-p): Check for png or imagemagickTassilo Horn2011-01-082-1/+7
| | | | | | | | image backend support. Either of them is fine.
* | * lisp/files.el (directory-abbrev-alist): Minor doc fix (Bug#7777).Chong Yidong2011-01-081-1/+1
| | | | | | | | * doc/lispref/files.texi: Likewise.
* | Doc fix for y-or-n-p and yes-or-no-p.Chong Yidong2011-01-082-2/+7
| | | | | | | | | | * subr.el (y-or-n-p): Doc fix. * fns.c (Fyes_or_no_p): Doc fix.
* | Load themes using `load', querying if theme file not known safe.Chong Yidong2011-01-082-32/+84
| | | | | | | | | | | | | | * custom.el (custom-safe-theme-files): New defcustom. (custom-theme-load-confirm): New function. (load-theme): Load theme using `load', confirming with custom-theme-load-confirm if necessary.
* | New function read-char-choice for reading a restricted set of chars.Chong Yidong2011-01-085-169/+186
| | | | | | | | | | | | | | | | * lisp/subr.el (read-char-choice): New function, factored out from dired-query and hack-local-variables-confirm. * lisp/dired-aux.el (dired-query): * lisp/files.el (hack-local-variables-confirm): Use it.
* | * lisp/progmodes/compile.el (compilation-error-regexp-alist-alist)Andreas Schwab2011-01-082-2/+3
| | | | | | | | [gnu]: Remove unused group.
* | Fixes: debbugs:7806Andreas Schwab2011-01-082-1/+9
| | | | | | | | | | | | | | | | * etc/compilation.txt: Add column to gcc-include sample. * lisp/progmodes/compile.el (compilation-error-regexp-alist-alist) [gcc-include]: Tighten file name match, add match for column number.
* | Add --no-site-lisp to more Makefiles.Glenn Morris2011-01-072-1/+3
| | | | | | | | | | | | | | | | | | * leim/makefile.w32-in (RUN_EMACS): * leim/Makefile.in (RUN-EMACS): Add --no-site-lisp. * lib-src/Makefile.in (EMACSOPT): Add --no-site-lisp. * lisp/makefile.w32-in (EMACSOPT): Add --no-site-lisp.
* | In Makefiles, -batch implies -q.Glenn Morris2011-01-072-2/+6
| | | | | | | | | | | | | | | | | | | | * leim/makefile.w32-in (RUN_EMACS): * leim/Makefile.in (RUN-EMACS): -batch implies --no-init-file. * lisp/makefile.w32-in (EMACSOPT): -batch implies --no-init-file. * src/makefile.w32-in ($(EMACS)): * src/Makefile.in (emacs$(EXEEXT)): -batch implies -q.