Martin Rudalics [Tue, 2 Nov 2010 17:04:40 +0000 (18:04 +0100)]
Provide new semantics for cdr of `not-this-window' and `not-this-frame'
specifiers when passed as argument to `display-buffer'. Use buffer
display specifiers in compilation functions.
* window.el (display-buffer-names): Describe `not-this-window' and
`not-this-frame' specifiers in doc-string.
(display-buffer-in-lru-buffer-window)
(display-buffer-in-lru-window, display-buffer-in-new-window):
Handle `not-this-window' and `not-this-frame' specifiers when
their cdr specifies a window or a frame.
(display-buffer): Explain in doc-string that the cdr of the
`not-this-window' and `not-this-frame' specifiers argument can
name a window.
* progmodes/compile.el (compilation-start): When displaying outbuf
directly pass height parameters.
(compilation-goto-locus): Use specifiers in display-buffer and
pop-to-buffer calls. Simplify.
(compilation-find-file): Use specifiers in display-buffer calls.
* windows.texi (Displaying Buffers): Describe special handling
of `not-this-window' and `not-this-frame' specifiers for
`display-buffer'.
Martin Rudalics [Sat, 30 Oct 2010 09:31:16 +0000 (11:31 +0200)]
Provide new semantics for variable display-buffer-window (former
display-buffer-window-and-buffer) and quit-restore window parameter.
* window.el (window-deletable-p, quit-restore-window): Adapt to
new quit-restore semantics.
(split-window-quit-restore): Remove.
(split-window-vertically, split-window-horizontally):
Unconditionally copy quit-restore parameter to new window.
(display-buffer-names): Mention quit-restore window parameter.
(display-buffer-window-and-buffer): Rename to
display-buffer-window and rewrite doc-string.
(display-buffer-in-window, display-buffer-in-lru-buffer-window)
(display-buffer-in-lru-window, display-buffer-in-new-window)
(display-buffer-in-new-frame, display-buffer): Move quit-restore
parameter handling from display-buffer-in-window to the callers.
Set display-buffer-window.
* help.el (help-window-setup, with-help-window): Use
display-buffer-window insted of display-buffer-window-and-buffer
and adapt to new semantics of the former.
* windows.texi (Buffers and Windows, Displaying Buffers): Adapt
to new semantics of quit-restore window parameter and
display-buffer-window (was display-buffer-window-and-buffer)
semantics.
Gnus developers [Sat, 30 Oct 2010 05:59:34 +0000 (05:59 +0000)]
Merge changes made in Gnus trunk.
gnus.el: Remove `gnus-nntp-service' variable.
gnus.el: Make gnus-nntp-server and gnus-secondary-servers obsolete.
gnus-sum.el (gnus-summary-delete-marked-as-read, gnus-summary-delete-marked-with): Remove obsolete defalias.
gnus.el (gnus-use-long-file-name): Fix docstring.
nnimap.el (nnimap-open-connection): Use AUTHENTICATE PLAIN on servers that say they support that.
gnus-msg.el (gnus-inews-do-gcc): Don't have the backends do the slow *-request-group, which seems unnecessary.
gnus-group.el (gnus-group-get-new-news-this-group): Don't have point move to the previous line on `M-g'.
nnimap.el (nnimap-split-incoming-mail): Note that the INBOX has been selected.
nnimap.el: Allow the user to say whether to split old messages or not in nnimap.
shr.el (shr-tag-table-1): Only insert the images after the top-level table.
shr.el (shr-tag-span): Drop colorisation of regions since we don't control the background color.
shr.el (shr-tag-img): Ignore very small web bug type images.
shr.el (shr-put-image): Add help-echo alt texts to the images.
shr.el (shr-tag-video): Show the video poster image.
Glenn Morris [Sat, 30 Oct 2010 02:27:44 +0000 (19:27 -0700)]
Fix bug#7306; customization of minor-mode variables defined in C.
* lisp/cus-start.el: Add :set properties for minor modes menu-bar-mode,
tool-bar-mode, transient-mark-mode.
Include the :set property in the dumped Emacs.
Stefan Monnier [Fri, 29 Oct 2010 19:20:28 +0000 (15:20 -0400)]
SMIE: change indent rules format, improve smie-setup.
* lisp/emacs-lisp/smie.el (smie-precs-precedence-table)
(smie-merge-prec2s, smie-bnf-precedence-table, smie-prec2-levels):
Mark them pure so the tables gets built at compile time.
(smie-bnf-precedence-table): Store the closer-alist in the table.
(smie-prec2-levels): Preserve the closer-alist.
(smie-blink-matching-open): Be more forgiving in case of indentation.
(smie-hanging-p): Rename from smie-indent--hanging-p.
(smie-bolp): Rename from smie-indent--bolp.
(smie--parent, smie--after): New dynamic vars.
(smie-parent-p, smie-next-p, smie-prev-p): New funs.
(smie-indent-rules): Remove.
(smie-indent--offset-rule): Remove fun.
(smie-rules-function): New var.
(smie-indent--rule): New fun.
(smie-indent--offset, smie-indent-keyword, smie-indent-after-keyword)
(smie-indent-exps): Use it.
(smie-setup): Setup paren blinking; add keyword args for token
functions; extract closer-alist from op-levels.
(smie-indent-debug-log): Remove var.
(smie-indent-debug): Remove fun.
* lisp/progmodes/prolog.el (prolog-smie-indent-rules): Remove.
(prolog-smie-rules): New fun to replace it.
(prolog-mode-variables): Simplify.
* lisp/progmodes/octave-mod.el (octave-smie-closer-alist): Remove, now that
it's setup automatically.
(octave-smie-indent-rules): Remove.
(octave-smie-rules): New fun to replace it.
(octave-mode): Simplify.
Eli Zaretskii [Fri, 29 Oct 2010 10:49:27 +0000 (12:49 +0200)]
Fix doc/misc/makefile.w32.in like 2010-10-28T07:21:43Z!rgm@gnu.org did with Makefile.in.
makefile.w32-in (MAKEINFO): Add -I$(emacsdir).
(ENVADD): Remove extra -I$(emacsdir), included in $(MAKEINFO).
($(infodir)/efaq): Remove -I$(emacsdir), included in $(MAKEINFO).
($(infodir)/calc, calc.dvi): Depend on $(emacsdir)/emacsver.texi.
Eli Zaretskii [Fri, 29 Oct 2010 10:43:38 +0000 (12:43 +0200)]
Fix 2010-10-29T06:51:36Z!rgm@gnu.org for non-CLASH_DETECTION platforms.
emacs.c (main): Call syms_of_filelock unconditionally.
filelock.c (syms_of_filelock): Move out of #ifdef CLASH_DETECTION
clause, but keep part of it conditioned on CLASH_DETECTION.
Stefan Monnier [Fri, 29 Oct 2010 01:05:38 +0000 (21:05 -0400)]
* lisp/emacs-lisp/pcase.el (pcase): New `string' and `guard' patterns.
(pcase-if): Add one minor optimization.
(pcase-split-equal): Rename from pcase-split-eq.
(pcase-split-member): Rename from pcase-split-memq.
(pcase-u1): Add strings to the member optimization.
Add `guard' variant of predicates.
(pcase-q1): Add string patterns.
Glenn Morris [Thu, 28 Oct 2010 07:21:43 +0000 (00:21 -0700)]
doc/Makefile fixes related to inclusion of emacsver.texi.
* doc/lispref/Makefile.in (elisp.dvi, elisp.pdf): Also include $emacsdir.
* doc/misc/Makefile.in (MAKEINFO, ENVADD): Add $emacsdir to include path.
(($(infodir)/calc, calc.dvi, calc.pdf): Depend on emacsver.texi.
($(infodir)/efaq): Remove -I option now in $MAKEINFO.
Katsumi Yamaoka [Thu, 28 Oct 2010 06:37:35 +0000 (06:37 +0000)]
gnus-art.el: Improve MIME part functions.
gnus-art.el (gnus-article-jump-to-part): Error on no part; fix prompt.
(gnus-mime-copy-part): Check coding system, not charset.
(gnus-mime-view-part-externally): Never remove part.
(gnus-mime-view-part-internally): Don't remove part here.
(gnus-article-part-wrapper): Make sure MIME tag is visible.
(gnus-article-goto-part): Go to displayed or preferred subpart if it is multipart/alternative.
mm-decode.el (mm-display-part): Take optional arg `force'.
Stefan Monnier [Thu, 28 Oct 2010 02:22:29 +0000 (22:22 -0400)]
* lisp/minibuffer.el (completion-cycling): New var.
(minibuffer-complete, completion--do-completion):
Use completion--flush-all-sorted-completions.
(minibuffer-complete): Only cycle if completion-cycling is set.
(completion--flush-all-sorted-completions): Unset completion-cycling.
(minibuffer-force-complete): Set completion-cycling.
(completion-all-sorted-completions): Move declaration before first use.
Stefan Monnier [Wed, 27 Oct 2010 21:47:09 +0000 (17:47 -0400)]
* lisp/vc/log-edit.el (log-edit-rewrite-fixes): New var.
(log-edit-author): New dynamic var.
(log-edit-changelog-ours-p, log-edit-insert-changelog-entries): Use it
to return the author if different from committer.
(log-edit-insert-changelog): Use them to add Author: and Fixes headers.
Martin Rudalics [Wed, 27 Oct 2010 16:06:55 +0000 (18:06 +0200)]
Install and document new buffer display code.
* frame.el (pop-up-frame-alist, pop-up-frame-function)
(special-display-frame-alist): Make obsolete.
* window.el (display-buffer-window-and-buffer)
(window--display-buffer-in-window, window--reuse-window)
(window--pop-up-window, window--pop-up-frame)
(split-window-sensibly, window-sensibly-splittable-p)
(window--raise-window-frame, window--usable-frame): Remove.
(display-buffer-mark-dedicated, display-buffer-function)
(special-display-buffer-names)
(special-display-regexps, special-display-p)
(special-display-function, same-window-buffer-names)
(same-window-regexps, same-window-p, pop-up-frames)
(display-buffer-reuse-frames, pop-up-windows)
(split-height-threshold, split-width-threshold)
(even-window-heights): Make obsolete.
(display-buffer-names, display-buffer-regexps): New options.
(display-buffer-frame, display-buffer-normalize-specifiers-1)
(display-buffer-normalize-specifiers)
(display-buffer-adjust-heights, display-buffer-select-window)
(display-buffer-in-window, display-buffer-in-lru-buffer-window)
(display-buffer-in-lru-window, display-buffer-split-window-1)
(display-buffer-split-window, display-buffer-in-new-window)
(display-buffer-in-new-frame, normalize-buffer-to-display)
(display-buffer-same-window, display-buffer-other-window)
(pop-to-buffer-same-window, pop-to-buffer-other-window)
(pop-to-buffer-other-frame, normalize-buffer-to-switch-to): New
functions.
(display-buffer-locations, display-buffer-default-specifiers)
(display-buffer-other-window-specifiers)
(display-buffer-other-frame-specifiers)
(display-buffer-split-specifiers)
(display-buffer-side-specifiers): New variables/constants.
(display-buffer): Major rewrite.
(pop-to-buffer): Rewrite. Default buffer-or-name argument to
the current buffer.
(switch-to-buffer, switch-to-buffer-other-window)
(switch-to-buffer-other-frame): Rewrite.
* calendar/calendar.el (calendar-basic-setup): Do not call
split-window-horizontally before popping to buffer. Eventually
the second argument of pop-to-buffer must be set accordingly.
* dired.el (dired-pop-to-buffer): Adapt to new buffer display
code.
* info.el (Info-revert-find-node, info, info-other-window)
(Info-find-node, Info-next, Info-prev, Info-up)
(Info-goto-emacs-command-node, Info-speedbar-goto-node): Adapt
to new buffer display code.
Stefan Monnier [Wed, 27 Oct 2010 14:31:44 +0000 (10:31 -0400)]
* lisp/play/landmark.el: Adjust commenting convention.
(lm-nil-score): Rename from nil-score.
(Xscore, XXscore, XXXscore, XXXXscore, Oscore, OOscore, OOOscore)
(OOOOscore): Move into a let in lm-score-trans-table.
(lm-winning-threshold, lm-loosing-threshold): Use lm-score-trans-table.
Stefan Monnier [Wed, 27 Oct 2010 14:26:01 +0000 (10:26 -0400)]
* lisp/electric.el (electric-indent-chars): Autoload.
* lisp/progmodes/octave-mod.el (octave-mode):
* lisp/progmodes/ruby-mode.el (ruby-mode): Take advantage of it.
(ruby-mode-abbrev-table): Merge initialization and declaration.
Glenn Morris [Wed, 27 Oct 2010 06:48:04 +0000 (23:48 -0700)]
ns-win.el trivia.
* term/ns-win.el: (ns-handle-nxopen): Optionally handle the temp-case.
(ns-handle-nxopentemp): Just call ns-handle-nxopen.
(ns-insert-file, ns-find-file): Use `pop'.
Adrian Robert [Tue, 26 Oct 2010 13:20:00 +0000 (16:20 +0300)]
* term/ns-win.el (ns-new-frame, ns-show-prefs): Don't add to global map. * term/common-win.el (x-setup-function-keys): Remove most of the keymappings. Comment on the remaining ones.
* lisp/term/ns-win.el: No need to require cl when compiling.
(x-display-name, x-setup-function-keys, x-select-text, x-colors)
(xw-defined-colors): Use the common-win definitions.
(ns-alternatives-map): Make it an obsolete alias for x-alternatives-map.
(ns-handle-iconic): Make it an alias for x-handle-iconic.
* lisp/term/common-win.el (x-select-text, x-alternatives-map)
(x-setup-function-keys, x-colors, xw-defined-colors): Handle 'ns case.
* lisp/loadup.el [ns]: Load common-win.
Martin Rudalics [Mon, 25 Oct 2010 16:34:45 +0000 (18:34 +0200)]
(window-iso-combination-p, window-iso-combinations):
New functions.
(walk-windows, get-window-with-predicate)
(get-buffer-window-list, one-window-p): Fix doc-string.
(window-in-direction): The column / row value of `posn-at-point'
can be nil for the mini-window, guard against that.
(resize-mini-window): Make this usable. It's needed, for
example, by ispell.el.
(resize-window): Handle case where window argument denotes a
minibuffer window.
(window-children-count): Remove.
(split-window): Fix some broken size calculations.
Fixes to window.el accumluated over the past months.
* window.el (window-iso-combination-p, window-iso-combinations):
New functions.
(walk-windows, get-window-with-predicate)
(get-buffer-window-list, one-window-p): Fix doc-string.
(window-in-direction): The column / row value of `posn-at-point'
can be nil for the mini-window, guard against that.
(resize-mini-window): Make this usable. It's needed, for
example, by ispell.el.
(resize-window): Handle case where window argument denotes a
minibuffer window.
(window-children-count): Remove.
(split-window): Fix some broken size calculations.
Gnus developers [Sun, 24 Oct 2010 22:32:38 +0000 (22:32 +0000)]
Merge changes made in Gnus trunk.
message.el (message-default-headers): Fix type.
nnimap.el (nnimap-request-head, nnimap-request-move-article): Make internal nnimap moving slightly faster.
nnimap.el (nnimap-transform-headers): Don't bug out on bodiless articles.
nnimap.el (nnimap-send-command): Have no outstanding messages if the IMAP server doesn't support streaming.
nnimap.el (nnimap-transform-headers): Fold {quoted} strings more sloppily.
Gnus developers [Sun, 24 Oct 2010 09:55:56 +0000 (09:55 +0000)]
gnus-sum.el (gnus-summary-select-article): Make sure we have the original article buffer live.
gnus-sum.el (gnus-summary-select-article-buffer): Mention gnus-widen-article-buffer.
shr.el (shr-tag-object): Added.
nnir.el, gnus-group.el: Make nnir work by default.
gnus-agent.el (gnus-agent-fetch-group): Don't download stuff if the group isn't covered by the agent.
gnus-sum.el (gnus-group-make-articles-read): Propagate marks to the backend for unknown groups.
gnus-html.el (gnus-html-prefetch-images): Decode entities before prefetching images.
Glenn Morris [Sun, 24 Oct 2010 02:22:43 +0000 (19:22 -0700)]
Sync docs of selection-coding-system between C and Lisp.
* src/w16select.c (syms_of_win16select) <selection-coding-system>:
* src/w32select.c (syms_of_w32select) <selection-coding-system>:
Sync docs with select.el.
* lisp/select.el (selection-coding-system): Sync doc with C versions.
Glenn Morris [Sun, 24 Oct 2010 01:22:37 +0000 (18:22 -0700)]
Sync X and MS-Windows docs for x-use-underline-position-properties.
* src/w32term.c (syms_of_w32term) <x-use-underline-position-properties>:
Sync doc with the xterm.c version.
Glenn Morris [Sun, 24 Oct 2010 00:58:22 +0000 (17:58 -0700)]
Avoid redefining some C defcustoms.
* lisp/frame.el (show-trailing-whitespace, auto-hscroll-mode)
(display-hourglass, hourglass-delay, cursor-in-non-selected-windows):
Don't redefine things that are defined in C.
* lisp/cus-start.el: Also handle :risky, :safe, :set, and :tag.
(show-trailing-whitespace, auto-hscroll-mode)
(display-hourglass, hourglass-delay, cursor-in-non-selected-windows):
Set up the appropriate custom properties.