1. 13 Jan, 2011 10 commits
    • Stefan Monnier's avatar
      db5d03ea
    • 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.
      dbed16aa
    • 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).
      1281bd51
    • 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
      (bug#6446).
      5b355315
    • 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.
      50f8cd96
    • 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.
      821f936d
    • 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.
      f754f898
    • Christian Ohler's avatar
      Merged from trunk. · 8b845e3b
      Christian Ohler authored
      8b845e3b
    • Chong Yidong's avatar
      a03b542a
    • 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
      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.
      25ca2e61
  2. 12 Jan, 2011 7 commits
  3. 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.
      c516cd6d
    • 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.
      f853f599
    • 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
      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.
      04380ff1
    • Stefan Bruda's avatar
      e2019526
    • 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
      3fa173b4
  4. 10 Jan, 2011 9 commits
  5. 09 Jan, 2011 8 commits