1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-15 09:47:20 +00:00
Commit Graph

100749 Commits

Author SHA1 Message Date
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
Glenn Morris
27b48e635a * lisp/files.el (hack-local-variables, hack-local-variables-apply): Doc fixes. 2011-05-26 00:35:47 -07:00
Glenn Morris
98f593b8d4 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.
2011-05-26 00:23:11 -07:00
Leo Liu
0f4aebc0eb Allow empty regions in transpose-regions
See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8699.
2011-05-26 13:36:55 +08:00
Glenn Morris
e4245494ba Adjust prompt in previous emacsbug.el change. 2011-05-25 19:57:08 -07:00
Glenn Morris
d0ff0c7d7a * configure.in: Comment fix. 2011-05-25 20:55:14 -04:00
Glenn Morris
eafed945b7 Tiny doc/lispref/variables.texi update.
* doc/lispref/variables.texi (File Local Variables):
Update hack-local-variables `mode-only' return value.
2011-05-25 20:54:27 -04:00
Glenn Morris
7d15102b76 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.
2011-05-25 20:52:33 -04:00
Glenn Morris
9945191976 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.
2011-05-25 20:49:54 -04:00
Glenn Morris
56ade35cd3 Auto-commit of generated files. 2011-05-25 06:19:20 -04:00
Julien Danjou
51d5b4eca9 * textmodes/rst.el (rst-define-level-faces): Do not define face
symbol if it is already defined.
2011-05-25 11:03:59 +02:00
Glenn Morris
497c74cdc9 * lib-src/Makefile.in (all, clean): Use $EXE_FILES. 2011-05-25 00:13:57 -07:00
Glenn Morris
b9345dfd4b Merge from emacs-23; up to 2010-06-12T08:59:37Z!albinus@detlef. 2011-05-24 20:45:04 -07:00
YAMAMOTO Mitsuharu
e61124cd85 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.
2011-05-25 12:06:05 +09:00