]> git.eshelyaron.com Git - emacs.git/log
emacs.git
14 years agoDescribe recent changes in window code and provide some examples.
Martin Rudalics [Thu, 24 Feb 2011 09:17:10 +0000 (10:17 +0100)]
Describe recent changes in window code and provide some examples.

* windows.texi (Windows and Frames): Provide example of
combinations.
(Resizing Windows): Rewrite description of
adjust-window-trailing-edge.
(Splitting Windows): Provide examples how splitting affects
internal windows.  Rewrite description of window-splits.
(Deleting Windows): Rewrite description of delete-windows-on.
(Displaying Buffers): Describe fun-with-args specifier.
Describe display-buffer-alist-set.
(Window Configurations): Describe window-state-get and
window-state-put.

14 years agoProvide functions for saving window states and for converting Emacs 23
Martin Rudalics [Tue, 22 Feb 2011 13:55:12 +0000 (14:55 +0100)]
Provide functions for saving window states and for converting Emacs 23
options to display-buffer-alist settings.  Fix some minor errors.

* window.h (w): New slot clone_number.  Rename
"inhibit_recombine" slot to "nested".

* window.c (Fwindow_clone_number, Fwindow_nested)
(Fset_window_nested, Fset_window_clone_number): New functions.
(recombine_windows): Write "nested" isntead of
"inhibit_recombine".
(make_parent_window): Set clone_number.
(make_window): Set clone_number.  Write "nested" instead of
"inhibit_recombine".
(Fsplit_window_internal): Write "nested" instead of
"inhibit_recombine".
(Fresize_window_apply, Fdelete_window_internal): Add parens in
EQ test.
(saved_window): Add clone_number and write "nested" instead of
"inhibit_recombine".
(Fset_window_configuration, save_window_save): Set clone_number
and write "nested" instead of "inhibit_recombine".
(syms_of_window): Add Swindow_clone_number, Swindow_nested,
Sset_window_nested and Sset_window_clone_number.

* buffer.c (sort_overlays, overlay_strings): When an overlay has
the same clone-number property as the associated window don't
skip it even if the window properties are different.
(syms_of_buffer): Intern new Lisp_object Qclone_number.

* window.c (run_window_configuration_change_hook): Call
select_frame_norecord instead of Fselect_frame.

* progmodes/compile.el (compilation-goto-locus): Call
display-buffer-same-frame-other-window.

* window.el (window-atom-check-1): Fix handling of case where
only one atomic window was left.
(window-sizable-p): Fix doc-string.
(window-size-fixed-p): Move after window-size-firxed-1.
(split-window): Make sure that the new window gets any odd line
since this was the Emacs 23 behavior.
(window-list-no-nils, window-state-get-1, window-state-get)
(window-state-put-1, window-state-put-2, window-state-put): New
functions.
(window-state-ignored-parameters, window-state-put-list): New
variables.
(display-buffer-alist): Fix doc-string.
(display-buffer-even-sizes): Rename to
display-buffer-even-window-sizes.
(display-buffer-reuse-window): Call
display-buffer-even-window-sizes.
(display-buffer-pop-up-window): Don't pass specifiers to side
window function.
(display-buffer-same-window, display-buffer-same-frame)
(display-buffer-other-window)
(display-buffer-same-frame-other-window)
(pop-to-buffer-same-frame)
(pop-to-buffer-same-frame-other-window): Make these interactive.
(display-buffer-alist-add, display-buffer-alist-set): New
functions.

* window.el (display-buffer-pop-up-frame): Fix typo.  Pass
pop-up-frame-alist to pop-up-frame-function only if the latter
is a symbol.

* frame.el (pop-up-frame-alist, pop-up-frame-function)
(special-display-frame-alist, special-display-popup-frame): Move
to window.el.

* window.el (display-buffer-alist): Remove some specifiers from
default value.  Fix some typos.
(pop-up-frame-alist, pop-up-frame-function)
(special-display-frame-alist, special-display-popup-frame): Move
here from frame.el.  Disable byte compiler obsolete warnings.
(special-display-p, same-window-p): Restore Emacs 23 definitions
with obsolete warnings for byte compiler disabled.

* window.el (delete-other-windows): Mention return value in
doc-string.
(display-buffer-method-specifiers): Remove variable.
(display-buffer-alist): Add fun-with-args specifier.
(display-buffer-even-sizes): Simplify code.
(display-buffer): Handle fun-with-args specifier.
(mouse-autoselect-window-select): Replace condition-case by
ignore-errors.

* window.el (display-buffer-even-sizes): Fix typo.

14 years agoMerge from trunk.
Martin Rudalics [Sat, 15 Jan 2011 09:00:16 +0000 (10:00 +0100)]
Merge from trunk.

14 years ago* configure: Bump min libxml2 version to 2.6.17 (Bug#7603).
Chong Yidong [Sat, 15 Jan 2011 03:21:48 +0000 (22:21 -0500)]
* configure: Bump min libxml2 version to 2.6.17 (Bug#7603).

14 years ago[Gnus] Update copyright years.
Katsumi Yamaoka [Sat, 15 Jan 2011 00:35:35 +0000 (00:35 +0000)]
[Gnus] Update copyright years.

14 years ago* lisp/hexl.el (hexl-mode-old-*): Remove.
Stefan Monnier [Fri, 14 Jan 2011 19:55:35 +0000 (14:55 -0500)]
* lisp/hexl.el (hexl-mode-old-*): Remove.
(hexl-mode--old-var-vals): New var to replace them.
(hexl-mode--minor-mode-p, hexl-mode--setq-local): New funs.
(hexl-mode, hexl-follow-line, hexl-activate-ruler):
Use them to set local vars.
(hexl-mode-exit): Use hexl-mode--old-var-vals to restore state.
(hexl-backward-short, hexl-backward-word, hexl-scroll-down)
(hexl-scroll-up, hexl-end-of-1k-page, hexl-end-of-512b-page): Simplify.

Fixes: debbugs:7846
14 years agoMerge: make-dist distributes test/ files too.
Paul Eggert [Fri, 14 Jan 2011 18:58:35 +0000 (10:58 -0800)]
Merge: make-dist distributes test/ files too.

14 years ago* make-dist: Distribute test/ files too.
Paul Eggert [Fri, 14 Jan 2011 18:56:58 +0000 (10:56 -0800)]
* make-dist: Distribute test/ files too.

Distribute every file under test/ that is under version control,
using patterns like *.el to capture files that are added later.
Without this change, "configure" would fail, because it would
attempt to build from a Makefile.in that was not distributed.

14 years agoFix typo in last change of simple.el
Martin Rudalics [Fri, 14 Jan 2011 18:31:53 +0000 (19:31 +0100)]
Fix typo in last change of simple.el

14 years ago* lisp/vc/smerge-mode.el: Resolve comment conflicts more aggressively.
Stefan Monnier [Fri, 14 Jan 2011 18:10:15 +0000 (13:10 -0500)]
* lisp/vc/smerge-mode.el: Resolve comment conflicts more aggressively.
(smerge-resolve--normalize-re): New var.
(smerge-resolve--extract-comment, smerge-resolve--normalize): New funs.
(smerge-resolve): Use them.
* lisp/newcomment.el (comment-only-p): New function.
(comment-or-uncomment-region): Use it.

14 years agoUpdate md5 checksums
Stefan Monnier [Fri, 14 Jan 2011 18:06:07 +0000 (13:06 -0500)]
Update md5 checksums

14 years agoChangeLog merge fixes.
Glenn Morris [Fri, 14 Jan 2011 17:42:40 +0000 (09:42 -0800)]
ChangeLog merge fixes.

14 years agoMerge from emacs-23
Stefan Monnier [Fri, 14 Jan 2011 17:18:41 +0000 (12:18 -0500)]
Merge from emacs-23

14 years ago* emulation/cua-base.el (cua--init-keymaps):
Kim F. Storm [Fri, 14 Jan 2011 15:06:17 +0000 (16:06 +0100)]
* emulation/cua-base.el (cua--init-keymaps):
Remap exchange-point-and-mark in cua-global-keymap.

14 years ago* progmodes/sh-script.el (sh-other-keywords): Add ZSH's foreach
Tassilo Horn [Fri, 14 Jan 2011 12:17:24 +0000 (13:17 +0100)]
* progmodes/sh-script.el (sh-other-keywords): Add ZSH's foreach
loop keyword.

14 years ago* net/rcirc.el: Adding maintainer info and e-mail addresses.
Deniz Dogan [Fri, 14 Jan 2011 11:25:56 +0000 (12:25 +0100)]
* net/rcirc.el: Adding maintainer info and e-mail addresses.

14 years agoSanitize buffer display handling in calendar.el, a first step.
Martin Rudalics [Fri, 14 Jan 2011 10:29:40 +0000 (11:29 +0100)]
Sanitize buffer display handling in calendar.el, a first step.

* window.el (window-safely-shrinkable-p): Remove.

* calendar/calendar.el (calendar-generate-window): Only fit a
vertically combined window to its buffer.
(calendar-basic-setup): Call pop-to-buffer, preferably making a
new window at the bottom of the frame.  Remove the
split-height-threshold binding around call of
calendar-list-holidays, this must be handled separately.

14 years ago* admin/bzrmerge.el: Require cl when compiling.
Glenn Morris [Fri, 14 Jan 2011 02:44:25 +0000 (18:44 -0800)]
* admin/bzrmerge.el: Require cl when compiling.
(bzrmerge-merges): Doc fix.

14 years ago* lisp/emacs-lisp/easymenu.el: Add :enable, and obey :label. Require CL.
Stefan Monnier [Fri, 14 Jan 2011 02:12:43 +0000 (21:12 -0500)]
* lisp/emacs-lisp/easymenu.el: Add :enable, and obey :label.  Require CL.
(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
14 years agoUse run-mode-hooks for major mode hooks.
Stefan Monnier [Thu, 13 Jan 2011 23:14:30 +0000 (18:14 -0500)]
Use run-mode-hooks for major mode hooks.
* 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
14 years ago* lisp/mail/mail-utils.el (mail-strip-quoted-names): Make the regexp code
Stefan Monnier [Thu, 13 Jan 2011 21:48:34 +0000 (16:48 -0500)]
* lisp/mail/mail-utils.el (mail-strip-quoted-names): Make the regexp code
work for nested comments.

14 years ago* test/indent/prolog.prolog: Add tokenizing tests.
Stefan Monnier [Thu, 13 Jan 2011 20:53:06 +0000 (15:53 -0500)]
* test/indent/prolog.prolog: Add tokenizing tests.

14 years ago* lisp/progmodes/prolog.el: Use syntax-propertize. Further code cleanup.
Stefan Monnier [Thu, 13 Jan 2011 20:46:38 +0000 (15:46 -0500)]
* lisp/progmodes/prolog.el: Use syntax-propertize.  Further code cleanup.
(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.

14 years ago(doc-view-initiate-display): Fall back to normal mode when
Tassilo Horn [Thu, 13 Jan 2011 20:17:15 +0000 (21:17 +0100)]
(doc-view-initiate-display): Fall back to normal mode when
doc-view-mode cannot be enabled, also when extracting the document
text into a separate buffer (bug#6446).

14 years ago* doc-view.el (doc-view-open-text): Use meaningful text buffer
Tassilo Horn [Thu, 13 Jan 2011 19:48:26 +0000 (20:48 +0100)]
* doc-view.el (doc-view-open-text): Use meaningful text buffer
name.  Keep original document's directory as default-directory
(bug#6446).

14 years ago* simple.el (shell-command): Don't error out if shell command
Tassilo Horn [Thu, 13 Jan 2011 18:58:28 +0000 (19:58 +0100)]
* simple.el (shell-command): Don't error out if shell command
buffer contains text with non-nil read-only property when erasing
the buffer.

14 years agoMerge from trunk with two adjustments in sendmail.el.
Martin Rudalics [Thu, 13 Jan 2011 17:26:19 +0000 (18:26 +0100)]
Merge from trunk with two adjustments in sendmail.el.

14 years agoAdapt Electric-pop-up-window to new buffer display specifiers.
Martin Rudalics [Thu, 13 Jan 2011 16:53:20 +0000 (17:53 +0100)]
Adapt Electric-pop-up-window to new buffer display specifiers.

14 years ago* ido.el (ido-may-cache-directory): Move "too-big" check later.
Kim F. Storm [Thu, 13 Jan 2011 16:26:40 +0000 (17:26 +0100)]
* ido.el (ido-may-cache-directory): Move "too-big" check later.
(ido-next-match, ido-prev-match): Fix stray reordering of matching
items when cycling through the matches.

14 years ago* dired-x.el (dired-omit-verbose): New defcustom that allows
Tassilo Horn [Thu, 13 Jan 2011 15:44:41 +0000 (16:44 +0100)]
* dired-x.el (dired-omit-verbose): New defcustom that allows
disabling the omit messages.
(dired-omit-expunge): Use it.

14 years agoMerged from trunk.
Christian Ohler [Thu, 13 Jan 2011 08:08:58 +0000 (19:08 +1100)]
Merged from trunk.

14 years ago* font-lock.el (font-lock-verbose): Default to nil.
Chong Yidong [Thu, 13 Jan 2011 04:30:23 +0000 (23:30 -0500)]
* font-lock.el (font-lock-verbose): Default to nil.

14 years agoNew arg RETURN-ACTION for compose-mail, and related functions.
Chong Yidong [Thu, 13 Jan 2011 04:23:41 +0000 (23:23 -0500)]
New arg RETURN-ACTION for compose-mail, and related functions.

* 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.

14 years ago* cus-theme.el (customize-themes): Use switch-to-buffer.
Chong Yidong [Wed, 12 Jan 2011 19:10:00 +0000 (14:10 -0500)]
* cus-theme.el (customize-themes): Use switch-to-buffer.

* menu-bar.el (menu-bar-custom-menu): Tweak Mule and Customize
menus.  Add menu item for customize-themes.

14 years ago* emacs-lisp/package.el (package--list-packages): Use switch-to-buffer.
Chong Yidong [Wed, 12 Jan 2011 18:57:23 +0000 (13:57 -0500)]
* emacs-lisp/package.el (package--list-packages): Use switch-to-buffer.

14 years agoconfigure: Regenerated.
Christian Ohler [Wed, 12 Jan 2011 16:22:13 +0000 (03:22 +1100)]
configure: Regenerated.

14 years agoBetter diff faces on dark background.
Tassilo Horn [Wed, 12 Jan 2011 16:19:36 +0000 (17:19 +0100)]
Better diff faces on dark background.

14 years agoAdd ERT, a tool for automated testing in Emacs Lisp.
Christian Ohler [Wed, 12 Jan 2011 16:08:24 +0000 (03:08 +1100)]
Add ERT, a tool for automated testing in Emacs Lisp.

* 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.

14 years agoMerge from trunk
Martin Rudalics [Wed, 12 Jan 2011 13:27:03 +0000 (14:27 +0100)]
Merge from trunk

14 years agoSanitize buffer display handling in dired.el and proced.el.
Martin Rudalics [Wed, 12 Jan 2011 13:19:30 +0000 (14:19 +0100)]
Sanitize buffer display handling in dired.el and proced.el.

* dired.el (dired-display-file, dired-why): Use
display-buffer-other-window with label.
(dired-pop-to-buffer): Remove.
(dired-mark-pop-up): Use display-buffer and quit-restore-window.

* proced.el (proced-send-signal): Use display-buffer and
quit-restore-window.

14 years agoMinor docfixes in imagemagick_load_image.
Tassilo Horn [Wed, 12 Jan 2011 07:35:04 +0000 (08:35 +0100)]
Minor docfixes in imagemagick_load_image.

14 years ago* admin/bzrmerge.el: Standardize copyright and license headers.
Glenn Morris [Wed, 12 Jan 2011 04:28:12 +0000 (20:28 -0800)]
* admin/bzrmerge.el: Standardize copyright and license headers.

14 years agoproto-stream.el (open-protocol-stream): Protect against the low-level transport funct...
Lars Magne Ingebrigtsen [Tue, 11 Jan 2011 23:32:50 +0000 (23:32 +0000)]
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.

14 years ago* image.c (imagemagick_load_image, Finit_image_library): Free
Tassilo Horn [Tue, 11 Jan 2011 20:14:13 +0000 (21:14 +0100)]
* image.c (imagemagick_load_image, Finit_image_library): Free
intermediate image after creating a MagickWand from it.  Terminate
MagickWand environment after image loading.

14 years ago* lisp/emacs-lisp/unsafep.el (unsafep): Handle backquoted forms.
Johan Bockgård [Tue, 11 Jan 2011 18:42:30 +0000 (19:42 +0100)]
* lisp/emacs-lisp/unsafep.el (unsafep): Handle backquoted forms.

14 years agoIn ediff-show-patch-diagnostics call display-buffer-other-window.
Martin Rudalics [Tue, 11 Jan 2011 18:25:28 +0000 (19:25 +0100)]
In ediff-show-patch-diagnostics call display-buffer-other-window.

14 years agoSanitize buffer display handling in simple.el.
Martin Rudalics [Tue, 11 Jan 2011 17:02:28 +0000 (18:02 +0100)]
Sanitize buffer display handling in simple.el.

* simple.el (goto-line, compose-mail-other-window): Replace
switch-to-buffer-other-window by pop-to-buffer-other-window.
(pop-global-mark): Use pop-to-buffer-same-window instead of
switch-to-buffer.
(compose-mail-other-frame): Use pop-to-buffer-other-frame
instead of switch-to-buffer-other-frame.
(special-mode-map): Bind "q" to quit-restore-window instead of
quit-window.

14 years agoMerge from trunk
Martin Rudalics [Tue, 11 Jan 2011 16:05:26 +0000 (17:05 +0100)]
Merge from trunk

14 years agoSanitize some buffer display calls with new method specifiers.
Martin Rudalics [Tue, 11 Jan 2011 15:55:59 +0000 (16:55 +0100)]
Sanitize some buffer display calls with new method specifiers.

* buff-menu.el (Buffer-menu-mode-map): Bind "q" to
quit-restore-window.
(buffer-menu): Call pop-to-buffer-same-window.
(buffer-menu-other-window): Call pop-to-buffer-other-window.
(Buffer-menu-select): Rewrite using display-buffer-same-window
and display-buffer.
(Buffer-menu-1-window, Buffer-menu-mouse-select)
(Buffer-menu-this-window): Call pop-to-buffer-same-window.
(Buffer-menu-other-window): Call pop-to-buffer-other-window.
(Buffer-menu-switch-other-window): Call
display-buffer-same-frame-other-window.
(Buffer-menu-2-window): Add label argument in calls of
display-buffer-same-window and
pop-to-buffer-same-frame-other-window.

* mail/reporter.el (reporter-submit-bug-report): Use
display-buffer-same-frame-other-window.

* progmodes/compile.el (compilation-find-file): Use
display-buffer-same-frame.

* progmodes/inf-lisp.el (switch-to-lisp): Rewrite with new buffer
display method specifiers.

* vc/ediff-ptch.el (ediff-get-patch-buffer): Use
pop-to-buffer-other-window.
(ediff-patch-file-internal): Replace switch-to-buffer by
pop-to-buffer-same-window and switch-to-buffer-other-window by
pop-to-buffer-other-window.

* vc/pcvs.el (cvs-ediff-exit-hook): Call
pop-to-buffer-same-window instead of switch-to-buffer.
(cvs-mode-find-file): Replace switch-to-buffer and
switch-to-buffer-other-window by pop-to-buffer-same-window and
pop-to-buffer-other-window.  Replace call to dired-other-window
by call to display-buffer-other-window.
(cvs-temp-buffer): Call display-buffer-other-window instead of
display-buffer.

* vc/pcvs-util.el (cvs-bury-buffer): Call quit-restore-window.

14 years ago* lisp/progmodes/prolog.el: Fix up coding conventions and such.
Stefan Monnier [Tue, 11 Jan 2011 05:07:32 +0000 (00:07 -0500)]
* lisp/progmodes/prolog.el: Fix up coding conventions and such.
(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.

14 years ago* lisp/progmodes/prolog.el: Replace by a whole new file.
Stefan Bruda [Tue, 11 Jan 2011 04:34:06 +0000 (23:34 -0500)]
* lisp/progmodes/prolog.el: Replace by a whole new file.

14 years ago* lisp/subr.el (eval-after-load): Fix timing for features.
Stefan Monnier [Tue, 11 Jan 2011 03:23:04 +0000 (22:23 -0500)]
* lisp/subr.el (eval-after-load): Fix timing for features.
(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
14 years ago* lisp/calendar/diary-lib.el (diary-mode): Refresh *Calendar* after
Stefan Monnier [Mon, 10 Jan 2011 23:31:47 +0000 (18:31 -0500)]
* lisp/calendar/diary-lib.el (diary-mode): Refresh *Calendar* after
refreshing the diary buffer.

14 years agoallout.el: Add 2011 to the file copyright.
Ken Manheimer [Mon, 10 Jan 2011 22:05:42 +0000 (17:05 -0500)]
allout.el: Add 2011 to the file copyright.
(allout-encrypt-string): Prevent encryption from adding an extra newline at
the end of the topic body.
(allout-version): Increment to 2.3.

14 years ago* dbusbind.c (Fdbus_register_service): Raise an error in case of
Michael Albinus [Mon, 10 Jan 2011 11:28:31 +0000 (12:28 +0100)]
* dbusbind.c (Fdbus_register_service): Raise an error in case of
unexpected return values.
(Fdbus_register_method): Remove connection initialization.

14 years ago* net/dbus.el (dbus-unregister-service): Complete doc. Fix
Michael Albinus [Mon, 10 Jan 2011 11:21:01 +0000 (12:21 +0100)]
* net/dbus.el (dbus-unregister-service): Complete doc.  Fix
call of dbus-error signal.

14 years ago* net/dbus.el (dbus-register-property): Use `dont-register' keyword.
Michael Albinus [Mon, 10 Jan 2011 10:53:13 +0000 (11:53 +0100)]
* net/dbus.el (dbus-register-property): Use `dont-register' keyword.

14 years ago* dbusbind.c (QCdbus_request_name_allow_replacement): New symbol;
Michael Albinus [Mon, 10 Jan 2011 09:56:17 +0000 (10:56 +0100)]
* dbusbind.c (QCdbus_request_name_allow_replacement): New symbol;
used by Fdbus_register_service.
(QCdbus_request_name_replace_existing): Likewise.
(QCdbus_request_name_do_not_queue): Likewise.
(QCdbus_request_name_reply_primary_owner): Likewise.
(QCdbus_request_name_reply_in_queue): Likewise.
(QCdbus_request_name_reply_exists): Likewise.
(QCdbus_request_name_reply_already_owner): Likewise.
(Fdbus_register_service): New function.
(Fdbus_register_method): Use Fdbus_register_service to do the name
registration.
(syms_of_dbusbind): Add symbols dbus-register-service,
:allow-replacement, :replace-existing, :do-not-queue,
:primary-owner, :existing, :in-queue and :already-owner.

14 years ago* net/dbus.el (dbus-unregister-service): Translate returned
Michael Albinus [Mon, 10 Jan 2011 09:46:19 +0000 (10:46 +0100)]
* net/dbus.el (dbus-unregister-service): Translate returned
integer into a symbol.
(dbus-register-property): Use `dbus-register-service' to do the
name registration.

14 years ago* NEWS: Add new function dbus-register-service.
Michael Albinus [Mon, 10 Jan 2011 09:40:20 +0000 (10:40 +0100)]
* NEWS: Add new function dbus-register-service.

14 years ago* dbus.texi (Receiving Method Calls): New function
Michael Albinus [Mon, 10 Jan 2011 09:35:44 +0000 (10:35 +0100)]
* dbus.texi (Receiving Method Calls): New function
dbus-register-service.  Rearrange node.

14 years agoImprovements to tango themes, including some faces from Jan Moringen.
Chong Yidong [Sun, 9 Jan 2011 21:35:53 +0000 (16:35 -0500)]
Improvements to tango themes, including some faces from Jan Moringen.

* themes/tango-theme.el, themes/tango-dark-theme.el: Let-bind
tango palette colors.  Only define faces for color displays.
Customize the ansi-color-names-vector variable.  Add Ediff,
Flyspell, and Semantic faces as suggested by Jan Moringen.

14 years agoMake org-link and idlwave-help-link inherit from link face.
Chong Yidong [Sun, 9 Jan 2011 21:24:07 +0000 (16:24 -0500)]
Make org-link and idlwave-help-link inherit from link face.
Suggested by Joakim Verona.

* lisp/org/org-faces.el (org-link):
* lisp/progmodes/idlw-help.el (idlwave-help-link): Inherit from link face.

14 years ago* lisp/comint.el (comint-highlight-prompt): Inherit from minibuffer-prompt.
Chong Yidong [Sun, 9 Jan 2011 21:07:30 +0000 (16:07 -0500)]
* lisp/comint.el (comint-highlight-prompt): Inherit from minibuffer-prompt.

14 years agoFix 2010-03-12T22:56:30Z!cyd@stupidchicken.com change -- rename :on/off-image widget...
Chong Yidong [Sun, 9 Jan 2011 21:05:53 +0000 (16:05 -0500)]
Fix 2010-03-12T22:56:30Z!cyd@stupidchicken.com change -- rename :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.

14 years agoUpdate dired.el
Andreas Schwab [Sun, 9 Jan 2011 19:34:20 +0000 (20:34 +0100)]
Update dired.el

14 years ago* lisp/net/ldap.el (ldap-search-internal): Don't use eval.
Andreas Schwab [Sun, 9 Jan 2011 19:34:19 +0000 (20:34 +0100)]
* lisp/net/ldap.el (ldap-search-internal): Don't use eval.

14 years agoFix dired-pop-to-buffer
Martin Rudalics [Sun, 9 Jan 2011 19:34:18 +0000 (20:34 +0100)]
Fix dired-pop-to-buffer

14 years agoMerge from trunk
Martin Rudalics [Sun, 9 Jan 2011 18:52:32 +0000 (19:52 +0100)]
Merge from trunk

14 years agoFix windows.texi section on Switching Buffers
Martin Rudalics [Sun, 9 Jan 2011 18:14:29 +0000 (19:14 +0100)]
Fix windows.texi section on Switching Buffers

14 years agoAdd definition for `dired-directory' face.
Tassilo Horn [Sun, 9 Jan 2011 17:49:25 +0000 (18:49 +0100)]
Add definition for `dired-directory' face.

14 years ago* lisp/subr.el (read-char-choice): Use read-key. Suggested by Stefan.
Chong Yidong [Sun, 9 Jan 2011 14:26:29 +0000 (09:26 -0500)]
* lisp/subr.el (read-char-choice): Use read-key.  Suggested by Stefan.

* src/fns.c (Fyes_or_no_p): Minor doc fix.

14 years agoRecord "safe themes" as sha1 hashes, as suggested by Stefan Monnier.
Chong Yidong [Sun, 9 Jan 2011 04:59:56 +0000 (23:59 -0500)]
Record "safe themes" as sha1 hashes, as suggested by Stefan Monnier.

* 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.

14 years agoTweaks to tool-bar for default, VC-dir, Compile, and Info.
Chong Yidong [Sun, 9 Jan 2011 04:13:47 +0000 (23:13 -0500)]
Tweaks to tool-bar for default, VC-dir, Compile, and Info.

* 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.

14 years agoMinor fix to GTK tool-bar button refresh code.
Chong Yidong [Sun, 9 Jan 2011 03:29:49 +0000 (22:29 -0500)]
Minor fix to GTK tool-bar button refresh code.

* gtkutil.c (update_frame_tool_bar): Don't advance tool-bar index
when removing extra buttons.

14 years ago* doc-view.el (doc-view-mode-p): Check for png or imagemagick
Tassilo Horn [Sat, 8 Jan 2011 22:57:07 +0000 (23:57 +0100)]
* doc-view.el (doc-view-mode-p): Check for png or imagemagick
image backend support.  Either of them is fine.

14 years ago* lisp/files.el (directory-abbrev-alist): Minor doc fix (Bug#7777).
Chong Yidong [Sat, 8 Jan 2011 21:22:19 +0000 (16:22 -0500)]
* lisp/files.el (directory-abbrev-alist): Minor doc fix (Bug#7777).
* doc/lispref/files.texi: Likewise.

14 years agoDoc fix for y-or-n-p and yes-or-no-p.
Chong Yidong [Sat, 8 Jan 2011 21:17:58 +0000 (16:17 -0500)]
Doc fix for y-or-n-p and yes-or-no-p.

* subr.el (y-or-n-p): Doc fix.
* fns.c (Fyes_or_no_p): Doc fix.

14 years agoFix some pop-to-buffer callers.
Martin Rudalics [Sat, 8 Jan 2011 19:29:04 +0000 (20:29 +0100)]
Fix some pop-to-buffer callers.

14 years agoLoad themes using `load', querying if theme file not known safe.
Chong Yidong [Sat, 8 Jan 2011 19:19:55 +0000 (14:19 -0500)]
Load themes using `load', querying if theme file not known safe.

* 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.

14 years agoNew function read-char-choice for reading a restricted set of chars.
Chong Yidong [Sat, 8 Jan 2011 19:17:23 +0000 (14:17 -0500)]
New function read-char-choice for reading a restricted set of chars.

* 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.

14 years ago* Makefile.in (EXECUTABLES): Remove; macro unused since 1993.
Paul Eggert [Sat, 8 Jan 2011 19:03:31 +0000 (11:03 -0800)]
* Makefile.in (EXECUTABLES): Remove; macro unused since 1993.

14 years agoChange dev-tsdh-dark/dev-tsdh-light theme names to tsdh-dark/tsdh-light,
Chong Yidong [Sat, 8 Jan 2011 17:57:55 +0000 (12:57 -0500)]
Change dev-tsdh-dark/dev-tsdh-light theme names to tsdh-dark/tsdh-light,
to fit file names.

14 years ago* src/fns.c (Fyes_or_no_p): Add usage.
Andreas Schwab [Sat, 8 Jan 2011 13:32:31 +0000 (14:32 +0100)]
* src/fns.c (Fyes_or_no_p): Add usage.

14 years ago* lisp/progmodes/compile.el (compilation-error-regexp-alist-alist)
Andreas Schwab [Sat, 8 Jan 2011 13:32:31 +0000 (14:32 +0100)]
* lisp/progmodes/compile.el (compilation-error-regexp-alist-alist)
[gnu]: Remove unused group.

14 years agoFixes: debbugs:7806
Andreas Schwab [Sat, 8 Jan 2011 13:31:26 +0000 (14:31 +0100)]
Fixes: debbugs:7806
* 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.

14 years agoMerge from trunk
Martin Rudalics [Sat, 8 Jan 2011 11:58:25 +0000 (12:58 +0100)]
Merge from trunk

14 years agoMajor rewrite of display-buffer functions, atomic and side windows.
Martin Rudalics [Sat, 8 Jan 2011 11:20:19 +0000 (12:20 +0100)]
Major rewrite of display-buffer functions, atomic and side windows.

* buff-menu.el (Buffer-menu-switch-other-window): Use
display-buffer-same-frame-other-window.
(Buffer-menu-2-window): Use
pop-to-buffer-same-frame-other-window.

* progmodes/compile.el (compilation-start): Use
pop-up-window-set-height specifier.
(compilation-goto-locus): Rewrite window-setup code with new
display method specifiers.

* vc/ediff-mult.el (ediff-collect-custom-diffs)
(ediff-meta-show-patch): Use display-buffer-other-window.

* files.el (ctl-x-5-map): Remove binding for
display-buffer-other-frame.

* frame.el (pop-up-frame-alist, pop-up-frame-function)
(special-display-frame-alist): Update obsolescence declaration.

* mail/reporter.el (reporter-submit-bug-report): Adapt to new
display specifiers.

* man.el (Man-notify-when-ready): Use
display-buffer-other-window.

* pcomplete.el (pcomplete-show-completions): Use
display-buffer-other-window.

* ps-print.el (ps-line-lengths-internal, ps-nb-pages): Use
display-buffer-other-window.

* term.el (term-display-buffer-line): Call
display-buffer-other-window.

* window.el (window-child-count): New function.
(walk-window-tree-1, walk-window-tree, walk-window-subtree):
Move them here.
(windows-with-parameter, window-with-parameter)
(window-atom-root, make-window-atom, window-atom-check-1)
(window-atom-check): New functions.
(window-sides-vertical, window-sides-slots, window-sides-alist):
New options.
(window-side-check, window-check): New functions.
(composite-window-p, composite-root-window-p)
(composite-main-window-p, composite-support-window-p)
(composite-root-window, composite-major-window)
(composite-main-sibling, composite-lowest-child-role)
(compound-window-p, compound-main-window-p)
(compound-root-window, group-window-p, group-root-window): Remove,
their functionality is now provided by atomic and side windows.
(other-window): Check other-window-function parameter and rewrite
handling of no-other-window parameter.
(window-deletable-p, delete-window, delete-other-windows)
(split-window): Handle ignore-window-parameters, atomic and side
windows.  Call window-check.
(make-compound-window, make-window-group, make-support-window):
Remove, replaced by atomic and side windows.
(display-buffer-names, display-buffer-regexps): Remove, replaced
by display-buffer-alist.
(display-buffer-method-specifiers)
(display-buffer-macro-specifiers): New constants.
(display-buffer-default-specifiers): Rewrite.
(display-buffer-alist): New variable.
(display-buffer-other-window-specifiers)
(display-buffer-same-frame-specifiers)
(display-buffer-other-window-same-frame-specifiers)
(display-buffer-other-frame-specifiers): Rewrite with new
display specifiers.
(display-buffer-function, display-buffer-window)
(display-buffer-even-sizes, display-buffer-select-window, display-buffer-in-window):
Rewrite doc-string.
(display-buffer-set-height): Rename from display-buffer-adjust-height.
(display-buffer-set-width): Rename from display-buffer-adjust-width.
(display-buffer-in-window): Install no-other-window parameter if
required.
(display-buffer-reuse-window): New function.
(display-buffer-split-window-1, display-buffer-split-window):
Rewrite.
(display-buffer-split-atom-window, display-buffer-pop-up-window)
(display-buffer-pop-up-frame, display-buffer-pop-up-side-window):
New functions.
(display-buffer-normalize-specifiers-1)
(display-buffer-normalize-specifiers, display-buffer
(display-buffer-same-window, display-buffer-same-frame)
(display-buffer-other-window)
(display-buffer-same-frame-other-window, pop-to-buffer)
(pop-to-buffer-same-window, pop-to-buffer-same-frame)
(pop-to-buffer-other-window)
(pop-to-buffer-same-frame-other-window)
(pop-to-buffer-other-frame): Rewrite using new display
specifiers.
(special-display-regexps, special-display-function)
(same-window-buffer-names, same-window-regexps, pop-up-frames)
(display-buffer-reuse-frames, pop-up-windows)
(split-window-preferred-function, split-height-threshold)
(split-width-threshold, even-window-heights)
(display-buffer-mark-dedicated): Rewrite obsolete declarations.
(special-display-p, same-window-p): Rewrite with new display
specifiers.

* windows.texi (Windows): Rename sections "Frames and Windows"
to "Windows and Frames", "Compound Windows" to "Atomic Windows",
and "Window Groups" to "Side Windows".
(Splitting Windows, Deleting Windows): Rewrite sections dealing
with window parameters and ignore-window-parameters.  Describe
handling of atomic windows and side windows.
(Displaying Buffers): Describe method and other new display
specifiers, display-buffer-alist, and the new functions
display-buffer-reuse-window, display-buffer-pop-up-window,
display-buffer-pop-up-frame, and display-buffer-in-side-window.
Add description of specifier normalization
(Window Parameters): Describe functions windows-with-parameter
and window-with-parameter and the window parameters used by the
window handling routines.
(Composite Windows, Compound Windows, Window Groups): Sections
removed.
(Atomic Windows): New section on atomic windows.
(Side Windows): New section on side windows.

14 years agoAdd --no-site-lisp to more Makefiles.
Glenn Morris [Sat, 8 Jan 2011 02:53:50 +0000 (18:53 -0800)]
Add --no-site-lisp to more Makefiles.

* 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.

14 years ago-batch implies -q.
Glenn Morris [Sat, 8 Jan 2011 02:49:27 +0000 (18:49 -0800)]
-batch implies -q.

* etc/PROBLEMS: -batch implies -q.

* msdos/sedleim.inp (RUN-EMACS): -batch imples --no-init-file.

14 years agoIn Makefiles, -batch implies -q.
Glenn Morris [Sat, 8 Jan 2011 02:41:14 +0000 (18:41 -0800)]
In Makefiles, -batch implies -q.

* 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.

14 years ago* lib-src/Makefile.in (EMACSOPT): Remove --multibyte, it does nothing any more.
Glenn Morris [Sat, 8 Jan 2011 02:34:26 +0000 (18:34 -0800)]
* lib-src/Makefile.in (EMACSOPT): Remove --multibyte, it does nothing any more.

14 years agoFix bug#7750.
Glenn Morris [Sat, 8 Jan 2011 02:31:57 +0000 (18:31 -0800)]
Fix bug#7750.
* src/xdisp.c (syms_of_xdisp) <Qrisky_local_variable>: Move from here...
* src/emacs.c (syms_of_emacs) <Qrisky_local_variable>: ...to here.

14 years agoFix some resource leaks in ImageMagick image loader
Andreas Schwab [Fri, 7 Jan 2011 22:33:32 +0000 (23:33 +0100)]
Fix some resource leaks in ImageMagick image loader

* src/image.c (imagemagick_load_image): Fix some resource leaks and
error handling.

14 years ago* install-sh, mkinstalldirs, move-if-change: Update from master
Paul Eggert [Fri, 7 Jan 2011 20:42:11 +0000 (12:42 -0800)]
* install-sh, mkinstalldirs, move-if-change: Update from master

14 years ago* texinfo.tex: Update to version 2010-12-23.17 from gnulib,
Paul Eggert [Fri, 7 Jan 2011 19:49:15 +0000 (11:49 -0800)]
* texinfo.tex: Update to version 2010-12-23.17 from gnulib,

which in turn is copied from ftp://tug.org/tex/.

14 years ago* config.guess, config.sub: Updated from master source.
Paul Eggert [Fri, 7 Jan 2011 19:39:48 +0000 (11:39 -0800)]
* config.guess, config.sub: Updated from master source.

14 years agonotes/copyright: Report status more accurately for non-GPL files.
Paul Eggert [Fri, 7 Jan 2011 19:26:23 +0000 (11:26 -0800)]
notes/copyright: Report status more accurately for non-GPL files.

14 years ago* notes/copyright: Report status more accurately for non-GPL files.
Paul Eggert [Fri, 7 Jan 2011 19:23:35 +0000 (11:23 -0800)]
* notes/copyright: Report status more accurately for non-GPL files.

Report copyright status more accurately for mkinstalldirs,
configure, m4/getopt.m4, and msdos/sed*.inp.

14 years ago* w32-fns.el (w32-shell-name): Use `shell-file-name' instead of
Sam Steingold [Fri, 7 Jan 2011 19:07:29 +0000 (14:07 -0500)]
* w32-fns.el (w32-shell-name): Use `shell-file-name' instead of
the `explicit-shell-file-name' because that is the non-interactive shell.