1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-19 01:10:57 -08:00
Commit graph

102677 commits

Author SHA1 Message Date
Michael Albinus
710dec6300 * net/tramp.el (top): Don't require 'shell.
(tramp-methods): Fix docstring.
(tramp-get-remote-tmpdir): New defun, moved from tramp-sh.el.
Return complete remote file name.  Handle "smb" case.  Use
`tramp-tmpdir', if defined for the respective method.
(tramp-make-tramp-temp-file): Adapt call of `tramp-get-remote-tmpdir'.

* net/tramp-compat.el (top): Require 'shell.

* net/tramp-sh.el (tramp-do-copy-or-rename-file-out-of-band)
(tramp-maybe-open-connection): Use `tramp-file-name-real-host' for
`tramp-current-host'.
(tramp-get-remote-tmpdir): Remove.

* net/tramp-smb.el (tramp-methods): Add `tramp-remote-shell' and
`tramp-tmpdir' entries.
(tramp-smb-errors): Add "NT_STATUS_IMAGE_ALREADY_LOADED".
(tramp-smb-handle-file-attributes): Ignore errors.
(tramp-smb-wait-for-output): Check also for process end.
2011-09-18 13:26:15 +02:00
Paul Eggert
87e4427a0d Fix minor problem found by static checking.
* xdisp.c (reseat_at_next_visible_line_start): Mark locals as
initialized, to pacify gcc -Wuninitialized.
2011-09-18 02:01:39 -07:00
Paul Eggert
e5e9d610c9 * fileio.c: Report proper errno when syscall falls.
(Finsert_file_contents): Save and restore errno,
so that report_file_error outputs the correct diagnostic.
(Fwrite_region) [CLASH_DETECTION]: Likewise.
2011-09-18 01:34:09 -07:00
Lars Magne Ingebrigtsen
5d5ac8ec03 (smtpmail-via-smtp): Ignore errors that arise when sending QUIT.
Fixes: debbugs:9312
2011-09-18 09:36:20 +02:00
Eli Zaretskii
7debb7d853 src/xdisp.c: Revert inadvertently committed changes. 2011-09-18 03:36:10 -04:00
Eli Zaretskii
a1674f0b8f src/.gdbinit (pgx): Fix references to fields of `struct glyph'. 2011-09-18 03:33:04 -04:00
Chong Yidong
8c0f49f09c * lisp/replace.el (occur-mode-map): Rebind occur-edit-mode to "e".
(occur-edit-mode-map): Bind C-c C-c to occur-cease-edit and C-o to
occur-mode-display-occurrence.
(occur-edit-mode): Add usage message.
(occur-cease-edit): New command.
(occur-after-change-function): Use text properties to find the
position of the prefix text.
(occur-engine): Set stickiness of prefix text properties.

Fixes: debbugs:8463
2011-09-17 17:28:17 -04:00
Chong Yidong
b8f0a954b8 * doc/lispref/tips.texi: Don't bind a key sequence ending in C-g.
Suggested by Edward O'Connor.
2011-09-17 15:49:57 -04:00
Glenn Morris
8f1383f708 complete-tag fix for bug#9526
* lisp/progmodes/etags.el (complete-tag):
Fix call to completion-in-region. (cf info-complete).
2011-09-17 12:05:52 -07:00
Sven Joachim
0d26c1aa30 * doc/man/emacs.1: Escape a dash. 2011-09-17 11:43:04 -07:00
Eli Zaretskii
fbfb6dd4fd Fix bug #9530 with incorrect display of zero-width stretch.
src/xdisp.c (produce_stretch_glyph): Another fix for changes made on
 2011-08-30T17:32:44Z!eliz@gnu.org.
2011-09-17 21:21:24 +03:00
Eli Zaretskii
1137e8b8eb Fix bug #9470 with slow redisplay in huge single-paragraph buffers.
src/bidi.c (MAX_PARAGRAPH_SEARCH): New macro.
 (bidi_find_paragraph_start): Search back for paragraph beginning
 at most MAX_PARAGRAPH_SEARCH lines; if not found, return BEGV_BYTE.
 (bidi_move_to_visually_next): Only trigger paragraph-related
 computations when the last character is a newline or at EOB, not
 just any NEUTRAL_B.
 src/xdisp.c (reseat_at_next_visible_line_start): Keep information
 about the current paragraph and restore it after the call to
 reseat.
2011-09-17 18:18:56 +03:00
Juanma Barranquero
8d5ed89901 Fix typos. 2011-09-17 14:19:04 +02:00
Juri Linkov
744ba0e3ee * lisp/textmodes/ispell.el (ispell-word): Add to the error message
the word, ispell program name and current dictionary.
(ispell-tex-arg-end): Capitalize "error" in the error message.

Fixes: debbugs:9121
2011-09-17 15:07:50 +03:00
Lars Magne Ingebrigtsen
d1fbe1c393 mm-decode.el (mm-inline-media-tests): Support imagemagick images. 2011-09-17 12:02:10 +00:00
Andreas Schwab
d9bbf40098 * lisp/emacs-lisp/bytecomp.el (byte-compile-lapcode): Fix overflow
check.  (Bug#4251)
2011-09-17 11:29:01 +02:00
Eli Zaretskii
eddf142cfa Fix bug #9525 with indexing most-positive/negative-fixnum.
doc/lispref/numbers.texi (Integer Basics): Add indexing for
 most-positive-fixnum and most-negative-fixnum.
2011-09-17 11:18:48 +03:00
Eli Zaretskii
bb187662be Fix bug #9524 with cursor positioning on display strings in truncated lines.
src/xdisp.c (set_cursor_from_row): Don't invoke special treatment of
 truncated lines if point is covered by a display string.
2011-09-17 11:09:45 +03:00
Lars Magne Ingebrigtsen
540e44dbc8 Indent. 2011-09-17 06:53:25 +02:00
Juri Linkov
8da11505d3 lisp/window.el (window-safe-min-height, window-safe-min-width): Fix typos.
Fixes: debbugs:9522
2011-09-17 02:46:59 +02:00
Sven Joachim
a91adc7e1f lisp/window.el (window-min-width, window-state-put): Fix typos (bug#9522). 2011-09-17 02:42:13 +02:00
Paul Eggert
4768be09c9 Remove inadvertent x permissions from 4 images. 2011-09-16 12:49:18 -07:00
Paul Eggert
2e621251ca * xselect.c: Relax test for outgoing X longs (Bug#9498).
(cons_to_x_long): New function.
(lisp_data_to_selection_data): Use it.  Correct the test for
short-versus-long data; it was negated.  Break out of vector
loop, for efficiency, when a long datum is discovered.
2011-09-16 10:49:29 -07:00
Eli Zaretskii
064f328a6a Fix bug #971 with next/previous-line when goal-column is set.
lisp/simple.el (line-move): If goal-column is set, move by logical
 lines, not by display lines.
 (next-line, previous-line, goal-column, line-move-visual): Doc fix
 to reflect the above change.
2011-09-16 20:15:16 +03:00
Stefan Monnier
91a15bc634 * src/eval.c (Fquote): Document its non-consing behavior.
Fixes: debbugs:9482
2011-09-16 10:14:48 -04:00
Stefan Monnier
e69df51669 * lisp/image.el (imagemagick-register-types): Use regexp-opt. 2011-09-16 09:46:42 -04:00
Eli Zaretskii
b41c3a3565 Fix a compilation error with MinGW GCC 3.x in tiff_handler.
src/image.c (tiff_handler): Work around a bug in MinGW GCC 3.x (see
 GCC PR/17406) by declaring this function with external scope.
2011-09-16 13:25:39 +03:00
Paul Eggert
7812ba2dea * editfns.c (Fformat): Fix bug in text-property fix (Bug#9514).
Don't mishandle (length (format "%%")) and (format "%4000s%%" "").
2011-09-15 11:11:37 -07:00
Paul Eggert
4c12272509 Fix my ChangeLog entry. 2011-09-15 10:41:25 -07:00
Eli Zaretskii
32256c7b2b Fix a typo in comment from 2011-09-15T15:41:03Z!eliz@gnu.org. 2011-09-15 20:37:16 +03:00
Andreas Schwab
cf7edc2a6e * src/editfns.c (Fformat): Correctly handle text properties on "%%". 2011-09-15 18:56:07 +02:00
Eli Zaretskii
bd01620e01 Add comments about special meaning of TAB characters in compositions.
src/xterm.c (x_draw_composite_glyph_string_foreground):
 src/w32term.c (x_draw_composite_glyph_string_foreground):
 src/term.c (encode_terminal_code):
 src/composite.c (composition_update_it, get_composition_id):
 src/xdisp.c (get_next_display_element)
 (fill_composite_glyph_string): Add comments about special meaning
 of TAB characters in a composition.
2011-09-15 19:22:58 +03:00
Paul Eggert
a02719a326 * editfns.c (Fformat): Fix off-by-1 bug for "%%b" (Bug#9514).
This occurs when processing a multibyte format, which can happen
when using 'eval'.  Problem reported by Wolfgang Jenker.
2011-09-15 09:10:37 -07:00
Johan Bockgård
72589a3cee Fix bug #9495 with cursor positioning on truncated lines.
Patch by Johan Bockgוrd <bojohan@gnu.org>

 src/xdisp.c (try_cursor_movement): Only check for exact match if
 cursor hpos found by set_cursor_from_row is valid.  (Bug#9495)
2011-09-15 19:02:49 +03:00
Eli Zaretskii
983a899097 xdisp.c (hscroll_window_tree): Sync comment with the code. 2011-09-15 18:41:03 +03:00
Chong Yidong
cbb0f9ab98 Make the user customizable display-buffer variable empty by default.
* lisp/window.el (display-buffer-base-action): Rename from
display-buffer-default-action.  Make default value empty.
(display-buffer-overriding-action): Convert to defvar.
(display-buffer-fallback-action): New var.
2011-09-15 11:12:15 -04:00
Glenn Morris
39b3d70b17 Auto-commit of generated files. 2011-09-15 06:18:44 -04:00
Lars Magne Ingebrigtsen
7985478fe5 gnus-sum.el (gnus-summary-read-group-1): Bump the "Retrieving" message level. 2011-09-15 05:46:40 +00:00
Glenn Morris
088f329c33 * configure.in: (C_SWITCH_X_SYSTEM): Enable GNUstep to find its headers. 2011-09-14 20:01:25 -07:00
Glenn Morris
0cc87afbdb Make the GNUstep port at least be able to configure.
Ref: http://lists.gnu.org/archive/html/emacs-devel/2011-08/msg00938.html

* configure.in: (_NATIVE_OBJC_EXCEPTIONS): New AC_DEFINE.
(GNU_OBJC_CFLAGS): Add -fobjc-exceptions when needed.
2011-09-14 19:32:55 -07:00
Chong Yidong
92fa95ad88 * doc/emacs/package.texi (Package Menu): Add package-menu-mark-upgrades. 2011-09-14 22:10:52 -04:00
Chong Yidong
d770725a3d Add package-menu-mark-upgrades to the Package Menu menu bar map. 2011-09-14 22:05:17 -04:00
Chong Yidong
25322144fc Add an "mark upgradable packages" command to Package Menu mode.
* lisp/emacs-lisp/package.el (package-alist): Fix risky-local-variable
declaration.
(package--add-to-archive-contents): If there is a duplicate entry
with an older version, remove it.
(package-menu-mark-delete, package-menu-mark-install)
(package-menu-mark-unmark): Make unused args optional.
(package-menu-mark-obsolete-for-deletion): Use
package-menu-get-status instead of a regexp search.
(package-menu-get-status): Use tabulated-list-entry.
(package-menu-mark-upgrades): New command.
(package-menu-mode-map): Bind it to U.
(package-menu-execute): Do installation before deletion.
(package-menu-refresh, package-menu-execute): Use derived-mode-p
instead of checking major-mode.
(package-menu--find-upgrades): New function.
2011-09-14 21:57:54 -04:00
Katsumi Yamaoka
d5fdf93f87 message.el (message-read-from-minibuffer): Make abbrev expansion work. 2011-09-15 01:08:08 +00:00
Lars Magne Ingebrigtsen
65a046c491 Update the process marker so that the "broken by peer" status message is inserted in the right place. 2011-09-15 00:57:57 +02:00
Lars Magne Ingebrigtsen
7520339cd1 (smtpmail-send-command): Don't include AUTH passwords in the log buffer 2011-09-14 23:59:50 +02:00
Paul Eggert
1c14176cfd Remove unused external symbols.
* dispextern.h (calc_pixel_width_or_height): Remove decl.
* xdisp.c (calc_pixel_width_or_height): Now static.
* doprnt.c (exprintf) [! (HAVE_X_WINDOWS && USE_X_TOOLKIT)]: Remove.
* indent.c (check_display_width):
* w32term.c: Fix comment to match code.
* xterm.c, xterm.h (x_catching_errors): Remove.
2011-09-14 14:45:51 -07:00
Stefan Monnier
3fe48822c3 * textmodes/bibtex.el (bibtex-complete-string-cleanup)
(bibtex-complete-crossref-cleanup): Adjust to accommodate needs of
bibtex-completion-at-point-function.
(bibtex-completion-at-point-function): Use them.
2011-09-14 17:43:36 -04:00
Stefan Monnier
1b8b395447 * newcomment.el (comment-add, comment-valid-prefix-p): Docfix. 2011-09-14 17:21:59 -04:00
Stefan Monnier
d3c309545b * mpc.el (mpc-constraints-tag-lookup): New function.
(mpc-constraints-restore): Use it to make jumping to "album=Foo" apply
also to browser "album|playlist".
2011-09-14 17:20:24 -04:00