1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-16 09:50:25 +00:00
Commit Graph

100712 Commits

Author SHA1 Message Date
Chong Yidong
8e6ca83dfe 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.
2011-05-28 19:43:11 -04:00
Chong Yidong
fbeba6e230 * startup.el (normal-splash-screen): Remove gratuitous mode-line setting (Bug#8740). 2011-05-28 19:30:17 -04:00
Chong Yidong
bfbbace74b * lisp/newcomment.el (comment-end-skip): Doc fix (Bug#8659). 2011-05-28 19:07:43 -04:00
Leo Liu
60e5652346 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.
2011-05-28 18:56:14 -04:00
Alp Aker
4ac619f07b Additional minor fix to (Bug#8539).
* lisp/buff-menu.el (Buffer-menu-buffer+size): Use Buffer-menu-buffer-column.
2011-05-28 16:08:05 -04:00
Chong Yidong
b4d52accc5 * doc/lispref/minibuf.texi (Reading File Names): Clarify (Bug#8480). 2011-05-28 15:58:43 -04:00
Kevin Ryde
2b1e1a2263 * lisp/subr.el (def-edebug-spec): Doc fix (Bug#8430). 2011-05-28 15:36:02 -04:00
Chong Yidong
5d344e883f 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.
2011-05-28 15:26:25 -04:00
Alp Aker
60ed8c727a 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.
2011-05-28 15:13:00 -04:00
Chong Yidong
6b5681bf6b Remove antediluvian filename limit recommendation from tips.texi (Bug#8538).
* doc/lispref/tips.texi (Coding Conventions): Remove antediluvian filename limit recommendation.
2011-05-28 15:05:36 -04:00
Chong Yidong
23db196eea * emacs-lisp/re-builder.el (re-builder): Improve doc (Bug#8286). 2011-05-28 14:48:41 -04:00
Dima Kogan
5012f24c2a 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.
2011-05-28 14:35:29 -04:00
Chong Yidong
bf41276f9c 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).
2011-05-28 14:22:08 -04:00
Glenn Morris
6a639b16ed * lisp/startup.el (fancy-about-screen): Use standard mode line. (Bug#8740) 2011-05-28 10:47:45 -07:00
Glenn Morris
57f4e35d09 * admin/notes/bzr: Your very own Loggerhead server. 2011-05-28 10:46:02 -07:00
Chong Yidong
5199bde177 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.
2011-05-28 13:40:37 -04:00
Chong Yidong
d43eaf2c3c 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.
2011-05-28 13:16:54 -04:00
William Xu
5ba6571dd9 * src/nsterm.m (ns_term_shutdown): Synchronize user defaults before exiting (Bug#8239). 2011-05-28 12:56:53 -04:00
Eli Zaretskii
e19009947f src/ChangeLog: Fix last entry. 2011-05-28 15:54:28 +03:00
Jim Meyering
3eaff8342b 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
2011-05-28 14:19:08 +02:00
Eli Zaretskii
d451b08791 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.
2011-05-28 13:00:09 +03:00
Stefan Monnier
0ff8e1ba6b * 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.
2011-05-27 23:10:32 -03:00
Stefan Monnier
423428a80c * 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.
2011-05-27 22:33:10 -03:00
Drew Adams
b74aa22b0a * lisp/isearch.el: Let M-e start with point at the first mismatched char.
(isearch-fail-pos): New function.
(isearch-edit-string): Use it.
2011-05-27 22:26:53 -03:00
Dmitry Kurochkin
66e2e71d55 * lisp/isearch.el (isearch-range-invisible): Use invisible-p.
Fixes: debbugs:8721
2011-05-27 22:14:38 -03:00
Toby Cubitt
93a1c12a9a * lisp/emacs-lisp/avl-tree.el: New avl-tree-stack datatype. Add new
traversal functions for avl-trees.  Consolidate rebalancing code.
2011-05-27 20:03:26 -03:00
Toby Cubitt
eb95d01d15 * 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.
2011-05-27 19:58:29 -03:00
Eli Zaretskii
61838453ca src/ccl.c: Fix last commit. 2011-05-28 00:24:11 +03:00
Paul Eggert
2ff916cbc2 Fix order of ChangeLog entries after merge. 2011-05-27 12:58:54 -07:00
Toby Cubitt
3769ddcf1e * 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.
2011-05-27 16:58:19 -03:00
Paul Eggert
be7b2f3e8f Merge from trunk. 2011-05-27 12:56:58 -07:00
Paul Eggert
9d34ec3e75 * data.c (arith_driver): Omit unnecessary mask and test. 2011-05-27 12:48:22 -07:00
Stefan Monnier
18480f8fc0 * src/xselect.c (x_convert_selection): Yet another int/Lisp_Object mixup. 2011-05-27 16:39:18 -03:00
Paul Eggert
0f6990a78a Merge: Integer overflow fixes. 2011-05-27 12:37:32 -07:00
David Michael
7a6b1aef76 * lisp/files.el (interpreter-mode-alist): Add rbash.
Fixes: debbugs:8745
2011-05-27 16:33:48 -03:00
Paul Eggert
fb1ac845ca * 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.
2011-05-27 12:32:01 -07:00
Paul Eggert
f1b54466e9 * fns.c: Fix minor problems prompted by GCC 4.6.0 warnings.
(crypto_hash_function): Now static.
Fix pointer signedness problems.  Avoid unnecessary initializations.
2011-05-27 12:30:12 -07:00
Paul Eggert
842b28a065 * doc/misc/texinfo.tex, lib/getopt.c, lib/intprops.h: Merge from gnulib. 2011-05-27 09:58:43 -07:00
Chong Yidong
a9f737eef6 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.
2011-05-27 12:17:59 -04:00
Glenn Morris
be520aca79 Merge from emacs-23; up to 2010-06-12T10:58:54Z!romain@orebokech.com. 2011-05-27 00:18:15 -07:00
Kenichi Handa
c92a1e54c4 mail/sendmail.el (mail-encode-header): Avoid double encoding by let-binding rfc2047-encode-encoded-words to nil. 2011-05-27 13:54:39 +09:00
Glenn Morris
5ec8a86217 * lisp/mail/emacsbug.el: Don't require url-util. 2011-05-26 21:58:50 -04:00
Glenn Morris
4b29d9fbfb * lisp/shell.el (shell-directory-tracker): Case matters. (Bug#8735) 2011-05-26 21:54:56 -04:00
Glenn Morris
9545957184 Tweak previous modes.texi change. 2011-05-26 21:43:15 -04:00
Glenn Morris
e145f1881a 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.
2011-05-26 21:00:53 -04:00
Glenn Morris
8c7c1f6d95 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.
2011-05-26 20:55:07 -04:00
Chong Yidong
757c92750c src/xselect.c (x_handle_selection_request): Fix typo in last change. 2011-05-26 15:20:59 -04:00
Chong Yidong
e067f0c10d * 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.
2011-05-26 13:42:32 -04:00
Glenn Morris
2d3ba9e768 * variables.texi (File Local Variables): More hack-local-variables details. 2011-05-26 09:20:21 -07:00
Glenn Morris
fc6c27276c Restrict regexp match in previous emacsbug.el change. 2011-05-26 09:14:53 -07:00