bpt/emacs.git
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 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 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 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/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 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 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 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* 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 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.

13 years agoDecode all incoming messages in rcirc.el
Leo Liu [Mon, 30 May 2011 12:23:56 +0000 (20:23 +0800)]
Decode all incoming messages in rcirc.el

Also allow automatic coding system detection if
rcirc-decode-coding-system is nil.

See discussion in http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8744

13 years agoUse a visible buffer name for rcirc-debug-buffer
Leo Liu [Mon, 30 May 2011 12:04:44 +0000 (20:04 +0800)]
Use a visible buffer name for rcirc-debug-buffer

13 years agoAuto-commit of generated files.
Glenn Morris [Mon, 30 May 2011 10:18:40 +0000 (06:18 -0400)]
Auto-commit of generated files.

13 years ago* eval.c (Qdebug): Now static.
Paul Eggert [Mon, 30 May 2011 05:39:59 +0000 (22:39 -0700)]
* eval.c (Qdebug): Now static.

* lisp.h (Qdebug): Remove decl.  This reverts a part of the
2011-04-26T11:26:05Z!dan.colascione@gmail.com that inadvertently undid part of
2011-04-14T06:48:41Z!eggert@cs.ucla.edu.

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

13 years agoshr.el (shr-urlify): Use shr-add-font to make underlines be less ugly at the end...
Gnus developers [Sun, 29 May 2011 23:28:45 +0000 (23:28 +0000)]
shr.el (shr-urlify): Use shr-add-font to make underlines be less ugly at the end of lines.
smiley.el (gnus-smiley-file-types): Add gif as supported file type.

13 years agoMerge from emacs-23; up to 2010-06-12T11:17:12Z!eliz@gnu.org.
Glenn Morris [Sun, 29 May 2011 22:41:06 +0000 (15:41 -0700)]
Merge from emacs-23; up to 2010-06-12T11:17:12Z!eliz@gnu.org.

13 years agoAdjust to recent gnulib change for @GUARD_PREFIX@.
Paul Eggert [Sun, 29 May 2011 21:52:18 +0000 (14:52 -0700)]
Adjust to recent gnulib change for @GUARD_PREFIX@.

13 years agoFix animated gifs (Bug#6981).
Chong Yidong [Sun, 29 May 2011 21:35:35 +0000 (17:35 -0400)]
Fix animated gifs (Bug#6981).

* lisp/image-mode.el (image-toggle-display-image): Ensure that the
image spec passed to the animate timer is the same object as in
the the buffer's display property.
(image-transform-properties): Doc fix.

* lisp/image.el (image-animate-max-time): Default to nil.

* lisp/image.el (image-animate-max-time): Allow nil and t values.
Default to nil.
(create-animated-image): Doc fix.
(image-animate-start): Remove second arg; just use
image-animate-max-time.
(image-animate-timeout): Doc fix.  Args changed.

13 years agosrc/coding.c: Fix a typo in a comment.
Eli Zaretskii [Sun, 29 May 2011 21:09:52 +0000 (00:09 +0300)]
src/coding.c: Fix a typo in a comment.

13 years ago* menu-bar.el (kill-this-buffer-enabled-p): Avoid looping over entire buffer list...
Martin Rudalics [Sun, 29 May 2011 19:11:23 +0000 (15:11 -0400)]
* menu-bar.el (kill-this-buffer-enabled-p): Avoid looping over entire buffer list (Bug#8184).

13 years agosrc/font.[ch]: Fix typos in comments and strings.
Eli Zaretskii [Sun, 29 May 2011 19:04:01 +0000 (22:04 +0300)]
src/font.[ch]: Fix typos in comments and strings.

13 years agoClarify Remapping Commands node in Lisp manual (Bug#8350).
Chong Yidong [Sun, 29 May 2011 19:00:00 +0000 (15:00 -0400)]
Clarify Remapping Commands node in Lisp manual (Bug#8350).

* keymaps.texi (Remapping Commands): Emphasize that the keymap
needs to be active.

13 years agoDoc fixes for imagemagick support code.
Chong Yidong [Sun, 29 May 2011 18:17:28 +0000 (14:17 -0400)]
Doc fixes for imagemagick support code.

* lisp/image.el (imagemagick-types-inhibit)
(imagemagick-register-types): Doc fix.

* src/image.c: Various fixes to ImageMagick code comments.
(Fimagemagick_types): Doc fix.

13 years agoTweaks to lisp manual to remove over/underflows in printed version.
Chong Yidong [Sun, 29 May 2011 17:18:46 +0000 (13:18 -0400)]
Tweaks to lisp manual to remove over/underflows in printed version.

* help.texi (Accessing Documentation):
* display.texi (Pixel Specification):
* processes.texi (Serial Ports, Serial Ports):
* nonascii.texi (Character Properties, Default Coding Systems):
* text.texi (Changing Properties, Special Properties):
* windows.texi (Window Start and End):
* modes.texi (SMIE Indentation Example, SMIE Tricks):
* keymaps.texi (Searching Keymaps, Tool Bar):
* minibuf.texi (Basic Completion):
* compile.texi (Eval During Compile):
* strings.texi (Formatting Strings): Tweaks to avoid overflowing
7x9 paper in printed manual.

* lists.texi (Sets And Lists): Fix misplaced text.

13 years ago* net/rcirc.el (rcirc): Use the user's stored encryption method by default.
Deniz Dogan [Sun, 29 May 2011 05:42:00 +0000 (07:42 +0200)]
* net/rcirc.el (rcirc): Use the user's stored encryption method by default.

13 years agoMinor fixes prompted by GCC 4.6.0 warnings.
Paul Eggert [Sun, 29 May 2011 05:23:24 +0000 (22:23 -0700)]
Minor fixes prompted by GCC 4.6.0 warnings.

* xselect.c (converted_selections, conversion_fail_tag): Now static.

13 years ago* emacs.c [HAVE_X_WINDOWS]: Include "xterm.h".
Paul Eggert [Sun, 29 May 2011 04:08:28 +0000 (21:08 -0700)]
* emacs.c [HAVE_X_WINDOWS]: Include "xterm.h".

(x_clipboard_manager_save_all): Move extern decl to ...
* xterm.h: ... here, so that it can be checked for consistency.

13 years agoAdd option :named to defstruct in url-cookie.el
Leo Liu [Sun, 29 May 2011 02:45:03 +0000 (10:45 +0800)]
Add option :named to defstruct in url-cookie.el

or url-cookie-p won't be defined.

See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8747 for details.

13 years agoMove clipboard-manager functionality out of hooks.
Chong Yidong [Sun, 29 May 2011 00:45:00 +0000 (20:45 -0400)]
Move clipboard-manager functionality out of hooks.

* lisp/select.el: Don't perform clipboard-manager saving in hooks;
leave the hooks empty.

* src/emacs.c (Fkill_emacs): Call x_clipboard_manager_save_all.
* src/frame.c (delete_frame): Call x_clipboard_manager_save_frame.

* src/xselect.c (x_clipboard_manager_save_frame)
(x_clipboard_manager_save_all): New functions.
(Fx_clipboard_manager_save): Lisp function deleted.

* src/xterm.h: Update prototype.

13 years agoMake first mode-line dash an empty space on graphical terminals (Bug#7295).
Chong Yidong [Sat, 28 May 2011 23:43:11 +0000 (19:43 -0400)]
Make first mode-line dash an empty space on graphical terminals (Bug#7295).

* lisp/bindings.el (help-echo): Make the initial non-indicator dash
empty on graphical terminals.

13 years ago* startup.el (normal-splash-screen): Remove gratuitous mode-line setting (Bug#8740).
Chong Yidong [Sat, 28 May 2011 23:30:17 +0000 (19:30 -0400)]
* startup.el (normal-splash-screen): Remove gratuitous mode-line setting (Bug#8740).

13 years ago* lisp/newcomment.el (comment-end-skip): Doc fix (Bug#8659).
Chong Yidong [Sat, 28 May 2011 23:07:43 +0000 (19:07 -0400)]
* lisp/newcomment.el (comment-end-skip): Doc fix (Bug#8659).

13 years agoNew major mode: Occur Edit mode.
Leo Liu [Sat, 28 May 2011 22:56:14 +0000 (18:56 -0400)]
New major mode: Occur Edit mode.

* lisp/replace.el (occur-menu-map, occur-edit-mode-map): New vars.
(occur-mode-map): Bind occur-edit-mode.  Use occur-menu-map.
(occur-edit-mode): New major mode (Bug#8463).
(occur-after-change-function): New function.
(occur-engine): Give Occur tags a read-only property.

13 years ago[ChangeLog]
Paul Eggert [Sat, 28 May 2011 22:39:39 +0000 (15:39 -0700)]
[ChangeLog]

Use 'inline', not 'INLINE'.
* configure.in, autogen/config.in (INLINE): Remove.
[lib-src/ChangeLog]
Use 'inline', not 'INLINE'.
* etags.c (hash): Now inline unconditionally.
* make-docfile.c (put_char): inline, not INLINE.
[nt/ChangeLog]
Use 'inline', not 'INLINE'.
* config.nt (INLINE): Remove.
[src/ChangeLog]
Use 'inline', not 'INLINE'.
* 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 agoAdditional minor fix to (Bug#8539).
Alp Aker [Sat, 28 May 2011 20:08:05 +0000 (16:08 -0400)]
Additional minor fix to (Bug#8539).

* lisp/buff-menu.el (Buffer-menu-buffer+size): Use Buffer-menu-buffer-column.

13 years ago* doc/lispref/minibuf.texi (Reading File Names): Clarify (Bug#8480).
Chong Yidong [Sat, 28 May 2011 19:58:43 +0000 (15:58 -0400)]
* doc/lispref/minibuf.texi (Reading File Names): Clarify (Bug#8480).

13 years ago* lisp/subr.el (def-edebug-spec): Doc fix (Bug#8430).
Kevin Ryde [Sat, 28 May 2011 19:36:02 +0000 (15:36 -0400)]
* lisp/subr.el (def-edebug-spec): Doc fix (Bug#8430).

13 years agoTweak auto-mode-alist to handle config.h.in (Bug#8547).
Chong Yidong [Sat, 28 May 2011 19:26:25 +0000 (15:26 -0400)]
Tweak auto-mode-alist to handle config.h.in (Bug#8547).

* lisp/files.el (auto-mode-alist): Move config rule after the
in-stripping one.

13 years agoUse Buffer-menu-buffer-column to replace hard-coded values (Bug#8539).
Alp Aker [Sat, 28 May 2011 19:13:00 +0000 (15:13 -0400)]
Use Buffer-menu-buffer-column to replace hard-coded values (Bug#8539).

* lisp/buff-menu.el (Buffer-menu-revert-function, Buffer-menu-sort):
Use Buffer-menu-buffer-column.

13 years agoRemove antediluvian filename limit recommendation from tips.texi (Bug#8538).
Chong Yidong [Sat, 28 May 2011 19:05:36 +0000 (15:05 -0400)]
Remove antediluvian filename limit recommendation from tips.texi (Bug#8538).

* doc/lispref/tips.texi (Coding Conventions): Remove antediluvian filename limit recommendation.

13 years ago* emacs-lisp/re-builder.el (re-builder): Improve doc (Bug#8286).
Chong Yidong [Sat, 28 May 2011 18:48:41 +0000 (14:48 -0400)]
* emacs-lisp/re-builder.el (re-builder): Improve doc (Bug#8286).

13 years agoMore fixes to prevent hide-show from being confused by commented-out braces (Bug...
Dima Kogan [Sat, 28 May 2011 18:35:29 +0000 (14:35 -0400)]
More fixes to prevent hide-show from being confused by commented-out braces (Bug#8279).

* progmodes/hideshow.el (hs-looking-at-block-start-p): New fun.
(hs-hide-block-at-point, hs-find-block-beginning)
(hs-already-hidden-p, hs-hide-block, hs-show-block): Use it.

13 years agoDocument prog-mode-hook in Emacs manual.
Chong Yidong [Sat, 28 May 2011 18:22:08 +0000 (14:22 -0400)]
Document prog-mode-hook in Emacs manual.

* custom.texi (Hooks): Reorganize.  Mention Prog mode.

* fixit.texi (Spelling): Mention using prog-mode-hook for flypsell
prog mode (Bug#8240).

13 years ago* lisp/startup.el (fancy-about-screen): Use standard mode line. (Bug#8740)
Glenn Morris [Sat, 28 May 2011 17:47:45 +0000 (10:47 -0700)]
* lisp/startup.el (fancy-about-screen): Use standard mode line.  (Bug#8740)

13 years ago* admin/notes/bzr: Your very own Loggerhead server.
Glenn Morris [Sat, 28 May 2011 17:46:02 +0000 (10:46 -0700)]
* admin/notes/bzr: Your very own Loggerhead server.

13 years agoIn describe-function, print the parent of a derived mode.
Chong Yidong [Sat, 28 May 2011 17:40:37 +0000 (13:40 -0400)]
In describe-function, print the parent of a derived mode.

* lisp/help-fns.el (describe-function-1): If the function is a derived
major mode, print the parent mode.

13 years agoMake CC modes inherit from prog-mode.
Chong Yidong [Sat, 28 May 2011 17:16:54 +0000 (13:16 -0400)]
Make CC modes inherit from prog-mode.

* lisp/progmodes/cc-mode.el (c-mode, c++-mode, objc-mode, java-mode)
(idl-mode, pike-mode, awk-mode): Inherit from prog-mode.

13 years ago* src/nsterm.m (ns_term_shutdown): Synchronize user defaults before exiting (Bug...
William Xu [Sat, 28 May 2011 16:56:53 +0000 (12:56 -0400)]
* src/nsterm.m (ns_term_shutdown): Synchronize user defaults before exiting (Bug#8239).

13 years agosrc/ChangeLog: Fix last entry.
Eli Zaretskii [Sat, 28 May 2011 12:54:28 +0000 (15:54 +0300)]
src/ChangeLog: Fix last entry.

13 years agoavoid a sign-extension bug in crypto_hash_function
Jim Meyering [Sat, 28 May 2011 12:19:08 +0000 (14:19 +0200)]
avoid a sign-extension bug in crypto_hash_function

* fns.c (to_uchar): Define.
(crypto_hash_function): Use it to convert some newly-signed
variables to unsigned, to avoid sign-extension bugs.  For example,
without this change, (md5 "truc") would evaluate to
45723a2aff78ff4fff7fff1114760e62 rather than the expected
45723a2af3788c4ff17f8d1114760e62.  Reported by Antoine Levitt in
http://thread.gmane.org/gmane.emacs.devel/139824

13 years agoAdapt the MSDOS build to introduction of sha1 and other latest changes.
Eli Zaretskii [Sat, 28 May 2011 10:00:09 +0000 (13:00 +0300)]
Adapt the MSDOS build to introduction of sha1 and other latest changes.

 msdos/sed1v2.inp: Edit "make-docfile -d FOO" commands to chdir back to
 src/.  Make editing of RUN_TEMACS commands less sensitive to
 leading whitespace.
 msdos/sedlibmk.inp (gl_LIBOBJS): Add sha1.o.

13 years ago* lisp/minibuffer.el (completion--capf-wrapper): Check applicability before
Stefan Monnier [Sat, 28 May 2011 02:10:32 +0000 (23:10 -0300)]
* lisp/minibuffer.el (completion--capf-wrapper): Check applicability before
retuning non-nil for non-exclusive completion data.
* lisp/progmodes/etags.el (tags-completion-at-point-function):
* lisp/info-look.el (info-lookup-completions-at-point): Mark as non-exclusive.
(info-complete): Adjust accordingly.
* lisp/erc/erc-pcomplete.el (erc-pcompletions-at-point): Mark the completion
data as non-exclusive if it's using the default-completion-function.
(pcomplete-erc-parse-arguments): Rename pcomplete-parse-erc-arguments.
(pcomplete-erc-setup): Use new name.

13 years ago* lisp/info-look.el: Convert to lexical-binding and completion-at-point.
Stefan Monnier [Sat, 28 May 2011 01:33:10 +0000 (22:33 -0300)]
* lisp/info-look.el: Convert to lexical-binding and completion-at-point.
(info-lookup-completions-at-point): New function.
(info-complete): Use it and completion-in-region.

13 years ago* lisp/isearch.el: Let M-e start with point at the first mismatched char.
Drew Adams [Sat, 28 May 2011 01:26:53 +0000 (22:26 -0300)]
* lisp/isearch.el: Let M-e start with point at the first mismatched char.
(isearch-fail-pos): New function.
(isearch-edit-string): Use it.

13 years ago* lisp/isearch.el (isearch-range-invisible): Use invisible-p.
Dmitry Kurochkin [Sat, 28 May 2011 01:14:38 +0000 (22:14 -0300)]
* lisp/isearch.el (isearch-range-invisible): Use invisible-p.

Fixes: debbugs:8721

13 years ago* lisp/emacs-lisp/avl-tree.el: New avl-tree-stack datatype. Add new
Toby Cubitt [Fri, 27 May 2011 23:03:26 +0000 (20:03 -0300)]
* lisp/emacs-lisp/avl-tree.el: New avl-tree-stack datatype.  Add new
traversal functions for avl-trees.  Consolidate rebalancing code.

13 years ago* lisp/emacs-lisp/avl-tree.el: New avl-tree-stack datatype. Add new
Toby Cubitt [Fri, 27 May 2011 22:58:29 +0000 (19:58 -0300)]
* lisp/emacs-lisp/avl-tree.el: New avl-tree-stack datatype.  Add new
traversal functions for avl-trees.
(avl-tree--stack): New struct.
(avl-tree-stack-p, avl-tree--stack-repopulate): New funs.
(avl-tree-enter): Add optional `updatefun' arg.
(avl-tree--do-enter): Add optional `updatefun' arg.  Change return value.
(avl-tree-delete): Add optional `test' and `nilflag' args.
(avl-tree--do-delete): Add `test' and `nilflag' args.  Change return value.
(avl-tree-member): Add optional `nilflag'
(avl-tree-member-p): New function.
(avl-tree-mapc, avl-tree-mapf, avl-tree-mapcar): New functions.
(avl-tree-stack, avl-tree-stack-pop, avl-tree-stack-first)
(avl-tree-stack-empty-p): New functions.

13 years agosrc/ccl.c: Fix last commit.
Eli Zaretskii [Fri, 27 May 2011 21:24:11 +0000 (00:24 +0300)]
src/ccl.c: Fix last commit.