Stefan Monnier [Mon, 28 Nov 2005 21:55:15 +0000 (21:55 +0000)]
(elp-not-profilable): Replace interactive-p with called-interactively-p.
(elp-profilable-p): Rename from elp-not-profilable-p.
Invert result and take into account macros and autoloaded functions.
(elp-instrument-function): Update call.
(elp-instrument-package): Update call. Add completion.
(elp-pack-number): Use match-string.
(elp-results-jump-to-definition-by-mouse): Merge into
elp-results-jump-to-definition and then remove.
(elp-output-insert-symname): Make help echo text single-line.
Stefan Monnier [Mon, 28 Nov 2005 21:46:51 +0000 (21:46 +0000)]
(query-replace-map): Move initialization into declaration.
(occur-engine): Use with-current-buffer.
(occur-mode-goto-occurrence): Make it work for mouse-clicks as well.
(occur-mode-mouse-goto): Replace with an alias.
Stefan Monnier [Mon, 28 Nov 2005 16:44:37 +0000 (16:44 +0000)]
(flyspell-last-buffer): New var.
(flyspell-accept-buffer-local-defs): Use it to avoid silly redundant work.
(flyspell-mode-on): Use add-hook for after-change-functions.
(flyspell-mode-off): Use remove-hook for after-change-functions.
(flyspell-changes): Make it buffer-local.
(flyspell-after-change-function): Make it non-interactive. Use push.
(flyspell-post-command-hook): Check input-pending-p while processing
the potentially long list of buffer changes.
Luc Teirlinck [Mon, 28 Nov 2005 01:54:00 +0000 (01:54 +0000)]
("facemenu"): Load facemenu before font-lock, because
`facemenu-keymap' needs to be defined when font-lock is loaded.
Otherwise, `M-o M-o' is not bound to `font-lock-fontify-block'.
Stefan Monnier [Mon, 28 Nov 2005 01:43:28 +0000 (01:43 +0000)]
Remove useless leading * in defcustom docstrings.
(save-completions-file-name): Use ~/.emacs.d if available.
(completion-standard-syntax-table): Rename from
cmpl-standard-syntax-table and fold initialization into declaration,
thus removing cmpl-make-standard-completion-syntax-table.
(completion-lisp-syntax-table, completion-c-syntax-table)
(completion-fortran-syntax-table, completion-c-def-syntax-table): Idem.
(cmpl-saved-syntax, cmpl-saved-point): Remove.
(symbol-under-point, symbol-before-point)
(symbol-under-or-before-point, symbol-before-point-for-complete)
(add-completions-from-c-buffer): Use with-syntax-table.
(make-completion): Don't return a list of completion entries.
Update callers.
(cmpl-prefix-entry-head, cmpl-prefix-entry-tail): Use defalias.
(completion-initialize): Rename from initialize-completions.
(completion-find-file-hook): Rename from cmpl-find-file-hook.
(kill-emacs-save-completions): Collect stats here.
(save-completions-to-file, load-completions-from-file):
Use with-current-buffer.
(completion-def-wrapper): Rename from def-completion-wrapper. Make it
into a function. Move all calls to toplevel.
(completion-lisp-mode-hook): New fun.
(completion-c-mode-hook, completion-setup-fortran-mode):
Set the syntax-table here. Use local-set-key.
(completion-saved-bindings): New var.
(dynamic-completion-mode): Make it into a proper minor mode.
(load-completions-from-file): Remove unused var `num-uses'.
Luc Teirlinck [Sun, 27 Nov 2005 23:55:30 +0000 (23:55 +0000)]
(Buffer-menu-revert-function): Make the selected window's buffer the
current buffer around the call to `list-buffers-noselect'. This is
necessary to mark that buffer with a `.' in the Buffer Menu when
called from Lisp, for instance by Auto Revert Mode.
Stefan Monnier [Sun, 27 Nov 2005 20:53:55 +0000 (20:53 +0000)]
(PC-completion-as-file-name-predicate): Use minibuffer-completing-file-name.
(partial-completion-mode): Use find-file-not-found-functions.
(PC-lisp-complete-symbol): Use with-syntax-table.
(PC-look-for-include-file): Remove dead setq.
(PC-look-for-include-file, PC-expand-many-files, PC-do-completion)
(PC-complete): Use with-current-buffer.
(adjust_window_trailing_edge): New function.
(Fadjust_window_trailing_edge): New function.
(syms_of_window): defsubr it.
(window_deletion_count): New variable.
(delete_window): Update window_deletion_count.
Nick Roberts [Sun, 27 Nov 2005 01:17:47 +0000 (01:17 +0000)]
(gdb-goto-breakpoint, gdb-frames-select, gdb-threads-select):
Use `posn-set-point' instead of `mouse-set-point' because the
latter is not fbound when configured without X.
Kim F. Storm [Sat, 26 Nov 2005 19:25:36 +0000 (19:25 +0000)]
(ido-mode-map): Doc fix.
(ido-mode-common-map, ido-mode-file-map)
(ido-mode-file-dir-map, ido-mode-buffer-map): New keymaps.
(ido-define-mode-map): Rewrite. Select one of the new maps as
parent for ido-mode-map instead of building from scratch.
(ido-init-mode-maps): New defun to initialize new maps.
(ido-mode): Call it.
(ido-switch-buffer): Doc fix -- use \<ido-mode-buffer-map>.
(ido-find-file): Doc fix -- use \<ido-mode-file-map>.
Nick Roberts [Fri, 25 Nov 2005 21:34:03 +0000 (21:34 +0000)]
(gdb-info-breakpoints-custom)
(gdb-mouse-toggle-breakpoint-margin)
(gdb-mouse-toggle-breakpoint-fringe, gdb-threads-select):
Add gdb-server-prefix to keep out of command history.
(gdb-edit-register-value): New function.
(gdb-registers-mode-map): Bind mouse-2 and RET to it.
(gdb-info-registers-custom): Use above map.
Chong Yidong [Fri, 25 Nov 2005 16:35:34 +0000 (16:35 +0000)]
* info.el (Info-on-current-buffer): Record actual filename in
Info-current-file, instead of t, or a fake filename if a non-file
buffer. Make autoload.
(Info-find-node, Info-revert-find-node): No need to check for
Info-current-file nil.
(Info-set-mode-line, Info-up, Info-copy-current-node-name):
Info-current-file is now never `t'.
(Info-fontify-node): Many simplifications due to Info-current-file
always being valid. Use Info-find-file to find node filename.
David Ponce [Fri, 25 Nov 2005 07:57:21 +0000 (07:57 +0000)]
(recentf-arrange-by-rule): Handle a special `auto-mode-alist'-like
"strip suffix" rule.
(recentf-build-mode-rules): Handle second level auto-mode entries.
Chong Yidong [Fri, 25 Nov 2005 05:32:56 +0000 (05:32 +0000)]
* hi-lock.el (hi-lock-buffer-mode): Turn on font-lock.
(hi-lock-unface-buffer, hi-lock-set-file-patterns): Call
font-lock-fontify-buffer.
(hi-lock-refontify): Deleted.
(hi-lock-font-lock-hook): Turn off hi-lock when font lock is
turned off.
Chong Yidong [Thu, 24 Nov 2005 20:52:16 +0000 (20:52 +0000)]
* hi-lock.el (hi-lock-buffer-mode): Renamed from `hi-lock-mode'.
Use define-minor-mode, and make it a local mode.
(hi-lock-mode): New global minor mode.
(turn-on-hi-lock-if-enabled): New function.
(hi-lock-line-face-buffer, hi-lock-face-buffer)
(hi-lock-set-pattern): Changed arguments to regexp and face
instead of a font-lock pattern. Directly set face property,
instead of refontifying.
(hi-lock-font-lock-hook): Check if font-lock is being turned on.
(hi-lock-find-patterns): Use line-number-at-pos.
(hi-lock-face-phrase-buffer): Call hi-lock-buffer-mode. Use new
arguments for hi-lock-set-pattern.
(hi-lock-find-file-hook, hi-lock-current-line)
(hi-lock-set-patterns): Deleted unused functions.
* progmodes/compile.el (compilation-setup): Don't fiddle with
font-lock-defaults.
Carsten Dominik [Thu, 24 Nov 2005 14:45:21 +0000 (14:45 +0000)]
(org-export-plain-list-max-depth): Renamed from
`org-export-local-list-max-depth'. Default values changed to 3.
(org-auto-renumber-ordered-lists,
org-plain-list-ordered-item-terminator): New options.
(org-at-item-p, org-beginning-of-item, org-end-of-item,
org-get-indentation, org-get-string-indentation,
org-maybe-renumber-ordered-list, org-renumber-ordered-list): New
functions.
(org-move-item-down, org-move-item-up): New commands.
(org-export-as-html): New classes for CSS support. Bug fix in
regular expression detecting fixed-width regions. Respect
`org-local-list-ordered-item-terminator'.
(org-set-autofill-regexps, org-adaptive-fill-function): "1)" is
also a list item.
(org-metaup, org-metadown, org-shiftmetaup, org-shiftmetadown):
New item moving functions added.
(Mac Input): Remove description of mac-command-key-is-meta. Add
descriptions of mac-control-modifier, mac-command-modifier, and
mac-option-modifier.
(Mac International): Fix description of conversion of clipboard data.
(Mac Font Specs): Add example of font customization by face attributes.
Nick Roberts [Thu, 24 Nov 2005 00:36:03 +0000 (00:36 +0000)]
(gud-speedbar-menu-items): Add gdb-speedbar-auto-raise as radio button.
(gud-speedbar-buttons): Raise speedbar if requested.
Don't match on "char **...".
(gud-speedbar-buttons): Add (pointer) value for non-leaves.
Make it editable.