]> code.delx.au - gnu-emacs/log
gnu-emacs
12 years agoFix bug #9392 with rmail-forward.
Eli Zaretskii [Fri, 9 Sep 2011 08:59:51 +0000 (11:59 +0300)]
Fix bug #9392 with rmail-forward.

 lisp/simple.el (mail-encode-mml): New defvar.
 lisp/mail/rmail.el (mail-encode-mml): Add a defvar.
 (rmail-enable-mime-composing): Default to t.
 (rmail-forward): Use MIME method of forwarding only if both
 rmail-enable-mime-composing and rmail-enable-mime are non-nil.
 Set mail-encode-mml non-nil if the MIME method was used.
 lisp/mail/sendmail.el (mml-to-mime): Add autoload form.
 (mail-encode-mml): Add a defvar.
 (mail-mode): Make mail-encode-mml buffer-local and initialize it
 to nil.
 (mail-send): If mail-encode-mml is non-nil, run the outgoing
 message through mml-to-mime, and reset mail-encode-mml to nil.

12 years agosrc/frame.c (x_report_frame_params): Cast to avoid compiler warnings.
Eli Zaretskii [Fri, 9 Sep 2011 08:32:43 +0000 (11:32 +0300)]
src/frame.c (x_report_frame_params): Cast to avoid compiler warnings.

12 years ago* lisp/woman.el (woman-special-characters): Add hy character.
Glenn Morris [Fri, 9 Sep 2011 06:34:59 +0000 (23:34 -0700)]
* lisp/woman.el (woman-special-characters): Add hy character.

12 years ago* lisp/woman.el (woman-special-characters): Add oq and cq quote characters.
Glenn Morris [Fri, 9 Sep 2011 06:32:08 +0000 (23:32 -0700)]
* lisp/woman.el (woman-special-characters): Add oq and cq quote characters.

12 years agowoman.el fix for bug#9447.
Glenn Morris [Fri, 9 Sep 2011 06:23:47 +0000 (23:23 -0700)]
woman.el fix for bug#9447.

* lisp/woman.el (woman-if-body): When processing an .el block,
do not delete the next .el block as well.

12 years agoWhitespace changes.
Juanma Barranquero [Fri, 9 Sep 2011 01:06:52 +0000 (03:06 +0200)]
Whitespace changes.

12 years agoDon't have previous and next buffers deal with internal windows.
Martin Rudalics [Thu, 8 Sep 2011 15:45:20 +0000 (17:45 +0200)]
Don't have previous and next buffers deal with internal windows.

* window.c (Fset_window_prev_buffers, Fset_window_next_buffers):
Operate on live windows only.

* window.el (window-deletable-p): Make sure window is live before
invoking window-prev-buffers.

12 years agoNew rcirc command rcirc-cmd-invite
Leo Liu [Thu, 8 Sep 2011 15:25:37 +0000 (23:25 +0800)]
New rcirc command rcirc-cmd-invite

See: http://debbugs.gnu.org/9453

12 years ago* lisp/progmodes/compile.el (compilation-environment): Make it a defcustom.
Juri Linkov [Thu, 8 Sep 2011 12:12:18 +0000 (15:12 +0300)]
* lisp/progmodes/compile.el (compilation-environment): Make it a defcustom.

Fixes: debbugs:8340
12 years ago(grep-regexp-alist): Move dangling comment to the previous rule.
Juri Linkov [Thu, 8 Sep 2011 12:07:52 +0000 (15:07 +0300)]
(grep-regexp-alist): Move dangling comment to the previous rule.

12 years agosrc/emacs.c (my_heap_start): #ifdef to avoid warnings when unused.
Juanma Barranquero [Thu, 8 Sep 2011 10:59:22 +0000 (12:59 +0200)]
src/emacs.c (my_heap_start): #ifdef to avoid warnings when unused.

12 years agoRewrite window/frame auto-deletion code. (Bug#9419) and (Bug#9456)
Martin Rudalics [Thu, 8 Sep 2011 06:28:37 +0000 (08:28 +0200)]
Rewrite window/frame auto-deletion code.  (Bug#9419) and (Bug#9456)

* window.el (frame-auto-delete): Rename to window-auto-delete.
Make it control auto-deletion of windows and/or frames.
(window-deletable-p): New argument FORCE.  Rewrite conditions
for deleting window/frame. (Bug#9419)
(switch-to-prev-buffer, replace-buffer-in-windows, quit-window):
Rewrite handling of case when window/frame can be deleted.
(delete-windows-on): Call window-deletable-p with new FORCE
argument t. (Bug#9456)

12 years agoFix move-if-change permissions.
Paul Eggert [Wed, 7 Sep 2011 18:26:41 +0000 (11:26 -0700)]
Fix move-if-change permissions.

These were inadvertenly changed to 644 in the previous revision;
the file should be executable, so change it back to 755.

12 years agoFix a crash in vertical-motion.
Eli Zaretskii [Wed, 7 Sep 2011 18:14:26 +0000 (21:14 +0300)]
Fix a crash in vertical-motion.

 src/xdisp.c (move_it_in_display_line_to): Call RESTORE_IT on ppos_it
 only under bidi iteration.

12 years ago(xg_make_tool_item): Insert comment about eventbox.
Jan Djärv [Wed, 7 Sep 2011 17:25:24 +0000 (19:25 +0200)]
(xg_make_tool_item): Insert comment about eventbox.

12 years ago* lisp/help-mode.el (help-mode): Restore autoload.
Chong Yidong [Wed, 7 Sep 2011 14:40:27 +0000 (10:40 -0400)]
* lisp/help-mode.el (help-mode): Restore autoload.

12 years ago* lisp/progmodes/compile.el (compilation-start): Let-bind `thisenv' to
Juri Linkov [Wed, 7 Sep 2011 12:17:54 +0000 (15:17 +0300)]
* lisp/progmodes/compile.el (compilation-start): Let-bind `thisenv' to
`compilation-environment'.  Set buffer-local
`compilation-environment' to `thisenv' later after (funcall mode).
(Bug#8340)

* lisp/vc/vc-git.el (vc-git-grep): Remove --no-color.  (Bug#9408)
(vc-git-grep): Prepend "PAGER=" to `compilation-environment'
instead of replacing its value.  (Bug#8340)

12 years ago* lisp/progmodes/grep.el (grep-regexp-alist): Calculate column positions
Juri Linkov [Wed, 7 Sep 2011 12:00:52 +0000 (15:00 +0300)]
* lisp/progmodes/grep.el (grep-regexp-alist): Calculate column positions
based on text properties put by `grep-filter' instead of matching
escape sequences.
(grep-mode): Set buffer-local `compilation-error-screen-columns'
to the value of `grep-error-screen-columns'.

Fixes: debbugs:9438
12 years ago* lisp/simple.el (next-error-highlight, next-error-highlight-no-select): Doc fix.
Juri Linkov [Wed, 7 Sep 2011 11:46:56 +0000 (14:46 +0300)]
* lisp/simple.el (next-error-highlight, next-error-highlight-no-select): Doc fix.

Fixes: debbugs:9432
12 years agoAuto-commit of generated files.
Glenn Morris [Wed, 7 Sep 2011 10:18:28 +0000 (06:18 -0400)]
Auto-commit of generated files.

12 years ago* lib-src/etags.c (Fortran_functions): Handle "elemental" functions.
Glenn Morris [Wed, 7 Sep 2011 07:28:05 +0000 (00:28 -0700)]
* lib-src/etags.c (Fortran_functions): Handle "elemental" functions.

12 years ago* lib-src/etags.c (Fortran_functions): Handle "pure" functions. (tiny change)
Dieter Schuster [Wed, 7 Sep 2011 07:25:55 +0000 (00:25 -0700)]
* lib-src/etags.c (Fortran_functions): Handle "pure" functions.  (tiny change)

Fixes: debbugs:9359
12 years ago* lisp/progmodes/cc-fonts.el: Remove trailing whitespace.
Glenn Morris [Wed, 7 Sep 2011 07:16:40 +0000 (00:16 -0700)]
* lisp/progmodes/cc-fonts.el: Remove trailing whitespace.

12 years agocc-fonts.el fix for bug#9443 (tiny change)
OKAZAKI Tetsurou [Wed, 7 Sep 2011 07:15:42 +0000 (00:15 -0700)]
cc-fonts.el fix for bug#9443 (tiny change)

* lisp/progmodes/cc-fonts.el (c-font-lock-enclosing-decls):
Check for null c-opt-block-decls-with-vars-key.

12 years agoConditionally initialize rcirc-input-ring
Leo Liu [Wed, 7 Sep 2011 03:37:22 +0000 (11:37 +0800)]
Conditionally initialize rcirc-input-ring

12 years ago* lisp/emacs-lisp/find-func.el (find-function-C-source): Only set
Stefan Monnier [Wed, 7 Sep 2011 01:06:09 +0000 (21:06 -0400)]
* lisp/emacs-lisp/find-func.el (find-function-C-source): Only set
find-function-C-source-directory after checking that we found a source
file there.

Fixes: debbugs:9440
12 years agoisnan: Fix porting problem to Solaris 10 with bundled gcc.
Paul Eggert [Tue, 6 Sep 2011 20:47:45 +0000 (13:47 -0700)]
isnan: Fix porting problem to Solaris 10 with bundled gcc.

Without this fix, the command to link temacs failed due to an
undefined symbol __builtin_isnan.  This is because
/usr/include/iso/math_c99.h #defines isnan(x) to
__builtin_isnan(x), but the bundled gcc, which identifies itself
as gcc 3.4.3 (csl-sol210-3_4-branch+sol_rpath), does not have
a __builtin_isnan.
* configure.in (isnan): Remove now-unnecessary check.
* src/floatfns.c (isnan): #undef, and then #define to a clone of
what's in data.c.
(Fisnan): Always define, since it's always available now.
(syms_of_floatfns): Always define isnan at the Lisp level.

12 years agoAuto-commit of generated files.
Paul Eggert [Tue, 6 Sep 2011 18:18:53 +0000 (11:18 -0700)]
Auto-commit of generated files.

12 years agoMerge from trunk.
Paul Eggert [Tue, 6 Sep 2011 16:34:41 +0000 (09:34 -0700)]
Merge from trunk.

12 years agoMerge from trunk.
Paul Eggert [Tue, 6 Sep 2011 15:27:16 +0000 (08:27 -0700)]
Merge from trunk.

12 years agoisearch.el (isearch-other-meta-char): Wherever a key list is unread,
Alan Mackenzie [Tue, 6 Sep 2011 01:01:46 +0000 (01:01 +0000)]
isearch.el (isearch-other-meta-char): Wherever a key list is unread,
"unread" the prefix arg, too.  This fixes bug #8901.

12 years agoMerge changes made in Gnus trunk.
Gnus developers [Mon, 5 Sep 2011 22:07:34 +0000 (22:07 +0000)]
Merge changes made in Gnus trunk.

gnus-sum.el (gnus-summary-exit): Ensure we kill the proper original-article-buffer.
nnir.el (nnir-compose-result): Fix matching of server type.
 (nnir-run-swish++): Ditto.
 (nnir-run-namazu): Ditto.
 (nnir-run-notmuch): Ditto.

12 years agoMerge from trunk.
Paul Eggert [Mon, 5 Sep 2011 20:43:14 +0000 (13:43 -0700)]
Merge from trunk.

12 years agoAuto-commit of generated files.
Glenn Morris [Mon, 5 Sep 2011 10:18:36 +0000 (06:18 -0400)]
Auto-commit of generated files.

12 years ago* lisp/progmodes/grep.el (rgrep): Add "-type d".
Oleksandr Gavenko [Mon, 5 Sep 2011 09:55:11 +0000 (12:55 +0300)]
* lisp/progmodes/grep.el (rgrep): Add "-type d".

Fixes: debbugs:9414
12 years ago* lisp/progmodes/grep.el (grep-process-setup): Fix comments.
Juri Linkov [Mon, 5 Sep 2011 09:48:26 +0000 (12:48 +0300)]
* lisp/progmodes/grep.el (grep-process-setup): Fix comments.

Fixes: debbugs:8084
12 years ago* dbusbind.c (xd_signature_cat): Rename from signature_cat.
Michael Albinus [Mon, 5 Sep 2011 09:34:18 +0000 (11:34 +0200)]
* dbusbind.c (xd_signature_cat): Rename from signature_cat.

12 years agoGrep related fixes.
Juri Linkov [Mon, 5 Sep 2011 08:20:02 +0000 (11:20 +0300)]
Grep related fixes.

* etc/grep.txt: Add `eval' to the Local Variables section that
emulates `grep-filter'.

* lisp/progmodes/grep.el (grep-filter): Avoid incomplete processing by
keeping point where processing of grep matches begins, and
continue to delete remaining escape sequences from the same point.
(grep-filter): Make leading zero optional in "0?1;31m" because
git-grep emits "\033[1;31m" escape sequences unlike expected
"\033[01;31m" as GNU Grep does.
(grep-process-setup): Replace obsolete "ml=" with newer "sl=".

Fixes: debbugs:9408
12 years ago* lisp/subr.el (y-or-n-p): Capitalize "yes".
Juri Linkov [Mon, 5 Sep 2011 08:05:01 +0000 (11:05 +0300)]
* lisp/subr.el (y-or-n-p): Capitalize "yes".

12 years agoMerge from trunk.
Paul Eggert [Sun, 4 Sep 2011 23:58:01 +0000 (16:58 -0700)]
Merge from trunk.

12 years agoMerge changes made in Gnus trunk.
Lars Magne Ingebrigtsen [Sun, 4 Sep 2011 22:17:09 +0000 (22:17 +0000)]
Merge changes made in Gnus trunk.

gnus.el (gnus-home-directory): Add warning about setting in .gnus.el (bug#9405).
gnus-score.el (gnus-summary-increase-score): Doc clarification (bug#9421).
gnus-spec.el (gnus-face-0): Make all the face specs into defcustoms (bug#9425).
gnus-art.el (gnus-treatment-function-alist): Remove CRs as the first thing (bug#9426).

12 years agosprintf-related integer and memory overflow issues
Paul Eggert [Sun, 4 Sep 2011 21:52:59 +0000 (14:52 -0700)]
sprintf-related integer and memory overflow issues

Fixes: debbugs:9397 debbugs:9412
12 years agoMerge from trunk.
Paul Eggert [Sun, 4 Sep 2011 19:18:28 +0000 (12:18 -0700)]
Merge from trunk.

12 years agoInteger overflow fixes for scrolling, etc.
Paul Eggert [Sun, 4 Sep 2011 19:14:54 +0000 (12:14 -0700)]
Integer overflow fixes for scrolling, etc.

12 years agoMerge from trunk.
Paul Eggert [Sun, 4 Sep 2011 19:06:14 +0000 (12:06 -0700)]
Merge from trunk.

12 years ago* xdisp.c: Integer overflow fix.
Paul Eggert [Sun, 4 Sep 2011 18:48:35 +0000 (11:48 -0700)]
* xdisp.c: Integer overflow fix.

(try_window_id): Check Emacs fixnum range before converting to 'int'.

12 years ago* window.c: Integer overflow fixes.
Paul Eggert [Sun, 4 Sep 2011 18:46:51 +0000 (11:46 -0700)]
* window.c: Integer overflow fixes.

(window_scroll_line_based, Frecenter):
Check that an Emacs fixnum is in range before assigning it to 'int'.
(Frecenter, Fmove_to_window_line): Use EMACS_INT, not int, for
values converted from Emacs fixnums.
(Frecenter): Don't wrap around a line count if it is out of 'int'
range; instead, treat it as an extreme value.
(Fset_window_configuration, compare_window_configurations):
Use ptrdiff_t, not int, for index that might exceed 2 GiB.

12 years ago* net/tramp.el (top): Require 'shell. Use `tramp-unload-hook' but
Michael Albinus [Sun, 4 Sep 2011 18:14:34 +0000 (20:14 +0200)]
* net/tramp.el (top): Require 'shell.  Use `tramp-unload-hook' but
`tramp-cache-unload-hook' where appropriate.
(tramp-methods): Rename `tramp-remote-sh' to
`tramp-remote-shell'.  Add `tramp-remote-shell-args'.
(tramp-handle-shell-command): New defun, moved from tramp-sh.el.

* net/tramp-sh.el (top): Don't require 'shell.
(tramp-methods): Add `tramp-remote-shell' and
`tramp-remote-shell-args' entries.
(tramp-sh-file-name-handler-alist): Use `tramp-handle-shell-command'.
(tramp-sh-handle-shell-command): Remove.
(tramp-find-shell, tramp-open-connection-setup-interactive-shell):
Use `tramp-remote-shell'.

12 years ago* search.c: Integer overflow fixes
Paul Eggert [Sun, 4 Sep 2011 17:27:38 +0000 (10:27 -0700)]
* search.c: Integer overflow fixes

(Freplace_match): Use ptrdiff_t, not int, for indexes that can
exceed INT_MAX.  Check that EMACS_INT value is in range before
assigning it to the (possibly-narrower) index.
(match_limit): Don't assume that a fixnum can fit in 'int'.

12 years ago* print.c: Integer overflow fix.
Paul Eggert [Sun, 4 Sep 2011 17:25:23 +0000 (10:25 -0700)]
* print.c: Integer overflow fix.

(print_object): Use ptrdiff_t, not int, for index that can
exceed INT_MAX.

12 years ago* indent.c: Integer overflow fixes.
Paul Eggert [Sun, 4 Sep 2011 17:24:12 +0000 (10:24 -0700)]
* indent.c: Integer overflow fixes.

(position_indentation): Now takes ptrdiff_t, not int.
(Fvertical_motion): Don't wrap around LINES values that don't fit
in 'int'.  Instead, treat them as extreme values.  This is good
enough for windows, which can't have more than INT_MAX lines anyway.

12 years agoFix bug #9433 with indexing of C-x 8 RET.
Eli Zaretskii [Sun, 4 Sep 2011 16:53:44 +0000 (19:53 +0300)]
Fix bug #9433 with indexing of C-x 8 RET.

 doc/emacs/basic.texi (Inserting Text): Add index entries.

12 years agoMerge from gnulib.
Paul Eggert [Sat, 3 Sep 2011 23:08:32 +0000 (16:08 -0700)]
Merge from gnulib.

12 years agoMerge from trunk.
Paul Eggert [Sat, 3 Sep 2011 23:03:38 +0000 (16:03 -0700)]
Merge from trunk.

12 years agonnimap.el (nnimap-open-connection-1): Use the correct port number in the error message.
Lars Magne Ingebrigtsen [Sat, 3 Sep 2011 22:51:26 +0000 (22:51 +0000)]
nnimap.el (nnimap-open-connection-1): Use the correct port number in the error message.

12 years ago* Require libxml/parser.h to avoid compilation warning.
Lars Magne Ingebrigtsen [Sat, 3 Sep 2011 22:20:00 +0000 (00:20 +0200)]
* Require libxml/parser.h to avoid compilation warning.

12 years agoFix up xmlCleanupParser sequence.
Lars Magne Ingebrigtsen [Sat, 3 Sep 2011 21:59:25 +0000 (23:59 +0200)]
Fix up xmlCleanupParser sequence.

* xml.c (parse_region): Don't call xmlCleanupParser after parsing,
since this reportedly can destroy thread storage.

* emacs.c (shut_down_emacs): Call xmlCleanupParser on shutdown.

12 years agoMake sendmail-query-once update send-mail-function directly.
Chong Yidong [Sat, 3 Sep 2011 20:24:12 +0000 (16:24 -0400)]
Make sendmail-query-once update send-mail-function directly.

* mail/sendmail.el (sendmail-query-once-function): Deleted.
(sendmail-query-once): Save directly to send-mail-function.
Update message-send-mail-function too.

* mail/smtpmail.el (smtpmail-try-auth-methods): Clarify prompt.

12 years ago* progmodes/python.el (python-mode-map): Use correct function to
Christoph Scholtes [Sat, 3 Sep 2011 18:44:37 +0000 (12:44 -0600)]
* progmodes/python.el (python-mode-map): Use correct function to
start python interpreter from menu-bar (as reported by Geert
Kloosterman).
(inferior-python-mode-map): Fix typo.
(python-shell-map): Removed.

12 years ago* lisp/net/rcirc.el (rcirc-print): Simplify code for rcirc-scroll-show-maximum-output...
Deniz Dogan [Sat, 3 Sep 2011 17:40:08 +0000 (19:40 +0200)]
* lisp/net/rcirc.el (rcirc-print): Simplify code for rcirc-scroll-show-maximum-output.  There is no need to walk through all windows to find the right one.

12 years ago* help.el (help-return-method): Doc fix.
Christoph Scholtes [Sat, 3 Sep 2011 17:16:57 +0000 (11:16 -0600)]
* help.el (help-return-method): Doc fix.

12 years agoDon't delete frame when there's a previous buffer to show (Bug#9419).
Martin Rudalics [Sat, 3 Sep 2011 10:55:37 +0000 (12:55 +0200)]
Don't delete frame when there's a previous buffer to show (Bug#9419).

* window.el (window-deletable-p): Don't return a non-nil value
when there's a buffer that was shown in the window before.
(Bug#9419)
(display-buffer-pop-up-frame, display-buffer-pop-up-window): Set
window's previous buffers to nil.

12 years agoFix rmail-forward.
Eli Zaretskii [Sat, 3 Sep 2011 10:00:13 +0000 (13:00 +0300)]
Fix rmail-forward.

12 years agoFix display by Rmail of bidirectional text in MIME email messages.
Eli Zaretskii [Sat, 3 Sep 2011 08:44:16 +0000 (11:44 +0300)]
Fix display by Rmail of bidirectional text in MIME email messages.

 lisp/mail/rmailmm.el (rmail-mime-insert-tagline): Insert an extra
 newline before and after the tag line, so it doesn't interfere
 with determining the paragraph direction of bidirectional text.

12 years agoAdd Bug#.
Paul Eggert [Sat, 3 Sep 2011 05:32:13 +0000 (22:32 -0700)]
Add Bug#.

12 years agoMerge from trunk.
Paul Eggert [Sat, 3 Sep 2011 05:23:56 +0000 (22:23 -0700)]
Merge from trunk.

12 years ago* fileio.c: Fix bugs with large file offsets.
Paul Eggert [Sat, 3 Sep 2011 05:23:17 +0000 (22:23 -0700)]
* fileio.c: Fix bugs with large file offsets.

The previous code assumed that file offsets (off_t values) fit in
EMACS_INT variables, which is not true on typical 32-bit hosts.
The code messed up by falsely reporting buffer overflow in cases
such as (insert-file-contents "big" nil 1 2) into an empty buffer
when "big" contains more than 2**29 bytes, even though this
inserts just one byte and does not overflow the buffer.
(Finsert_file_contents): Store file offsets as off_t
values, not as EMACS_INT values.  Check for overflow when
converting between EMACS_INT and off_t.  When checking for
buffer overflow or for overlap, take the offsets into account.
Don't use EMACS_INT for small values where int suffices.
When checking for overlap, fix a typo: ZV was used where
ZV_BYTE was intended.
(Fwrite_region): Don't assume off_t fits into 'long'.
* buffer.h (struct buffer.modtime_size): Now off_t, not EMACS_INT.

12 years agoRemove unused variable find-file-not-true-dirname-list
Leo Liu [Sat, 3 Sep 2011 01:41:27 +0000 (09:41 +0800)]
Remove unused variable find-file-not-true-dirname-list

See http://debbugs.gnu.org/9422.

12 years agolisp/gnus/message.el (message-setup-1): Return t (Bug#9392).
Eli Zaretskii [Fri, 2 Sep 2011 17:57:45 +0000 (20:57 +0300)]
lisp/gnus/message.el (message-setup-1): Return t (Bug#9392).

12 years agoRemove pop-to-buffer-same-window.
Chong Yidong [Fri, 2 Sep 2011 16:38:40 +0000 (12:38 -0400)]
Remove pop-to-buffer-same-window.

* lisp/window.el (pop-to-buffer-1, pop-to-buffer-same-window): Deleted.
(pop-to-buffer): Change interactive spec.  Pass second argument
directly to display-buffer.
(display-buffer): Fix interactive spec.  Use functionp to
distinguish between a function and a list of functions.

* lisp/abbrev.el (edit-abbrevs):
* lisp/arc-mode.el (archive-extract):
* lisp/autoinsert.el (auto-insert):
* lisp/bookmark.el (bookmark-bmenu-list):
* lisp/files.el (find-file):
* lisp/view.el (view-buffer):
* lisp/progmodes/compile.el (compilation-goto-locus):
* lisp/textmodes/bibtex.el (bibtex-initialize): Use switch-to-buffer.

* lisp/org/ob-ref.el (org-babel-ref-goto-headline-id):
* lisp/org/org.el (org-get-location, org-tree-to-indirect-buffer)
(org-mark-ring-goto, org-refile, org-add-log-note)
(org-revert-all-org-buffers, org-switchb)
(org-cycle-agenda-files, org-submit-bug-report)
(org-goto-marker-or-bmk):
* lisp/org/org-agenda.el (org-prepare-agenda, org-agenda-switch-to):
* lisp/org/org-capture.el (org-capture-goto-target)
(org-capture-fill-template):
* lisp/org/org-clock.el (org-clock-goto):
* lisp/org/org-ctags.el (org-ctags-visit-buffer-or-file):
* lisp/org/org-exp.el (org-export-as-org):
* lisp/org/org-feed.el (org-feed-show-raw-feed):
* lisp/org/org-html.el (org-export-htmlize-generate-css):
* lisp/org/org-id.el (org-id-goto):
* lisp/org/org-irc.el (org-irc-visit-erc):
* lisp/org/org-mobile.el (org-mobile-apply):
* lisp/org/org-publish.el (org-publish-org-to, org-publish-find-date):
* lisp/org/org-remember.el (org-go-to-remember-target):
* lisp/org/org-src.el (org-src-switch-to-buffer)
(org-edit-fixed-width-region): Use switch-to-buffer.

* lisp/org/org-compat.el (org-pop-to-buffer-same-window): Deleted.

12 years agoAdd missing piece of earlier commit.
Thierry Volpiatto [Fri, 2 Sep 2011 07:54:34 +0000 (00:54 -0700)]
Add missing piece of earlier commit.

* lisp/vc/vc-rcs.el (vc-rcs-responsible-p): Handle directories.

Fixes: debbugs:9391
12 years agoMinor doc fix for last change.
Chong Yidong [Fri, 2 Sep 2011 02:38:56 +0000 (22:38 -0400)]
Minor doc fix for last change.

12 years agoSplit default-buffer-default into separate display action components.
Chong Yidong [Fri, 2 Sep 2011 02:23:43 +0000 (22:23 -0400)]
Split default-buffer-default into separate display action components.

* lisp/window.el (display-buffer-alist): Doc fix.
(display-buffer): Add docstring.  Don't treat display-buffer-default specially.
(display-buffer-reuse-selected-window)
(display-buffer-same-window, display-buffer-maybe-same-window)
(display-buffer-reuse-window, display-buffer-pop-up-frame)
(display-buffer-pop-up-window)
(display-buffer-reuse-or-pop-window)
(display-buffer-use-some-window): New functions.
(display-buffer-default-action): Use them.
(display-buffer-default): Deleted.
(pop-to-buffer-1): Fix choice of actions.

12 years ago* lisp/minibuffer.el (completion--insert-strings): Don't get confused by
Stefan Monnier [Fri, 2 Sep 2011 00:36:58 +0000 (20:36 -0400)]
* lisp/minibuffer.el (completion--insert-strings): Don't get confused by
completion entries that end with an LF char.

12 years agolisp/window.el (frame-auto-delete, window-deletable-p): Doc fix.
Eli Zaretskii [Thu, 1 Sep 2011 17:51:42 +0000 (20:51 +0300)]
lisp/window.el (frame-auto-delete, window-deletable-p): Doc fix.

12 years agoFix display-buffer interactive spec, and fixes for pop-to-buffer*.
Chong Yidong [Thu, 1 Sep 2011 17:04:30 +0000 (13:04 -0400)]
Fix display-buffer interactive spec, and fixes for pop-to-buffer*.

* lisp/window.el (display-buffer): Restore interactive spec.
(display-buffer-same-window, display-buffer-other-window): New
functions.
(pop-to-buffer-1): New function.  Use the above.
(pop-to-buffer, pop-to-buffer-same-window): Use it.
(pop-to-buffer-other-window, pop-to-buffer-other-frame): Deleted.

* lisp/view.el (view-buffer-other-window, view-buffer-other-frame):
Just use pop-to-buffer.

12 years agoMerge from trunk.
Paul Eggert [Thu, 1 Sep 2011 14:51:44 +0000 (07:51 -0700)]
Merge from trunk.

12 years ago* src/doprnt.c (esnprintf): Remove. All uses removed.
Paul Eggert [Thu, 1 Sep 2011 14:44:49 +0000 (07:44 -0700)]
* src/doprnt.c (esnprintf): Remove.  All uses removed.

Suggested by Chong Yidong in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9412#23>.

12 years agognus-sum.el: When adding article headers to a summary buffer also update gnus-newsgro...
Andrew Cohen [Thu, 1 Sep 2011 13:25:09 +0000 (13:25 +0000)]
gnus-sum.el: When adding article headers to a summary buffer also update gnus-newsgroup-articles (bug#9386).

12 years agoAuto-commit of loaddefs files.
Glenn Morris [Thu, 1 Sep 2011 10:18:38 +0000 (06:18 -0400)]
Auto-commit of loaddefs files.

12 years ago* lisp/vc/vc-rcs.el (vc-rcs-responsible-p): Handle directories.
Thierry Volpiatto [Thu, 1 Sep 2011 07:34:08 +0000 (00:34 -0700)]
* lisp/vc/vc-rcs.el (vc-rcs-responsible-p): Handle directories.

Fixes: debbugs:9391
12 years ago* lisp/vc/vc-git.el (vc-git-grep): Use --no-color. (tiny change)
Wilfred Hughes [Thu, 1 Sep 2011 07:29:56 +0000 (00:29 -0700)]
* lisp/vc/vc-git.el (vc-git-grep): Use --no-color.  (tiny change)

Fixes: debbugs:9408
12 years agobzr 2.4.0, including changelog_merge plugin, was released.
Glenn Morris [Thu, 1 Sep 2011 07:24:27 +0000 (00:24 -0700)]
bzr 2.4.0, including changelog_merge plugin, was released.

12 years agoMerge from trunk.
Paul Eggert [Thu, 1 Sep 2011 00:47:31 +0000 (17:47 -0700)]
Merge from trunk.

12 years agoAdd a stub for snprintf, for ancient hosts lacking it.
Paul Eggert [Wed, 31 Aug 2011 22:18:16 +0000 (15:18 -0700)]
Add a stub for snprintf, for ancient hosts lacking it.

* configure.in (snprintf): New check.
* nt/config.nt (HAVE_SNPRINTF): New macro.
* src/sysdep.c (snprintf) [! HAVE_SNPRINTF]: New function.

12 years agoProperly handle splitting of Rmail buffer and message view buffer.
Richard M. Stallman [Wed, 31 Aug 2011 20:49:24 +0000 (16:49 -0400)]
Properly handle splitting of Rmail buffer and message view buffer.

12 years agoMerge from trunk.
Paul Eggert [Wed, 31 Aug 2011 20:02:51 +0000 (13:02 -0700)]
Merge from trunk.

12 years agoAuto-commit of generated files.
Glenn Morris [Wed, 31 Aug 2011 10:18:35 +0000 (06:18 -0400)]
Auto-commit of generated files.

12 years agoRestore Emacs 23 display-buffer functions and options.
Martin Rudalics [Wed, 31 Aug 2011 09:27:49 +0000 (11:27 +0200)]
Restore Emacs 23 display-buffer functions and options.

* window.el (display-buffer-window): Rewrite doc-string.
(display-buffer-record-window): New function.
(display-buffer-macro-specifiers)
(display-buffer-even-window-sizes, display-buffer-set-height)
(display-buffer-set-width, display-buffer-in-window)
(display-buffer-reuse-window, display-buffer-split-specifiers)
(display-buffer-side-specifiers, display-buffer-split-window-1)
(display-buffer-split-window, display-buffer-split-atom-window)
(display-buffer-pop-up-window, display-buffer-pop-up-frame)
(display-buffer-pop-up-side-window, display-buffer-in-side-window)
(display-buffer-other-window-means-other-frame)
(display-buffer-normalize-special)
(display-buffer-normalize-default)
(display-buffer-normalize-argument)
(display-buffer-normalize-alist-1, display-buffer-normalize-alist)
(display-buffer-normalize-specifiers, display-buffer-frame)
(display-buffer-same-window, display-buffer-same-frame)
(display-buffer-other-window)
(display-buffer-same-frame-other-window)
(display-buffer-other-frame, 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)
(switch-to-buffer-same-frame)
(switch-to-buffer-other-window-same-frame)
(display-buffer-alist-of-strings-p, display-buffer-alist-add)
(display-buffer-alist-set-1, display-buffer-alist-set-2)
(display-buffer-alist-set): Remove.
(display-buffer-function, special-display-buffer-names)
(special-display-regexps, special-display-function): In
doc-string refer to display-buffer-window and quit-restore
parameter.
(pop-up-frame-alist, pop-up-frame-function, special-display-p)
(special-display-frame-alist, special-display-popup-frame)
(same-window-buffer-names, same-window-regexps, same-window-p)
(pop-up-frames, display-buffer-reuse-frames, pop-up-windows)
(split-window-preferred-function, split-height-threshold)
(split-width-threshold, window-splittable-p)
(split-window-sensibly, window--try-to-split-window)
(window--frame-usable-p, even-window-heights)
(window--even-window-heights, window--display-buffer-1)
(window--display-buffer-2, display-buffer-other-frame): Restore
old Emacs 23 code, order and doc-strings where applicable.
(display-buffer-default, display-buffer-assq-regexp): New functions.
(display-buffer-alist): Rewrite doc-string.
(display-buffer-default-action)
(display-buffer-overriding-action): New variables.
(display-buffer, switch-to-buffer): Rewrite.
(pop-to-buffer): Restore Emacs 23 behavior but use
window-normalize-buffer-to-display.
(switch-to-buffer-other-window, switch-to-buffer-other-frame):
Restore Emacs 23 behavior but use
window-normalize-buffer-to-switch-to.
(pop-to-buffer-same-window): Rewrite.
(pop-to-buffer-other-window, pop-to-buffer-other-frame): Rewrite
using Emacs 23 options.

* org-compat.el (org-pop-to-buffer-same-window): Remove LABEL
argument from pop-to-buffer-same-window call.

12 years ago* net/tramp.el (tramp-root-regexp): Remove.
Michael Albinus [Wed, 31 Aug 2011 08:18:20 +0000 (10:18 +0200)]
* net/tramp.el (tramp-root-regexp): Remove.
(tramp-completion-file-name-regexp-unified)
(tramp-completion-file-name-regexp-separate)
(tramp-completion-file-name-regexp-url): Don't use leading volume
letter on win32 systems.  (Bug#5303, Bug#9311)
(tramp-drop-volume-letter): Simplify definition.  Suggested by
Stefan Monnier <monnier@iro.umontreal.ca>.

12 years agoAvoid the use of snprintf.
Paul Eggert [Wed, 31 Aug 2011 05:50:49 +0000 (22:50 -0700)]
Avoid the use of snprintf.

* font.c (APPEND_SNPRINTF): Remove.
(font_unparse_xlfd):
* xterm.c (x_io_error_quitter):
Use esnprintf, not snprintf.  That way, we don't have to worry
about porting to ancient platforms that lack snprintf.
(x_term_init): Use sprintf, not snprintf.

12 years agoauth-source.el: Autoload help-mode.
Katsumi Yamaoka [Tue, 30 Aug 2011 23:01:50 +0000 (23:01 +0000)]
auth-source.el: Autoload help-mode.

12 years agoAdd Bug#.
Paul Eggert [Tue, 30 Aug 2011 22:49:45 +0000 (15:49 -0700)]
Add Bug#.

12 years agoMerge changes from emacs-23 branch
Chong Yidong [Tue, 30 Aug 2011 22:43:43 +0000 (18:43 -0400)]
Merge changes from emacs-23 branch

12 years agoFix syntax scanning bug causing fontification crashes.
Chong Yidong [Tue, 30 Aug 2011 22:38:07 +0000 (18:38 -0400)]
Fix syntax scanning bug causing fontification crashes.

* src/syntax.c (find_defun_start): Update all cache variables if
exiting early.

Fixes: debbugs:9401
12 years agognus-group.el (gnus-group-name-charset): Don't bug out on server names.
Lars Magne Ingebrigtsen [Tue, 30 Aug 2011 22:07:52 +0000 (22:07 +0000)]
gnus-group.el (gnus-group-name-charset): Don't bug out on server names.

12 years agoFix misworded comment.
Paul Eggert [Tue, 30 Aug 2011 22:02:56 +0000 (15:02 -0700)]
Fix misworded comment.

12 years agoMerge from trunk.
Paul Eggert [Tue, 30 Aug 2011 21:16:49 +0000 (14:16 -0700)]
Merge from trunk.

12 years ago* configure.in: Remove no-longer used HP patterns.
Paul Eggert [Tue, 30 Aug 2011 20:46:59 +0000 (13:46 -0700)]
* configure.in: Remove no-longer used HP patterns.

(opsys): Remove unreachable pattern hppa*-*-linux-gnu*.
Also, remove ia64*-hp-hpux1[1-9]*, as it also sets machine=hp800,
and that can't possibly work now that src/m/hp800.h no longer exists.

12 years ago* configure.in (opsys): Change pattern to *-*-linux*.
Paul Eggert [Tue, 30 Aug 2011 20:41:54 +0000 (13:41 -0700)]
* configure.in (opsys): Change pattern to *-*-linux*.