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

12 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.

12 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.

12 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.

12 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.

12 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.

12 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.

12 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.

12 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

12 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

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

12 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.

12 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.

12 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.

12 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@.

12 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.

12 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.

12 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).

12 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.

12 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.

12 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.

12 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.

12 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.

12 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.

12 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.

12 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.

12 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.

12 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.

12 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).

12 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).

12 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.

12 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.

12 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).

12 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).

12 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.

12 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.

12 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.

12 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).

12 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.

12 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).

12 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)

12 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.

12 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.

12 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.

12 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).

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

12 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

12 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.

12 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.

12 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.

12 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.

12 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

12 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.

12 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.

12 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.

12 years agoFix order of ChangeLog entries after merge.
Paul Eggert [Fri, 27 May 2011 19:58:54 +0000 (12:58 -0700)]
Fix order of ChangeLog entries after merge.

12 years ago* lisp/emacs-lisp/avl-tree.el (avl-tree--del-balance): Rename from
Toby Cubitt [Fri, 27 May 2011 19:58:19 +0000 (16:58 -0300)]
* lisp/emacs-lisp/avl-tree.el (avl-tree--del-balance): Rename from
avl-tree--del-balance1 and make it work both ways.
(avl-tree--del-balance2): Remove.
(avl-tree--enter-balance): Rename from avl-tree--enter-balance1 and
make it work both ways.
(avl-tree--enter-balance2): Remove.
(avl-tree--switch-dir, avl-tree--dir-to-sign, avl-tree--sign-to-dir):
New macros.
(avl-tree--mapc, avl-tree-map): Add direction argument.

12 years agoMerge from trunk.
Paul Eggert [Fri, 27 May 2011 19:56:58 +0000 (12:56 -0700)]
Merge from trunk.

12 years ago* data.c (arith_driver): Omit unnecessary mask and test.
Paul Eggert [Fri, 27 May 2011 19:48:22 +0000 (12:48 -0700)]
* data.c (arith_driver): Omit unnecessary mask and test.

12 years ago* src/xselect.c (x_convert_selection): Yet another int/Lisp_Object mixup.
Stefan Monnier [Fri, 27 May 2011 19:39:18 +0000 (16:39 -0300)]
* src/xselect.c (x_convert_selection): Yet another int/Lisp_Object mixup.

12 years agoMerge: Integer overflow fixes.
Paul Eggert [Fri, 27 May 2011 19:37:32 +0000 (12:37 -0700)]
Merge: Integer overflow fixes.

12 years ago* lisp/files.el (interpreter-mode-alist): Add rbash.
David Michael [Fri, 27 May 2011 19:33:48 +0000 (16:33 -0300)]
* lisp/files.el (interpreter-mode-alist): Add rbash.

Fixes: debbugs:8745

12 years ago* xselect.c: Fix minor problems prompted by GCC 4.6.0 warnings.
Paul Eggert [Fri, 27 May 2011 19:32:01 +0000 (12:32 -0700)]
* xselect.c: Fix minor problems prompted by GCC 4.6.0 warnings.

(x_handle_selection_request, frame_for_x_selection): Remove unused vars.
(x_clipboard_manager_save): Now static.
(Fx_clipboard_manager_save): Rename local to avoid shadowing.

12 years ago* fns.c: Fix minor problems prompted by GCC 4.6.0 warnings.
Paul Eggert [Fri, 27 May 2011 19:30:12 +0000 (12:30 -0700)]
* fns.c: Fix minor problems prompted by GCC 4.6.0 warnings.

(crypto_hash_function): Now static.
Fix pointer signedness problems.  Avoid unnecessary initializations.

12 years ago* doc/misc/texinfo.tex, lib/getopt.c, lib/intprops.h: Merge from gnulib.
Paul Eggert [Fri, 27 May 2011 16:58:43 +0000 (09:58 -0700)]
* doc/misc/texinfo.tex, lib/getopt.c, lib/intprops.h: Merge from gnulib.

12 years agoSupport X clipboard managers.
Chong Yidong [Fri, 27 May 2011 16:17:59 +0000 (12:17 -0400)]
Support X clipboard managers.

* lisp/select.el (xselect-convert-to-targets): Add MULTIPLE target to list.
(xselect-convert-to-save-targets): New function.

* src/xselect.c: Support for clipboard managers.
(Vselection_alist): Move to termhooks.h as terminal-local var.
(LOCAL_SELECTION): New macro.
(x_atom_to_symbol): Handle x_display_info_for_display fail case.
(symbol_to_x_atom): Remove gratuitous arg.
(x_handle_selection_request, lisp_data_to_selection_data)
(x_get_foreign_selection, Fx_register_dnd_atom): Callers changed.
(x_own_selection, x_get_local_selection, x_convert_selection): New
arg, specifying work frame.  Use terminal-local Vselection_alist.
(some_frame_on_display): Delete unused function.
(Fx_own_selection_internal, Fx_get_selection_internal)
(Fx_disown_selection_internal, Fx_selection_owner_p)
(Fx_selection_exists_p): New optional frame arg.
(frame_for_x_selection, Fx_clipboard_manager_save): New functions.
(x_handle_selection_clear): Don't treat other terminals with the
same keyboard specially.  Use the terminal-local Vselection_alist.
(x_clear_frame_selections): Use Frun_hook_with_args.

* src/termhooks.h (Vselection_alist): Make it terminal-local.

* src/terminal.c (create_terminal): Initialize it.

* src/xterm.c (x_term_init): Intern ATOM and CLIPBOARD_MANAGER atoms.

* src/xterm.h: Add support for those atoms.

12 years agoMerge from emacs-23; up to 2010-06-12T10:58:54Z!romain@orebokech.com.
Glenn Morris [Fri, 27 May 2011 07:18:15 +0000 (00:18 -0700)]
Merge from emacs-23; up to 2010-06-12T10:58:54Z!romain@orebokech.com.

12 years agomail/sendmail.el (mail-encode-header): Avoid double encoding by let-binding rfc2047...
Kenichi Handa [Fri, 27 May 2011 04:54:39 +0000 (13:54 +0900)]
mail/sendmail.el (mail-encode-header): Avoid double encoding by let-binding rfc2047-encode-encoded-words to nil.

12 years ago* lisp/mail/emacsbug.el: Don't require url-util.
Glenn Morris [Fri, 27 May 2011 01:58:50 +0000 (21:58 -0400)]
* lisp/mail/emacsbug.el: Don't require url-util.

12 years ago* lisp/shell.el (shell-directory-tracker): Case matters. (Bug#8735)
Glenn Morris [Fri, 27 May 2011 01:54:56 +0000 (21:54 -0400)]
* lisp/shell.el (shell-directory-tracker): Case matters.  (Bug#8735)

12 years agoTweak previous modes.texi change.
Glenn Morris [Fri, 27 May 2011 01:43:15 +0000 (21:43 -0400)]
Tweak previous modes.texi change.

12 years agoMake set-auto-mode respect mode: entries at the end of the file (bug#8586)
Glenn Morris [Fri, 27 May 2011 01:00:53 +0000 (21:00 -0400)]
Make set-auto-mode respect mode: entries at the end of the file (bug#8586)

* lisp/files.el (set-auto-mode):
Also respect mode: entries at the end of the file.

* doc/lispref/modes.texi (Auto Major Mode):
Update for set-auto-mode changes.

* doc/emacs/custom.texi (Specifying File Variables):
Major modes no longer need come first.

* etc/NEWS: Mention this.

12 years agoRepeat previous gnus-group.el change for bugs.debian.org.
Glenn Morris [Fri, 27 May 2011 00:55:07 +0000 (20:55 -0400)]
Repeat previous gnus-group.el change for bugs.debian.org.

* lisp/gnus/gnus-group.el (gnus-bug-group-download-format-alist):
Use the "maintainer" version of debian reports as well.

12 years agosrc/xselect.c (x_handle_selection_request): Fix typo in last change.
Chong Yidong [Thu, 26 May 2011 19:20:59 +0000 (15:20 -0400)]
src/xselect.c (x_handle_selection_request): Fix typo in last change.

12 years ago* src/xselect.c: ICCCM-compliant handling of MULTIPLE targets.
Chong Yidong [Thu, 26 May 2011 17:42:32 +0000 (13:42 -0400)]
* src/xselect.c: ICCCM-compliant handling of MULTIPLE targets.
(converted_selections, conversion_fail_tag): New global variables.
(x_selection_request_lisp_error): Free the above.
(x_get_local_selection): Remove unnecessary code.
(x_reply_selection_request): Args changed; handle arbitrary array
of converted selections stored in converted_selections.  Separate
the XChangeProperty and SelectionNotify steps.
(x_handle_selection_request): Rewrite to handle MULTIPLE target.
(x_convert_selection): New function.
(x_handle_selection_event): Simplify.
(x_get_foreign_selection): Don't ignore incoming requests while
waiting for an answer; this will fail when we implement
SAVE_TARGETS, and seems unnecessary anyway.
(selection_data_to_lisp_data): Recognize ATOM_PAIR type.
(Vx_sent_selection_functions): Doc fix.

12 years ago* variables.texi (File Local Variables): More hack-local-variables details.
Glenn Morris [Thu, 26 May 2011 16:20:21 +0000 (09:20 -0700)]
* variables.texi (File Local Variables): More hack-local-variables details.

12 years agoRestrict regexp match in previous emacsbug.el change.
Glenn Morris [Thu, 26 May 2011 16:14:53 +0000 (09:14 -0700)]
Restrict regexp match in previous emacsbug.el change.

12 years ago* lisp/files.el (hack-local-variables, hack-local-variables-apply): Doc fixes.
Glenn Morris [Thu, 26 May 2011 07:35:47 +0000 (00:35 -0700)]
* lisp/files.el (hack-local-variables, hack-local-variables-apply): Doc fixes.

12 years agoDowncase mode names in recent files.el changes.
Glenn Morris [Thu, 26 May 2011 07:23:11 +0000 (00:23 -0700)]
Downcase mode names in recent files.el changes.

* lisp/files.el (hack-local-variables-prop-line, hack-local-variables):
Downcase mode names, as seems to be traditional.

12 years agoAllow empty regions in transpose-regions
Leo Liu [Thu, 26 May 2011 05:36:55 +0000 (13:36 +0800)]
Allow empty regions in transpose-regions

See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8699.

12 years agoAdjust prompt in previous emacsbug.el change.
Glenn Morris [Thu, 26 May 2011 02:57:08 +0000 (19:57 -0700)]
Adjust prompt in previous emacsbug.el change.

12 years ago* configure.in: Comment fix.
Glenn Morris [Thu, 26 May 2011 00:55:14 +0000 (20:55 -0400)]
* configure.in: Comment fix.

12 years agoTiny doc/lispref/variables.texi update.
Glenn Morris [Thu, 26 May 2011 00:54:27 +0000 (20:54 -0400)]
Tiny doc/lispref/variables.texi update.

* doc/lispref/variables.texi (File Local Variables):
Update hack-local-variables `mode-only' return value.

12 years agoTry to check From address in bug reports (bug#8038)
Glenn Morris [Thu, 26 May 2011 00:52:33 +0000 (20:52 -0400)]
Try to check From address in bug reports (bug#8038)

* lisp/mail/emacsbug.el (report-emacs-bug): Mention checking From address.
(report-emacs-bug-hook): Try to validate the From address.

12 years agoMinor gnus-group.el change.
Glenn Morris [Thu, 26 May 2011 00:49:54 +0000 (20:49 -0400)]
Minor gnus-group.el change.

* lisp/gnus/gnus-group.el (gnus-bug-group-download-format-alist):
Use the "maintainer" version of debbugs.gnu.org reports.

12 years agoAuto-commit of generated files.
Glenn Morris [Wed, 25 May 2011 10:19:20 +0000 (06:19 -0400)]
Auto-commit of generated files.

12 years ago* textmodes/rst.el (rst-define-level-faces): Do not define face
Julien Danjou [Wed, 25 May 2011 09:03:59 +0000 (11:03 +0200)]
* textmodes/rst.el (rst-define-level-faces): Do not define face
symbol if it is already defined.

12 years ago* lib-src/Makefile.in (all, clean): Use $EXE_FILES.
Glenn Morris [Wed, 25 May 2011 07:13:57 +0000 (00:13 -0700)]
* lib-src/Makefile.in (all, clean): Use $EXE_FILES.

12 years agoMerge from emacs-23; up to 2010-06-12T08:59:37Z!albinus@detlef.
Glenn Morris [Wed, 25 May 2011 03:45:04 +0000 (20:45 -0700)]
Merge from emacs-23; up to 2010-06-12T08:59:37Z!albinus@detlef.

12 years agoTake account of periodic fringe bitmap's dependency on y-position in redrawing.
YAMAMOTO Mitsuharu [Wed, 25 May 2011 03:06:05 +0000 (12:06 +0900)]
Take account of periodic fringe bitmap's dependency on y-position in redrawing.

* dispextern.h (struct glyph_row): New member fringe_bitmap_periodic_p.

* dispnew.c (shift_glyph_matrix, scrolling_window): Mark scrolled row
for fringe update if it has periodic bitmap.
(row_equal_p): Also compare left_fringe_offset, right_fringe_offset,
and fringe_bitmap_periodic_p.

* fringe.c (get_fringe_bitmap_data): New function.
(draw_fringe_bitmap_1, update_window_fringes): Use it.
(update_window_fringes): Record periodicity of fringe bitmap in glyph
row.  Mark glyph row for fringe update if periodicity changed.

* xdisp.c (try_window_reusing_current_matrix): Don't mark scrolled row
for fringe update unless it has periodic bitmap.

12 years agomerge emacs-23
Kenichi Handa [Wed, 25 May 2011 02:45:30 +0000 (11:45 +0900)]
merge emacs-23

12 years agoSmall further clean-up in lib-src/Makefile.in
Glenn Morris [Wed, 25 May 2011 02:33:35 +0000 (19:33 -0700)]
Small further clean-up in lib-src/Makefile.in

* lib-src/Makefile.in (.c.o): Remove (every .o file has an explicit rule).
(insrcdir): New.
(stamp-rcs2log, stamp-rcs-checkin, stamp-grep-changelog, stamp-vcdiff):
Use $insrcdir to suppress unaesthetic ignored errors.
(clean): Simplify list of things to delete.

12 years ago* lib-src/Makefile.in (movemail${EXEEXT}): Build in one step, not via .o file.
Glenn Morris [Wed, 25 May 2011 01:32:34 +0000 (21:32 -0400)]
* lib-src/Makefile.in (movemail${EXEEXT}): Build in one step, not via .o file.

12 years agoxdisp.c (get_next_display_element): Set correct it->face_id for a static composition.
Kenichi Handa [Wed, 25 May 2011 01:26:35 +0000 (10:26 +0900)]
xdisp.c (get_next_display_element): Set correct it->face_id for a static composition.

12 years agoTiny simplifications in lib-src/Makfile.in
Glenn Morris [Wed, 25 May 2011 01:23:14 +0000 (21:23 -0400)]
Tiny simplifications in lib-src/Makfile.in

* lib-src/Makfile.in (REGEXPOBJ, REGEXPDEPS): Remove.  Replace by expansion.
(etags${EXEEXT}): Just depend on regex.o, not regex.h as well.

12 years ago* Makefile.in (check): Just give a message if no test/ directory.
Glenn Morris [Tue, 24 May 2011 20:09:08 +0000 (16:09 -0400)]
* Makefile.in (check): Just give a message if no test/ directory.

12 years ago* configure.in: Avoid using variables inside AC_CONFIG_FILES.
Glenn Morris [Tue, 24 May 2011 19:12:58 +0000 (15:12 -0400)]
* configure.in: Avoid using variables inside AC_CONFIG_FILES.

12 years ago* lisp/play/5x5.el (5x5-new-game, 5x5-randomize):
Vincent Belaïche [Tue, 24 May 2011 18:22:09 +0000 (15:22 -0300)]
* lisp/play/5x5.el (5x5-new-game, 5x5-randomize):
Reset 5x5-solver-output to nil when a new grid is cast.
(5x5-log-init, 5x5-log): Use defsubst instead of defmacro to shunt
these debugging traces, as defmacro breaks the compiled code.

12 years ago* lisp/isearch.el (isearch-range-invisible): Use invisible-p.
Dmitry Kurochkin [Tue, 24 May 2011 18:15:07 +0000 (15:15 -0300)]
* lisp/isearch.el (isearch-range-invisible): Use invisible-p.

Fixes: debbugs:8721

12 years agoAuto-commit of generated files.
Glenn Morris [Tue, 24 May 2011 17:24:15 +0000 (13:24 -0400)]
Auto-commit of generated files.