1. 14 Jan, 2011 7 commits
  2. 13 Jan, 2011 12 commits
    • Stefan Monnier's avatar
      Use run-mode-hooks for major mode hooks. · 4d789d84
      Stefan Monnier authored
      * 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
    • Stefan Monnier's avatar
      * lisp/mail/mail-utils.el (mail-strip-quoted-names): Make the regexp code · b49a2dbf
      Stefan Monnier authored
      work for nested comments.
    • Stefan Monnier's avatar
    • Stefan Monnier's avatar
      * lisp/progmodes/prolog.el: Use syntax-propertize. Further code cleanup. · dbed16aa
      Stefan Monnier authored
      (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.
    • Tassilo Horn's avatar
      (doc-view-initiate-display): Fall back to normal mode when · 1281bd51
      Tassilo Horn authored
      doc-view-mode cannot be enabled, also when extracting the document
      text into a separate buffer (bug#6446).
    • Tassilo Horn's avatar
      * doc-view.el (doc-view-open-text): Use meaningful text buffer · 5b355315
      Tassilo Horn authored
      name.  Keep original document's directory as default-directory
    • Tassilo Horn's avatar
      * simple.el (shell-command): Don't error out if shell command · 50f8cd96
      Tassilo Horn authored
      buffer contains text with non-nil read-only property when erasing
      the buffer.
    • Kim F. Storm's avatar
      * ido.el (ido-may-cache-directory): Move "too-big" check later. · 821f936d
      Kim F. Storm authored
      (ido-next-match, ido-prev-match): Fix stray reordering of matching
      items when cycling through the matches.
    • Tassilo Horn's avatar
      * dired-x.el (dired-omit-verbose): New defcustom that allows · f754f898
      Tassilo Horn authored
      disabling the omit messages.
      (dired-omit-expunge): Use it.
    • Christian Ohler's avatar
      Merged from trunk. · 8b845e3b
      Christian Ohler authored
    • Chong Yidong's avatar
    • Chong Yidong's avatar
      New arg RETURN-ACTION for compose-mail, and related functions. · 25ca2e61
      Chong Yidong authored
      * 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
      (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
      * 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.
  3. 12 Jan, 2011 7 commits
  4. 11 Jan, 2011 6 commits
    • Lars Magne Ingebrigtsen's avatar
      proto-stream.el (open-protocol-stream): Protect against the low-level... · c516cd6d
      Lars Magne Ingebrigtsen authored
      proto-stream.el (open-protocol-stream): Protect against the low-level 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.
    • Tassilo Horn's avatar
      * image.c (imagemagick_load_image, Finit_image_library): Free · f853f599
      Tassilo Horn authored
      intermediate image after creating a MagickWand from it.  Terminate
      MagickWand environment after image loading.
    • Johan Bockgård's avatar
    • Stefan Monnier's avatar
      * lisp/progmodes/prolog.el: Fix up coding conventions and such. · 04380ff1
      Stefan Monnier authored
      (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
      (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.
    • Stefan Bruda's avatar
    • Stefan Monnier's avatar
      * lisp/subr.el (eval-after-load): Fix timing for features. · 3fa173b4
      Stefan Monnier authored
      (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
  5. 10 Jan, 2011 8 commits