1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-07 15:21:46 +00:00
Commit Graph

102650 Commits

Author SHA1 Message Date
Paul Eggert
b49e353d9d Merge from trunk. 2011-09-03 16:03:38 -07:00
Lars Magne Ingebrigtsen
bc32008719 nnimap.el (nnimap-open-connection-1): Use the correct port number in the error message. 2011-09-03 22:51:26 +00:00
Lars Magne Ingebrigtsen
0f2f6b6d00 * Require libxml/parser.h to avoid compilation warning. 2011-09-04 00:20:00 +02:00
Lars Magne Ingebrigtsen
fcb901a77a 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.
2011-09-03 23:59:25 +02:00
Chong Yidong
2784c43403 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.
2011-09-03 16:24:12 -04:00
Christoph Scholtes
464cdf568e * 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.
2011-09-03 12:44:37 -06:00
Deniz Dogan
d37e5c8777 * 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. 2011-09-03 19:40:08 +02:00
Christoph Scholtes
f3ada0eeb5 * help.el (help-return-method): Doc fix. 2011-09-03 11:16:57 -06:00
Martin Rudalics
1f3c99ca9f 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.
2011-09-03 12:55:37 +02:00
Eli Zaretskii
46c3b5e12b Doc fixes in sendmail.el. 2011-09-03 13:14:32 +03:00
Eli Zaretskii
767d420a92 Add mail-add-attachment command to sendmail.el. 2011-09-03 13:08:14 +03:00
Eli Zaretskii
fd59d131bb Fix rmail-forward. 2011-09-03 13:00:13 +03:00
Eli Zaretskii
a3cf097fd0 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.
2011-09-03 11:44:16 +03:00
Paul Eggert
f4af5137d4 Add Bug#. 2011-09-02 22:32:13 -07:00
Paul Eggert
7365023b44 Merge from trunk. 2011-09-02 22:23:56 -07:00
Paul Eggert
728f8f0a00 * 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.
2011-09-02 22:23:17 -07:00
Leo Liu
3d03de90fb Remove unused variable find-file-not-true-dirname-list
See http://debbugs.gnu.org/9422.
2011-09-03 09:41:27 +08:00
Eli Zaretskii
9af32a1a25 lisp/gnus/message.el (message-setup-1): Return t (Bug#9392). 2011-09-02 20:57:45 +03:00
Chong Yidong
c33134511b 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.
2011-09-02 12:38:40 -04:00
Thierry Volpiatto
81ec0c88f2 Add missing piece of earlier commit.
* lisp/vc/vc-rcs.el (vc-rcs-responsible-p): Handle directories.

Fixes: debbugs:9391
2011-09-02 00:54:34 -07:00
Chong Yidong
2a7bdc1a6f Minor doc fix for last change. 2011-09-01 22:38:56 -04:00
Chong Yidong
89894cd8be 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.
2011-09-01 22:23:43 -04:00
Stefan Monnier
ae0bc9fbe5 * lisp/minibuffer.el (completion--insert-strings): Don't get confused by
completion entries that end with an LF char.
2011-09-01 20:36:58 -04:00
Eli Zaretskii
e9d90883a2 lisp/window.el (frame-auto-delete, window-deletable-p): Doc fix. 2011-09-01 20:51:42 +03:00
Chong Yidong
437014c8ad 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.
2011-09-01 13:04:30 -04:00
Paul Eggert
fd09688b0b Merge from trunk. 2011-09-01 07:51:44 -07:00
Paul Eggert
8666506ecd * src/doprnt.c (esnprintf): Remove. All uses removed.
Suggested by Chong Yidong in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9412#23>.
2011-09-01 07:44:49 -07:00
Andrew Cohen
6ed17f119f gnus-sum.el: When adding article headers to a summary buffer also update gnus-newsgroup-articles (bug#9386). 2011-09-01 13:25:09 +00:00
Glenn Morris
fc27895144 Auto-commit of loaddefs files. 2011-09-01 06:18:38 -04:00
Thierry Volpiatto
a5e063d5b6 * lisp/vc/vc-rcs.el (vc-rcs-responsible-p): Handle directories.
Fixes: debbugs:9391
2011-09-01 00:34:08 -07:00
Wilfred Hughes
793d32bb23 * lisp/vc/vc-git.el (vc-git-grep): Use --no-color. (tiny change)
Fixes: debbugs:9408
2011-09-01 00:29:56 -07:00
Glenn Morris
e350c3a032 bzr 2.4.0, including changelog_merge plugin, was released. 2011-09-01 00:24:27 -07:00
Paul Eggert
726cfaae86 Merge from trunk. 2011-08-31 17:47:31 -07:00
Paul Eggert
55e5faa189 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.
2011-08-31 15:18:16 -07:00
Richard M. Stallman
d65e4c159b Properly handle splitting of Rmail buffer and message view buffer. 2011-08-31 16:49:24 -04:00
Paul Eggert
e91caa6011 Merge from trunk. 2011-08-31 13:02:51 -07:00
Glenn Morris
9b6e5515b4 Auto-commit of generated files. 2011-08-31 06:18:35 -04:00
Martin Rudalics
f818cd2a39 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.
2011-08-31 11:27:49 +02:00
Michael Albinus
5bc3b51d1e * 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>.
2011-08-31 10:18:20 +02:00
Paul Eggert
61bfeeb79d 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.
2011-08-30 22:50:49 -07:00
Katsumi Yamaoka
b0de839f5d auth-source.el: Autoload help-mode. 2011-08-30 23:01:50 +00:00
Paul Eggert
0999621ac5 Add Bug#. 2011-08-30 15:49:45 -07:00
Chong Yidong
51751aa26f Merge changes from emacs-23 branch 2011-08-30 18:43:43 -04:00
Chong Yidong
6e20a0d47c Fix syntax scanning bug causing fontification crashes.
* src/syntax.c (find_defun_start): Update all cache variables if
exiting early.

Fixes: debbugs:9401
2011-08-30 18:38:07 -04:00
Lars Magne Ingebrigtsen
3eacc9cdef gnus-group.el (gnus-group-name-charset): Don't bug out on server names. 2011-08-30 22:07:52 +00:00
Paul Eggert
e936e76efd Fix misworded comment. 2011-08-30 15:02:56 -07:00
Paul Eggert
542f2c78ac Merge from trunk. 2011-08-30 14:16:49 -07:00
Paul Eggert
1f87634f0a * 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.
2011-08-30 13:46:59 -07:00
Paul Eggert
695a3dc536 * configure.in (opsys): Change pattern to *-*-linux*. 2011-08-30 13:41:54 -07:00
Eli Zaretskii
f6cfbd8f9d src/image.c (x_bitmap_pixmap): Cast to int to avoid compiler warnings. 2011-08-30 21:15:53 +03:00