]> git.eshelyaron.com Git - emacs.git/log
emacs.git
13 years agoMerge from trunk old-branches/window-pub
Martin Rudalics [Mon, 6 Jun 2011 06:57:59 +0000 (08:57 +0200)]
Merge from trunk

13 years agoWhitespace change
Martin Rudalics [Mon, 6 Jun 2011 06:54:43 +0000 (08:54 +0200)]
Whitespace change

13 years ago* alloc.c (memory_full) [SYSTEM_MALLOC]: Port to MacO).
Paul Eggert [Mon, 6 Jun 2011 04:54:23 +0000 (21:54 -0700)]
* alloc.c (memory_full) [SYSTEM_MALLOC]: Port to MacO).

Fixes: debbugs:8800
13 years ago* lisp/comint.el (comint-dynamic-complete-as-filename)
Andreas Schwab [Sun, 5 Jun 2011 23:20:16 +0000 (01:20 +0200)]
* lisp/comint.el (comint-dynamic-complete-as-filename)
(comint-dynamic-complete-filename): Correctly call
completion-in-region.

13 years agoFixes: debbugs:8806
Andreas Schwab [Sun, 5 Jun 2011 22:46:26 +0000 (00:46 +0200)]
Fixes: debbugs:8806
* src/editfns.c (Fformat): Correctly handle zero flag with hexadecimal
format.

13 years ago* src/gtkutil.c (xg_get_default_scrollbar_width): Avoid warning.
Andreas Schwab [Sun, 5 Jun 2011 22:20:42 +0000 (00:20 +0200)]
* src/gtkutil.c (xg_get_default_scrollbar_width): Avoid warning.

13 years ago* src/xfns.c (x_set_scroll_bar_default_width): Move declarations
Andreas Schwab [Sun, 5 Jun 2011 22:20:42 +0000 (00:20 +0200)]
* src/xfns.c (x_set_scroll_bar_default_width): Move declarations
before statements.

13 years ago* lisp/net/rcirc.el (rcirc-prompt-for-encryption): Fix bug introduced in last change.
Deniz Dogan [Sun, 5 Jun 2011 19:39:17 +0000 (21:39 +0200)]
* lisp/net/rcirc.el (rcirc-prompt-for-encryption): Fix bug introduced in last change.

13 years agoHandle scroll bar width larger than 16 for GTK3.
Jan Djärv [Sun, 5 Jun 2011 19:04:51 +0000 (21:04 +0200)]
Handle scroll bar width larger than 16 for GTK3.

* gtkutil.c (xg_get_default_scrollbar_width): New function.

* gtkutil.h: Declare xg_get_default_scrollbar_width.

* xfns.c (x_set_scroll_bar_default_width): If USE_GTK, get
min width by calling x_set_scroll_bar_default_width.

Fixes: debbugs:8505
13 years ago* lisp/net/rcirc.el (rcirc-prompt-for-encryption): New function.
Deniz Dogan [Sun, 5 Jun 2011 19:03:28 +0000 (21:03 +0200)]
* lisp/net/rcirc.el (rcirc-prompt-for-encryption): New function.
(rcirc): Use it to prompt for encryption.

13 years agoMerge from trunk
Martin Rudalics [Sun, 5 Jun 2011 14:17:51 +0000 (16:17 +0200)]
Merge from trunk

13 years agoMake `display-buffer' emulate obsolete Emacs 23 options.
Martin Rudalics [Sun, 5 Jun 2011 13:02:36 +0000 (15:02 +0200)]
Make `display-buffer' emulate obsolete Emacs 23 options.

* window.el (window-sides-alist): Remove.
(display-buffer): Remove defgroup and all its members.
(display-buffer-normalize-specifiers-1): Mention argument in
doc-string.
(display-buffer-normalize-specifiers-2): New function.
(display-buffer-normalize-specifiers): Call
display-buffer-normalize-specifiers-2.
(display-buffer-alist-set): Take care of unset initial values.
Add entry for display-buffer-mark-dedicated.  Reorder.
(same-window-buffer-names, same-window-regexps)
(special-display-frame-alist, special-display-function)
(special-display-buffer-names, special-display-regexps)
(pop-up-frame-alist, pop-up-frame-function)
(split-window-preferred-function, split-height-threshold)
(split-width-threshold, even-window-heights): Restore Emacs 23
values, doc-strings and customization groups.
(pop-up-frames, pop-up-windows, display-buffer-reuse-frames)
(display-buffer-mark-dedicated): Restore Emacs 23 doc-strings and
customization groups.  Initialize value to 'unset.
(display-buffer-reuse-window): Quote lambda with #'.

13 years agolisp/textmodes/bibtex.el: new command bibtex-search-entries
Roland Winkler [Sun, 5 Jun 2011 05:46:43 +0000 (00:46 -0500)]
lisp/textmodes/bibtex.el: new command bibtex-search-entries

13 years agolisp/textmodes/bibtex.el: various small bug fixes
Roland Winkler [Sun, 5 Jun 2011 04:58:39 +0000 (23:58 -0500)]
lisp/textmodes/bibtex.el: various small bug fixes

13 years agolisp/textmodes/bibtex.el (bibtex-search-entry-globally): New variable
Roland Winkler [Sun, 5 Jun 2011 04:47:45 +0000 (23:47 -0500)]
lisp/textmodes/bibtex.el (bibtex-search-entry-globally): New variable

13 years agolisp/textmodes/bibtex.el (bibtex-entry-format): new option sort-fields
Roland Winkler [Sun, 5 Jun 2011 04:39:40 +0000 (23:39 -0500)]
lisp/textmodes/bibtex.el (bibtex-entry-format): new option sort-fields

13 years agolisp/doc-view.el: Silence compiler warning.
Juanma Barranquero [Sun, 5 Jun 2011 00:18:46 +0000 (02:18 +0200)]
lisp/doc-view.el: Silence compiler warning.

13 years agosrc/xdisp.c (single_display_spec_intangible_p): Remove declaration.
Juanma Barranquero [Sun, 5 Jun 2011 00:14:08 +0000 (02:14 +0200)]
src/xdisp.c (single_display_spec_intangible_p): Remove declaration.

13 years agoDoc fixes for timer.el (Bug#8793).
Chong Yidong [Sat, 4 Jun 2011 22:46:26 +0000 (18:46 -0400)]
Doc fixes for timer.el (Bug#8793).

* emacs-lisp/timer.el (timer-activate): Remove unused arg.
(timer-activate, timer-activate-when-idle): Doc fix.

13 years ago* src/xselect.c (x_get_foreign_selection): Reduce scope of x_catch_errors (Bug#8790).
Chong Yidong [Sat, 4 Jun 2011 22:08:32 +0000 (18:08 -0400)]
* src/xselect.c (x_get_foreign_selection): Reduce scope of x_catch_errors (Bug#8790).

13 years agoHandle errors when saving to clipboard manager (Bug#8779).
Chong Yidong [Sat, 4 Jun 2011 21:02:42 +0000 (17:02 -0400)]
Handle errors when saving to clipboard manager (Bug#8779).

* src/xselect.c (x_clipboard_manager_save): Remove redundant arg.
(x_clipboard_manager_save): Add return value.
(x_clipboard_manager_error_1, x_clipboard_manager_error_2): New
error handlers.
(x_clipboard_manager_save_frame, x_clipboard_manager_save_all):
Obey Vx_select_enable_clipboard_manager.  Catch errors in
x_clipboard_manager_save (Bug#8779).
(Vx_select_enable_clipboard_manager): New variable.

13 years agoMerge from emacs-23; up to 2010-06-12T17:12:15Z!cyd@stupidchicken.com.
Glenn Morris [Sat, 4 Jun 2011 18:29:18 +0000 (11:29 -0700)]
Merge from emacs-23; up to 2010-06-12T17:12:15Z!cyd@stupidchicken.com.

13 years ago* lib/getopt.c: Merge trivial change from gnulib.
Paul Eggert [Sat, 4 Jun 2011 16:51:28 +0000 (09:51 -0700)]
* lib/getopt.c: Merge trivial change from gnulib.

13 years agoFix mistake in last iswitchb.el bug fix.
Deniz Dogan [Sat, 4 Jun 2011 15:13:11 +0000 (17:13 +0200)]
Fix mistake in last iswitchb.el bug fix.

13 years ago* net/tramp-sh.el (tramp-find-shell): Apply workaround also for
Michael Albinus [Sat, 4 Jun 2011 14:11:26 +0000 (16:11 +0200)]
* net/tramp-sh.el (tramp-find-shell): Apply workaround also for
"SunOS 5.10".

13 years ago* net/tramp.el (tramp-set-completion-function, tramp-parse-rhosts)
Michael Albinus [Sat, 4 Jun 2011 13:58:37 +0000 (15:58 +0200)]
* net/tramp.el (tramp-set-completion-function, tramp-parse-rhosts)
(tramp-parse-shosts, tramp-parse-sconfig, tramp-parse-shostkeys)
(tramp-parse-hosts, tramp-parse-passwd, tramp-parse-netrc)
(tramp-parse-putty):
* net/tramp-sh.el (tramp-completion-function-alist-rsh)
(tramp-completion-function-alist-ssh)
(tramp-completion-function-alist-telnet)
(tramp-completion-function-alist-su)
(tramp-completion-function-alist-putty): Set `tramp-autoload'
cookie.

* net/tramp-ftp.el:
* net/tramp-sh.el:
* net/tramp-smb.el: Set `tramp-autoload' cookie, and eval after
load "tramp.el" `tramp-set-completion-function'.

13 years ago* lisp/shell.el: Require and use pcomplete.
Stefan Monnier [Sat, 4 Jun 2011 12:31:34 +0000 (09:31 -0300)]
* lisp/shell.el: Require and use pcomplete.
(shell-dynamic-complete-functions): Add pcomplete-completions-at-point.
(shell-completion-vars): Set pcomplete-default-completion-function.

13 years ago* lisp/iswitchb.el (iswitchb-window-buffer-p): Use `member' instead of `memq'.
Deniz Dogan [Sat, 4 Jun 2011 11:02:37 +0000 (13:02 +0200)]
* lisp/iswitchb.el (iswitchb-window-buffer-p): Use `member' instead of `memq'.

Fixes: debbugs:8799
13 years agosrc/bidi.c (bidi_level_of_next_char): Fix last change.
Eli Zaretskii [Sat, 4 Jun 2011 08:04:48 +0000 (11:04 +0300)]
src/bidi.c (bidi_level_of_next_char): Fix last change.

13 years ago* lisp/url/url-future.el (url-future-test): Fix scope of `saver'.
Andreas Schwab [Sat, 4 Jun 2011 07:53:22 +0000 (09:53 +0200)]
* lisp/url/url-future.el (url-future-test): Fix scope of `saver'.

13 years agoSupport bidi reordering of text covered by display properties.
Eli Zaretskii [Sat, 4 Jun 2011 07:41:44 +0000 (10:41 +0300)]
Support bidi reordering of text covered by display properties.

 src/bidi.c (bidi_copy_it): Use offsetof instead of emulating it.
 (bidi_fetch_char, bidi_fetch_char_advance): New functions.
 (bidi_cache_search, bidi_cache_iterator_state)
 (bidi_paragraph_init, bidi_resolve_explicit, bidi_resolve_weak)
 (bidi_level_of_next_char, bidi_move_to_visually_next): Support
 character positions inside a run of characters covered by a
 display string.
 (bidi_paragraph_init, bidi_resolve_explicit_1)
 (bidi_level_of_next_char): Call bidi_fetch_char and
 bidi_fetch_char_advance instead of FETCH_CHAR and
 FETCH_CHAR_ADVANCE.
 (bidi_init_it): Initialize new members.
 (LRE_CHAR, RLE_CHAR, PDF_CHAR, LRO_CHAR, RLO_CHAR): Remove macro
 definitions.
 (bidi_explicit_dir_char): Lookup character type in bidi_type_table,
 instead of using explicit *_CHAR codes.
 (bidi_resolve_explicit, bidi_resolve_weak): Use
 FETCH_MULTIBYTE_CHAR instead of FETCH_CHAR, as reordering of
 bidirectional text is supported only in multibyte buffers.
 (bidi_init_it): Accept additional argument FRAME_WINDOW_P and use
 it to initialize the frame_window_p member of struct bidi_it.
 (bidi_cache_iterator_state, bidi_resolve_explicit_1)
 (bidi_resolve_explicit, bidi_resolve_weak)
 (bidi_level_of_next_char, bidi_move_to_visually_next): Abort if
 bidi_it->nchars is non-positive.
 (bidi_level_of_next_char): Don't try to lookup the cache for the
 next/previous character if nothing is cached there yet, or if we
 were just reseat()'ed to a new position.
 src/xdisp.c (set_cursor_from_row): Set start and stop points
 according to the row's direction when priming the loop that looks
 for the glyph on which to display cursor.
 (single_display_spec_intangible_p): Function deleted.
 (display_prop_intangible_p): Reimplement to call
 handle_display_spec instead of single_display_spec_intangible_p.
 Accept 3 additional arguments needed by handle_display_spec.  This
 fixes incorrect cursor motion across display property with complex
 values: lists, `(when COND...)' forms, etc.
 (single_display_spec_string_p): Support property values that are
 lists with the argument STRING its top-level element.
 (display_prop_string_p): Fix the condition for processing a
 property that is a list to be consistent with handle_display_spec.
 (handle_display_spec): New function, refactored from the
 last portion of handle_display_prop.
 (compute_display_string_pos): Accept additional argument
 FRAME_WINDOW_P.  Call handle_display_spec to determine whether the
 value of a `display' property is a "replacing spec".
 (handle_single_display_spec): Accept 2 additional arguments BUFPOS
 and FRAME_WINDOW_P.  If IT is NULL, don't set up the iterator from
 the display property, but just return a value indicating whether
 the display property will replace the characters it covers.
 (Fcurrent_bidi_paragraph_direction): Initialize the nchars and
 frame_window_p members of struct bidi_it.
 (compute_display_string_pos, compute_display_string_end): New
 functions.
 (push_it): Accept second argument POSITION, where pop_it should
 jump to continue iteration.
 (reseat_1): Initialize bidi_it.disp_pos.
 src/keyboard.c (adjust_point_for_property): Adjust the call to
 display_prop_intangible_p to its new signature.
 src/dispextern.h (struct bidi_it): New member frame_window_p.
 (bidi_init_it): Update prototypes.
 (display_prop_intangible_p): Update prototype.
 (compute_display_string_pos, compute_display_string_end): Declare
 prototypes.
 (struct bidi_it): New members nchars and disp_pos.  ch_len is now
 EMACS_INT.

13 years agoCleanup. Tested in -nw and verified that bug #7616 didn't become worse.
Eli Zaretskii [Fri, 3 Jun 2011 13:34:52 +0000 (16:34 +0300)]
Cleanup.  Tested in -nw and verified that bug #7616 didn't become worse.

 src/bidi.c (bidi_fetch_char_advance): Remove unused and
 unimplemented function.

13 years ago* lisp/subr.el (make-progress-reporter): Add "..." by default.
Stefan Monnier [Thu, 2 Jun 2011 18:04:44 +0000 (15:04 -0300)]
* lisp/subr.el (make-progress-reporter): Add "..." by default.

Fixes: debbugs:8785
13 years agoMerge: memory_full, gnutls improvements
Paul Eggert [Thu, 2 Jun 2011 17:16:09 +0000 (10:16 -0700)]
Merge: memory_full, gnutls improvements

13 years ago* src/emacs.c (main): Warn when starting a GTK emacs in daemon mode.
Dan Nicolaescu [Thu, 2 Jun 2011 16:56:04 +0000 (09:56 -0700)]
* src/emacs.c (main): Warn when starting a GTK emacs in daemon mode.

13 years agoSilence warning for unused `dotimes' counter variables.
Juanma Barranquero [Thu, 2 Jun 2011 11:24:12 +0000 (13:24 +0200)]
Silence warning for unused `dotimes' counter variables.

* mpc.el (mpc-select-extend, mpc-songpointer-context):
* vc/log-view.el (log-view-beginning-of-defun):
* vc/smerge-mode.el (smerge-apply-resolution-patch)
  (smerge-refine-forward, smerge-refine-chopup-region):

13 years agoAuto-commit of loaddefs files.
Glenn Morris [Thu, 2 Jun 2011 10:21:27 +0000 (06:21 -0400)]
Auto-commit of loaddefs files.

13 years agoMerge ChangeLog from trunk better.
Paul Eggert [Thu, 2 Jun 2011 08:40:41 +0000 (01:40 -0700)]
Merge ChangeLog from trunk better.

13 years ago* alloc.c (allocate_vectorlike): Adjust to memory_full API change.
Paul Eggert [Thu, 2 Jun 2011 08:35:28 +0000 (01:35 -0700)]
* alloc.c (allocate_vectorlike): Adjust to memory_full API change.

13 years agoMerge from trunk.
Paul Eggert [Thu, 2 Jun 2011 08:25:28 +0000 (01:25 -0700)]
Merge from trunk.

13 years ago* lib/allocator.h, lib/careadlinkat.c: Merge from gnulib.
Paul Eggert [Thu, 2 Jun 2011 08:22:57 +0000 (01:22 -0700)]
* lib/allocator.h, lib/careadlinkat.c: Merge from gnulib.

13 years agoMerge: Remove arbitrary limit of 2**31 entries in hash tables.
Paul Eggert [Thu, 2 Jun 2011 08:02:59 +0000 (01:02 -0700)]
Merge: Remove arbitrary limit of 2**31 entries in hash tables.

Fixes: debbugs:8771
13 years agoMerge from trunk.
Paul Eggert [Thu, 2 Jun 2011 07:42:55 +0000 (00:42 -0700)]
Merge from trunk.

13 years ago* lisp/net/tramp.el (tramp-with-progress-reporter): Rename from
Stefan Monnier [Thu, 2 Jun 2011 03:48:23 +0000 (00:48 -0300)]
* lisp/net/tramp.el (tramp-with-progress-reporter): Rename from
with-progress-reporter.  Use `declare'.
* lisp/net/tramp-smb.el:
* lisp/net/tramp-sh.el:
* lisp/net/tramp-gvfs.el: Update all uses.

13 years ago* calc/calc.el (calc-kill-stack-buffer): Make sure that the trail
Jay Belanger [Thu, 2 Jun 2011 00:09:42 +0000 (19:09 -0500)]
* calc/calc.el (calc-kill-stack-buffer): Make sure that the trail
  buffer isn't killed before making it current.

13 years agognus-registry.el (gnus-registry-remove-ignored): New function to remove entries with...
Teodor Zlatanov [Wed, 1 Jun 2011 22:35:26 +0000 (22:35 +0000)]
gnus-registry.el (gnus-registry-remove-ignored): New function to remove entries with groups we ignore.

13 years agoMake it possible to build with GCC-4.6+ -O2 -flto.
Dan Nicolaescu [Wed, 1 Jun 2011 21:54:35 +0000 (14:54 -0700)]
Make it possible to build with GCC-4.6+ -O2 -flto.

* src/emacs.c (__malloc_initialize_hook): Mark as EXTERNALLY_VISIBLE.

13 years agoSilence various byte-compiler warnings.
Stefan Monnier [Wed, 1 Jun 2011 19:32:04 +0000 (16:32 -0300)]
Silence various byte-compiler warnings.
* lisp/emacs-lisp/byte-run.el (make-obsolete-variable): New argument
`access-type' and new obsolescence format.
* lisp/emacs-lisp/bytecomp.el (byte-compile-warn-obsolete): Adjust to
new format.
(byte-compile-check-variable): New `access-type' argument.
Only warn if the access-type is obsolete.
(byte-compile-dynamic-variable-bind, byte-compile-variable-ref)
(byte-compile-variable-set): Adjust callers.
* lisp/help-fns.el (describe-variable): Adjust to new obsolescence format.
* lisp/mail/sendmail.el (mail-mailer-swallows-blank-line): Only mark
setting it as obsolete.
* lisp/simple.el (minibuffer-completing-symbol):
* lisp/font-lock.el (font-lock-beginning-of-syntax-function): Only mark read
access as obsolete.
* lisp/minibuffer.el (minibuffer-completing-file-name): Don't make it
obsolete yet.
* lisp/international/quail.el (quail-mouse-choose-completion): Remove unused
code referring to obsolete var.
(quail-choose-completion-string): Remove.
* lisp/server.el (server-clients-with, server-kill-buffer-query-function)
(server-kill-emacs-query-function): Silence "unused `proc'" warnings.
* lisp/proced.el (proced-send-signal):
* lisp/emacs-lisp/lisp.el (lisp-complete-symbol):
Replace completion-annotate-function with completion-extra-properties.

13 years agoAdd :version tags for url-queue.el.
Glenn Morris [Wed, 1 Jun 2011 17:34:24 +0000 (10:34 -0700)]
Add :version tags for url-queue.el.

* lisp/url/url-queue.el (url-queue-parallel-processes, url-queue-timeout):
Add :version tag for options that will be new in 24.1.

13 years ago* lib-src/emacsclient.c (socket_status): Use constant pointer.
Dan Nicolaescu [Wed, 1 Jun 2011 17:15:27 +0000 (10:15 -0700)]
* lib-src/emacsclient.c (socket_status): Use constant pointer.

13 years ago* lisp/simple.el (goto-line): Use read-number.
Stefan Monnier [Wed, 1 Jun 2011 15:52:35 +0000 (12:52 -0300)]
* lisp/simple.el (goto-line): Use read-number.
(overriding-map-is-bound): Remove.
(saved-overriding-map): Change default.
(save&set-overriding-map): Rename from ensure-overriding-map-is-bound;
Take the map as argument.
(universal-argument, negative-argument, digit-argument): Use it.
(restore-overriding-map): Adjust.
(do-auto-fill): Use fill-forward-paragraph.
(keyboard-quit): Don't signal an error when debug-on-quit is non-nil.

13 years ago* lisp/minibuffer.el (minibuffer-inactive-mode-map): New var.
Stefan Monnier [Wed, 1 Jun 2011 15:34:41 +0000 (12:34 -0300)]
* lisp/minibuffer.el (minibuffer-inactive-mode-map): New var.
(minibuffer-inactive-mode): New major mode.
* src/minibuf.c (get_minibuffer, read_minibuf_unwind): Call it.
* lisp/mouse.el (mouse-drag-region): Remove the "mouse-1 pops up
the *Messages* buffer" hack.
(mouse-popup-menubar): Don't burp if the event is a normal key.

13 years ago* lisp/thingatpt.el (forward-whitespace): Typo.
Stefan Monnier [Wed, 1 Jun 2011 14:28:54 +0000 (11:28 -0300)]
* lisp/thingatpt.el (forward-whitespace): Typo.

13 years agoMiscellaneous tweaks.
Stefan Monnier [Wed, 1 Jun 2011 14:19:45 +0000 (11:19 -0300)]
Miscellaneous tweaks.
* lisp/emacs-lisp/cl-macs.el (dolist, dotimes): Use the same strategy for
lexical scoping as in subr.el's dolist and dotimes.
* lisp/emacs-lisp/bytecomp.el (byte-compile-unfold-bcf):
Silence compiler warning.
* lisp/thingatpt.el (forward-whitespace): Trivial coding style fix.
* lisp/subr.el (with-output-to-temp-buffer): Provide an edebug spec.
* lisp/international/ccl.el (ccl-compile): Trivial simplification.
* lisp/help-fns.el (help-do-arg-highlight): Silence compiler warning.
* lisp/emacs-lisp/testcover.el (testcover-end): Remove spurious
`printflag' argument.
* lisp/emacs-lisp/byte-run.el (make-obsolete, make-obsolete-variable):
Purecopy the whole obsolescence data.

13 years agoAuto-commit of loaddefs files.
Glenn Morris [Wed, 1 Jun 2011 10:19:26 +0000 (06:19 -0400)]
Auto-commit of loaddefs files.

13 years agoFix last change on rcirc-print and rcirc-decode-coding-system
Leo Liu [Wed, 1 Jun 2011 08:10:42 +0000 (16:10 +0800)]
Fix last change on rcirc-print and rcirc-decode-coding-system

13 years agoMerge from trunk
Martin Rudalics [Wed, 1 Jun 2011 06:57:38 +0000 (08:57 +0200)]
Merge from trunk

13 years agoUse derived-mode-p in previous change.
Glenn Morris [Wed, 1 Jun 2011 03:50:20 +0000 (20:50 -0700)]
Use derived-mode-p in previous change.

13 years ago* lisp/mail/emacsbug.el (report-emacs-bug-hook): Mailclient ignores From.
Glenn Morris [Wed, 1 Jun 2011 03:35:49 +0000 (20:35 -0700)]
* lisp/mail/emacsbug.el (report-emacs-bug-hook): Mailclient ignores From.

13 years ago* fringe.c (update_window_fringes): Don't update overlay arrow bitmap in the current...
YAMAMOTO Mitsuharu [Wed, 1 Jun 2011 01:36:38 +0000 (10:36 +0900)]
* fringe.c (update_window_fringes): Don't update overlay arrow bitmap in the current matrix if keep_current_p is non-zero.

13 years agoUpdate.
Katsumi Yamaoka [Wed, 1 Jun 2011 00:22:55 +0000 (00:22 +0000)]
Update.

13 years agoMerge changes made in Gnus trunk.
Gnus developers [Tue, 31 May 2011 22:08:51 +0000 (22:08 +0000)]
Merge changes made in Gnus trunk.

gnus.texi (Store custom flags and keywords): Refer to `gnus-registry-article-marks-to-{chars,names}' instead of `gnus-registry-user-format-function-{M,M2}'.
shr.el (shr-rescale-image): Add an :ascent of 100 to images so that the underline comes at the bottom.
gnus-registry.el (gnus-registry-article-marks-to-chars): Rename from `gnus-registry-user-format-function-M' and declare the latter obsolete.
 (gnus-registry-article-marks-to-names): Rename from `gnus-registry-user-format-function-M2'.
shr.el (shr-browse-image): Copy the URL if called interactively.

13 years ago* lisp/minibuffer.el (complete-with-action): Return nil for the metadata and
Stefan Monnier [Tue, 31 May 2011 21:40:30 +0000 (18:40 -0300)]
* lisp/minibuffer.el (complete-with-action): Return nil for the metadata and
boundaries of non-functional tables.
(completion-table-dynamic): Return nil for the metadata.
(completion-table-with-terminator): Add default case, using
complete-with-action.
(completion--metadata): New function.
(completion-all-sorted-completions, minibuffer-completion-help): Use it
to try and avoid pathological performance problems.
(completion--embedded-envvar-table): Return `category' metadata.

13 years ago(url-queue-parallel-processes): Increase the default to 6, since 2 seems too conserva...
Lars Magne Ingebrigtsen [Tue, 31 May 2011 20:58:01 +0000 (22:58 +0200)]
(url-queue-parallel-processes): Increase the default to 6, since 2 seems too conservative for normal usage.

13 years agoAdd the tiny convenience function `process-alive-p'.
Lars Magne Ingebrigtsen [Tue, 31 May 2011 18:40:00 +0000 (20:40 +0200)]
Add the tiny convenience function `process-alive-p'.

13 years agosrc/xdisp.c (single_display_spec_string): Correct a FIXME comment.
Eli Zaretskii [Tue, 31 May 2011 18:08:41 +0000 (21:08 +0300)]
src/xdisp.c (single_display_spec_string): Correct a FIXME comment.

13 years agosrc/makefile.w32-in: Update dependencies.
Juanma Barranquero [Tue, 31 May 2011 17:03:24 +0000 (19:03 +0200)]
src/makefile.w32-in: Update dependencies.

13 years agolib/getopt_.h: Regenerate.
Juanma Barranquero [Tue, 31 May 2011 16:09:59 +0000 (18:09 +0200)]
lib/getopt_.h: Regenerate.

13 years ago* lisp/emacs-lisp/debug.el (debug): Save&restore not just the buffer's
Stefan Monnier [Tue, 31 May 2011 15:41:14 +0000 (12:41 -0300)]
* lisp/emacs-lisp/debug.el (debug): Save&restore not just the buffer's
content but also its previous major mode.

13 years ago* debug.el (debug): Restore the previous content of the
Helmut Eller [Tue, 31 May 2011 15:24:33 +0000 (12:24 -0300)]
* debug.el (debug): Restore the previous content of the
*Backtrace* buffer when we exit with C-M-c.

13 years ago* src/data.c (init_data): Remove code for UTS, this system is not
Dan Nicolaescu [Tue, 31 May 2011 14:57:53 +0000 (07:57 -0700)]
* src/data.c (init_data): Remove code for UTS, this system is not
supported anymore.

13 years agoDon't force ./temacs to start in terminal mode.
Dan Nicolaescu [Tue, 31 May 2011 14:52:10 +0000 (07:52 -0700)]
Don't force ./temacs to start in terminal mode.

* frame.c (make_initial_frame): Initialize faces in all cases, not
only when CANNOT_DUMP is defined.
* dispnew.c (init_display): Remove CANNOT_DUMP condition.

13 years agoUse const for a string pointer.
Dan Nicolaescu [Tue, 31 May 2011 14:44:16 +0000 (07:44 -0700)]
Use const for a string pointer.

* src/dispnew.c (add_window_display_history): Use const for the string
pointer.  Remove declaration, not needed.

13 years agoAdjust ChangeLog as per Stefan's suggestions.
Paul Eggert [Tue, 31 May 2011 14:34:33 +0000 (07:34 -0700)]
Adjust ChangeLog as per Stefan's suggestions.

13 years agoAdd entry to NEWS
Martin Rudalics [Tue, 31 May 2011 12:32:19 +0000 (14:32 +0200)]
Add entry to NEWS

13 years agoMerge from trunk
Martin Rudalics [Tue, 31 May 2011 12:25:16 +0000 (14:25 +0200)]
Merge from trunk

13 years ago* url-future.el: Add general futures facility.
Ted Zlatanov [Tue, 31 May 2011 10:47:22 +0000 (05:47 -0500)]
* url-future.el: Add general futures facility.

13 years agognus-sum.el (gnus-summary-exit): Make sure to kill article buffer in ephemeral group.
Katsumi Yamaoka [Tue, 31 May 2011 10:37:35 +0000 (10:37 +0000)]
gnus-sum.el (gnus-summary-exit): Make sure to kill article buffer in ephemeral group.

13 years agoAuto-commit of generated files.
Glenn Morris [Tue, 31 May 2011 10:19:08 +0000 (06:19 -0400)]
Auto-commit of generated files.

13 years agoMinor fixes in window resizing routines and documentation update.
Martin Rudalics [Tue, 31 May 2011 08:51:21 +0000 (10:51 +0200)]
Minor fixes in window resizing routines and documentation update.

* window.c (Fsplit_window_internal): Make all arguments
mandatory.  Rewrite doc-string.  Simplify code.

* window.el (ignore-window-parameters, window-size-fixed):
Rewrite doc-strings.
(window-min-delta-1, window-min-delta): Reorder.  Minor rewrite.
(resize-subwindows-normal): Use zerop when checking other-delta.
Call window-min-delta with NODOWN argument nil.
(adjust-window-trailing-edge): Fix doc-string.
(other-window): Fix doc-string and respect
ignore-window-parameters.
(delete-window, delete-other-windows): Fix doc-strings.  Remove
-function postfix from associated window parameters.
(quit-restore-window): Resize only if buffer was in
temp-buffer-resize-mode.
(window-split-min-size): Rewrite doc-string.
(split-window): Rewrite doc-string.  Rename horflag to
horizontal.  Major rewrite of size calculations.  Remove
-function postfix from associated window parameter.
(window-state-put-1, display-buffer-split-window-1): Rename
horflag to horizontal.
(same-window-p): Remove call to non-existent function.

* windows.texi (Windows and Frames, Window Sizes)
(Resizing Windows): Minor rewrites.
(Splitting Windows): Provide additional examples.  Rewrite
parts on window-splits and window-nest.
(Deleting Windows, Window Parameters, Side Windows): Minor
rewrites.

13 years agoAdd Bug#.
Paul Eggert [Tue, 31 May 2011 06:10:46 +0000 (23:10 -0700)]
Add Bug#.

13 years agoRemove arbitrary limit of 2**31 entries in hash tables.
Paul Eggert [Tue, 31 May 2011 06:05:00 +0000 (23:05 -0700)]
Remove arbitrary limit of 2**31 entries in hash tables.

* category.c (hash_get_category_set): Use 'EMACS_UINT' and 'EMACS_INT'
for hashes and hash indexes, instead of 'unsigned' and 'int'.
* ccl.c (ccl_driver): Likewise.
* charset.c (Fdefine_charset_internal): Likewise.
* charset.h (struct charset.hash_index): Likewise.
* composite.c (get_composition_id, gstring_lookup_cache):
(composition_gstring_put_cache): Likewise.
* composite.h (struct composition.hash_index): Likewise.
* dispextern.h (struct image.hash): Likewise.
* fns.c (next_almost_prime, larger_vector, cmpfn_eql):
(cmpfn_equal, cmpfn_user_defined, hashfn_eq, hashfn_eql):
(hashfn_equal, hashfn_user_defined, make_hash_table):
(maybe_resize_hash_table, hash_lookup, hash_put):
(hash_remove_from_table, hash_clear, sweep_weak_table, SXHASH_COMBINE):
(sxhash_string, sxhash_list, sxhash_vector, sxhash_bool_vector):
(Fsxhash, Fgethash, Fputhash, Fmaphash): Likewise.
* image.c (make_image, search_image_cache, lookup_image):
(xpm_put_color_table_h): Likewise.
* lisp.h (struct Lisp_Hash_Table): Likewise, for 'count', 'cmpfn',
and 'hashfn' members.
* minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
Likewise.
* print.c (print): Likewise.
* alloc.c (allocate_vectorlike): Check for overflow in vector size
calculations.
* ccl.c (ccl_driver): Check for overflow when converting EMACS_INT
to int.
* fns.c, image.c: Remove unnecessary static decls that would otherwise
need to be updated by these changes.
* fns.c (make_hash_table, maybe_resize_hash_table): Check for integer
overflow with large hash tables.
(make_hash_table, maybe_resize_hash_table, Fmake_hash_table):
Prefer the faster XFLOAT_DATA to XFLOATINT where either will do.
(SXHASH_REDUCE): New macro.
(sxhash_string, sxhash_list, sxhash_vector, sxhash_bool_vector):
Use it instead of discarding useful hash info with large hash values.
(sxhash_float): New function.
(sxhash): Use it.  No more need for "& INTMASK" due to above changes.
* lisp.h (FIXNUM_BITS): New macro, useful for SXHASH_REDUCE etc.
(MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK): Rewrite
to use FIXNUM_BITS, as this simplifies things.
(next_almost_prime, larger_vector, sxhash, hash_lookup, hash_put):
Adjust signatures to match updated version of code.
(consing_since_gc): Now EMACS_INT, since a single hash table can
use more than INT_MAX bytes.

13 years agoFix ChangeLog entry order.
Paul Eggert [Tue, 31 May 2011 05:47:57 +0000 (22:47 -0700)]
Fix ChangeLog entry order.

13 years agoMerge from trunk.
Paul Eggert [Tue, 31 May 2011 05:45:07 +0000 (22:45 -0700)]
Merge from trunk.

13 years agoAdd bug#.
Paul Eggert [Tue, 31 May 2011 05:43:11 +0000 (22:43 -0700)]
Add bug#.

13 years ago* ccl.c: Improve comment. (Bug#8751)
Paul Eggert [Tue, 31 May 2011 05:38:59 +0000 (22:38 -0700)]
* ccl.c: Improve comment.  (Bug#8751)

13 years agoUse 'inline', not 'INLINE'.
Paul Eggert [Tue, 31 May 2011 05:34:40 +0000 (22:34 -0700)]
Use 'inline', not 'INLINE'.

[ChangeLog]
* configure.in (INLINE): Remove.
[lib-src/ChangeLog]
* etags.c (hash): Now inline unconditionally.
* make-docfile.c (put_char): inline, not INLINE.
[nt/ChangeLog]
* config.nt (INLINE): Remove.
[src/ChangeLog]
<http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00914.html>
* alloc.c, fontset.c (INLINE): Remove.
* alloc.c, bidi.c, charset.c, coding.c, dispnew.c, fns.c, image.c:
* intervals.c, keyboard.c, process.c, syntax.c, textprop.c, w32term.c:
* xdisp.c, xfaces.c, xterm.c: Replace all uses of INLINE with inline.
* gmalloc.c (register_heapinfo): Use inline unconditionally.
* lisp.h (LISP_MAKE_RVALUE): Use inline, not __inline__.

13 years agoMerge from trunk.
Paul Eggert [Tue, 31 May 2011 05:24:53 +0000 (22:24 -0700)]
Merge from trunk.

13 years agoMerge from trunk.
Paul Eggert [Tue, 31 May 2011 05:15:34 +0000 (22:15 -0700)]
Merge from trunk.

13 years agoMake it possible to run ./temacs.
Dan Nicolaescu [Tue, 31 May 2011 05:12:19 +0000 (22:12 -0700)]
Make it possible to run ./temacs.

* callproc.c (set_initial_environment): Remove CANNOT_DUMP code,
syms_of_callproc does the same thing.  Remove test for
"initialized", do it in the caller.
* emacs.c (main): Avoid calling set_initial_environment when dumping.

13 years ago* lisp/minibuffer.el: Add metadata method to completion tables.
Stefan Monnier [Tue, 31 May 2011 03:03:38 +0000 (00:03 -0300)]
* lisp/minibuffer.el: Add metadata method to completion tables.
(completion-category-overrides): New defcustom.
(completion-metadata, completion--field-metadata)
(completion-metadata-get, completion--styles)
(completion--cycle-threshold): New functions.
(completion-try-completion, completion-all-completions):
Add `metadata' argument to choose completion-styles.
(completion--do-completion): Use metadata to choose cycling.
(completion-all-sorted-completions): Use metadata for sorting.
Remove :completion-cycle-penalty which is not needed any more.
(completion--try-word-completion): Add `metadata' argument.
(minibuffer-completion-help): Check metadata for annotation function
and sorting.
(completion-file-name-table): Return `category' metadata.
(minibuffer-completing-file-name): Make obsolete.
* lisp/simple.el (minibuffer-completing-symbol): Make obsolete.
* lisp/icomplete.el (icomplete-completions): Pass new `metadata' param to
completion-try-completion.
* src/minibuf.c (Finternal_complete_buffer): Return `category' metadata.
(read_minibuf): Use get_minibuffer.
(syms_of_minibuf): Use DEFSYM.
(Qmetadata): New var.
* src/data.c (Qbuffer): Don't make it static.
(syms_of_data): Use DEFSYM.

13 years ago* ccl.c (CCL_CODE_RANGE): Allow negative numbers. (Bug#8751)
Paul Eggert [Tue, 31 May 2011 02:12:01 +0000 (19:12 -0700)]
* ccl.c (CCL_CODE_RANGE): Allow negative numbers.  (Bug#8751)

(CCL_CODE_MIN): New macro.

13 years agoMerge changes made in Gnus trunk.
Lars Magne Ingebrigtsen [Mon, 30 May 2011 22:11:52 +0000 (22:11 +0000)]
Merge changes made in Gnus trunk.

gnus-group.el (gnus-group-mark-article-read): It's possible that we want to have `gnus-newsgroup-unselected' kept sorted.  If this isn't done, then unselected articles may be marked as read.
pop3.el (pop3-open-server): Erase the buffer after the greeting, since not doing this seems to lead to a race condition in pop3-logon.
nnvirtual.el (nnvirtual-request-article): Bind `gnus-command-method' so that the call chain it correct when we call "upwards".
gnus-sum.el (gnus-select-newsgroup): Auto-expiry doesn't make sense in read-only groups.
gnus-group.el (gnus-group-mark-article-read): Ditto.
message.el (message-cite-reply-position): Doc string fix.
nnimap.el (nnimap-transform-headers): Simplify regexp to hopefully avoid regexp overflow.
 (nnimap-transform-split-mail): Ditto.
pop3.el (pop3-retr): Error out if the server closes the connection.

13 years ago* lisp/mail/smtpmail.el (smtpmail-send-data): Add progress reporter.
Stefan Monnier [Mon, 30 May 2011 17:23:47 +0000 (14:23 -0300)]
* lisp/mail/smtpmail.el (smtpmail-send-data): Add progress reporter.

13 years ago* lisp/gnus/mml1991.el (mml1991-mailcrypt-encrypt): Remove use of ill-designed
Stefan Monnier [Mon, 30 May 2011 17:21:59 +0000 (14:21 -0300)]
* lisp/gnus/mml1991.el (mml1991-mailcrypt-encrypt): Remove use of ill-designed
mm-with-unibyte-current-buffer.  The buffer should not contain any
multibyte chars anyway at this stage.

13 years ago* bytecomp.el (byte-compile-defvar): Add note about quoted lambda.
Stefan Monnier [Mon, 30 May 2011 17:14:19 +0000 (14:14 -0300)]
* bytecomp.el (byte-compile-defvar): Add note about quoted lambda.

13 years ago[ChangeLog]
Paul Eggert [Mon, 30 May 2011 16:47:35 +0000 (09:47 -0700)]
[ChangeLog]

Malloc failure behavior now depends on size of allocation.
* lib/allocator.h (struct allocator.die): New size arg.
* lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
If the actual problem is an ssize_t limitation, not a size_t or
malloc failure, fail with errno == ENAMETOOLONG instead of calling 'die'.
[src/ChangeLog]
Malloc failure behavior now depends on size of allocation.
* alloc.c (buffer_memory_full, memory_full): New arg NBYTES.
* lisp.h: Change signatures accordingly.
* alloc.c, buffer.c, editfns.c, menu.c, minibuf.c, xterm.c:
All callers changed.

13 years ago* leim/quail/ipa-praat.el: New input method.
Oliver Scholz [Mon, 30 May 2011 16:25:33 +0000 (13:25 -0300)]
* leim/quail/ipa-praat.el: New input method.

13 years agoMerge from trunk.
Paul Eggert [Mon, 30 May 2011 16:12:16 +0000 (09:12 -0700)]
Merge from trunk.

13 years ago* alloc.c (lisp_align_malloc): Omit unnecessary val==NULL tests.
Paul Eggert [Mon, 30 May 2011 16:09:29 +0000 (09:09 -0700)]
* alloc.c (lisp_align_malloc): Omit unnecessary val==NULL tests.