1. 15 Jan, 2011 15 commits
  2. 14 Jan, 2011 14 commits
  3. 13 Jan, 2011 11 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
      4d789d84
    • 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.
      b49a2dbf
    • 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