1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-27 10:54:40 +00:00
Commit Graph

100813 Commits

Author SHA1 Message Date
Michael Albinus
0c33dd17ea * net/tramp-sh.el (tramp-find-shell): Apply workaround also for
"SunOS 5.10".
2011-06-04 16:11:26 +02:00
Michael Albinus
f8f91c2ba8 * 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'.
2011-06-04 15:58:37 +02:00
Stefan Monnier
e17d900361 * lisp/shell.el: Require and use pcomplete.
(shell-dynamic-complete-functions): Add pcomplete-completions-at-point.
(shell-completion-vars): Set pcomplete-default-completion-function.
2011-06-04 09:31:34 -03:00
Deniz Dogan
6c4cab0308 * lisp/iswitchb.el (iswitchb-window-buffer-p): Use member' instead of memq'.
Fixes: debbugs:8799
2011-06-04 13:02:37 +02:00
Eli Zaretskii
8264569dfe src/bidi.c (bidi_level_of_next_char): Fix last change. 2011-06-04 11:04:48 +03:00
Andreas Schwab
5993c059db * lisp/url/url-future.el (url-future-test): Fix scope of `saver'. 2011-06-04 09:53:22 +02:00
Eli Zaretskii
fec2107c58 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.
2011-06-04 10:41:44 +03:00
Eli Zaretskii
57f97249c8 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.
2011-06-03 16:34:52 +03:00
Stefan Monnier
ea9fafe093 * lisp/subr.el (make-progress-reporter): Add "..." by default.
Fixes: debbugs:8785
2011-06-02 15:04:44 -03:00
Paul Eggert
037e65b496 Merge: memory_full, gnutls improvements 2011-06-02 10:16:09 -07:00
Juanma Barranquero
b3e945d3a4 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):
2011-06-02 13:24:12 +02:00
Glenn Morris
910fcf6e00 Auto-commit of loaddefs files. 2011-06-02 06:21:27 -04:00
Paul Eggert
57f53182c0 Merge ChangeLog from trunk better. 2011-06-02 01:40:41 -07:00
Paul Eggert
7f5efba80e * alloc.c (allocate_vectorlike): Adjust to memory_full API change. 2011-06-02 01:35:28 -07:00
Paul Eggert
275a5dd650 Merge from trunk. 2011-06-02 01:25:28 -07:00
Paul Eggert
f797625a8c * lib/allocator.h, lib/careadlinkat.c: Merge from gnulib. 2011-06-02 01:22:57 -07:00
Paul Eggert
4008751468 Merge: Remove arbitrary limit of 2**31 entries in hash tables.
Fixes: debbugs:8771
2011-06-02 01:02:59 -07:00
Paul Eggert
af3c30cb28 Merge from trunk. 2011-06-02 00:42:55 -07:00
Stefan Monnier
7d5200893a * 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.
2011-06-02 00:48:23 -03:00
Jay Belanger
a1c2400f27 * calc/calc.el (calc-kill-stack-buffer): Make sure that the trail
buffer isn't killed before making it current.
2011-06-01 19:09:42 -05:00
Teodor Zlatanov
8d009f4aa9 gnus-registry.el (gnus-registry-remove-ignored): New function to remove entries with groups we ignore. 2011-06-01 22:35:26 +00:00
Dan Nicolaescu
698d32e2c3 Make it possible to build with GCC-4.6+ -O2 -flto.
* src/emacs.c (__malloc_initialize_hook): Mark as EXTERNALLY_VISIBLE.
2011-06-01 14:54:35 -07:00
Stefan Monnier
2403c841a8 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.
2011-06-01 16:32:04 -03:00
Glenn Morris
3b7d5980c9 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.
2011-06-01 10:34:24 -07:00
Dan Nicolaescu
fe91f5a091 * lib-src/emacsclient.c (socket_status): Use constant pointer. 2011-06-01 10:15:27 -07:00
Stefan Monnier
fb5b2591a6 * 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.
2011-06-01 12:52:35 -03:00
Stefan Monnier
fd6fa53f88 * 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.
2011-06-01 12:34:41 -03:00
Stefan Monnier
ec8bd86f04 * lisp/thingatpt.el (forward-whitespace): Typo. 2011-06-01 11:28:54 -03:00
Stefan Monnier
2462470b9e 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.
2011-06-01 11:19:45 -03:00
Glenn Morris
18613c7e90 Auto-commit of loaddefs files. 2011-06-01 06:19:26 -04:00
Leo Liu
108bf785c8 Fix last change on rcirc-print and rcirc-decode-coding-system 2011-06-01 16:10:42 +08:00
Glenn Morris
67a0931d39 Use derived-mode-p in previous change. 2011-05-31 20:50:20 -07:00
Glenn Morris
d1a5d56a0c * lisp/mail/emacsbug.el (report-emacs-bug-hook): Mailclient ignores From. 2011-05-31 20:35:49 -07:00
Katsumi Yamaoka
357e1c676c Update. 2011-06-01 00:22:55 +00:00
Gnus developers
2da9c605f8 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.
2011-05-31 22:08:51 +00:00
Stefan Monnier
30a235016e * 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.
2011-05-31 18:40:30 -03:00
Lars Magne Ingebrigtsen
5a94384bca (url-queue-parallel-processes): Increase the default to 6, since 2 seems too conservative for normal usage. 2011-05-31 22:58:01 +02:00
Lars Magne Ingebrigtsen
bcd54f8370 Add the tiny convenience function `process-alive-p'. 2011-05-31 20:40:00 +02:00
Eli Zaretskii
662b2d1a70 src/xdisp.c (single_display_spec_string): Correct a FIXME comment. 2011-05-31 21:08:41 +03:00
Juanma Barranquero
864db017b0 src/makefile.w32-in: Update dependencies. 2011-05-31 19:03:24 +02:00
Juanma Barranquero
5269d76ace lib/getopt_.h: Regenerate. 2011-05-31 18:09:59 +02:00
Stefan Monnier
e227544d7b * lisp/emacs-lisp/debug.el (debug): Save&restore not just the buffer's
content but also its previous major mode.
2011-05-31 12:41:14 -03:00
Helmut Eller
e8296fdc98 * debug.el (debug): Restore the previous content of the
*Backtrace* buffer when we exit with C-M-c.
2011-05-31 12:24:33 -03:00
Dan Nicolaescu
2ad0baf4e6 * src/data.c (init_data): Remove code for UTS, this system is not
supported anymore.
2011-05-31 07:57:53 -07:00
Dan Nicolaescu
4fcc2638bf 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.
2011-05-31 07:52:10 -07:00
Dan Nicolaescu
c56e0fd53b Use const for a string pointer.
* src/dispnew.c (add_window_display_history): Use const for the string
pointer.  Remove declaration, not needed.
2011-05-31 07:44:16 -07:00
Paul Eggert
3870d91691 Adjust ChangeLog as per Stefan's suggestions. 2011-05-31 07:34:33 -07:00
Ted Zlatanov
e300a61b96 * url-future.el: Add general futures facility. 2011-05-31 05:47:22 -05:00
Katsumi Yamaoka
1a3c720964 gnus-sum.el (gnus-summary-exit): Make sure to kill article buffer in ephemeral group. 2011-05-31 10:37:35 +00:00
Glenn Morris
7ebf75b6b2 Auto-commit of generated files. 2011-05-31 06:19:08 -04:00