1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-02-13 03:06:23 -08:00
Commit graph

102704 commits

Author SHA1 Message Date
Stefan Monnier
345083b2cb * lisp/ps-mule.el (ps-mule-plot-string): Don't inf-loop.
* lisp/image-mode.el (image-toggle-display-text)
(image-toggle-display-image): Stay away from evil `intangible'.

Fixes: debbugs:5108
2011-09-19 15:27:30 -04:00
Leo Liu
08d355e3eb Fixes for Occur Edit mode.
* replace.el (occur-revert-arguments): Make it permanent-local.
(occur-mode): Don't call font-lock-defontify.
2011-09-19 14:57:55 -04:00
Chong Yidong
f01da43fd2 Add missing ChangeLog entry for ldap.el change in 2011-09-17T21:28:17Z!cyd@stupidchicken.com. 2011-09-19 14:45:55 -04:00
Stefan Monnier
b6072fa6a4 * lisp/whitespace.el (whitespace-newline-mode): Disable it right.
Fixes: debbugs:9550
2011-09-19 14:06:14 -04:00
Stefan Monnier
85cb5d5706 org/org.el: Add FIXMEs for odd chunks of code 2011-09-19 12:48:36 -04:00
Lars Magne Ingebrigtsen
c5b01d8c63 * .dir-locals.el: Change the debbugs regexp to allow having the bug number as the first thing on a line. 2011-09-19 10:26:50 +02:00
Lars Magne Ingebrigtsen
a4824228fa * lread.c (Fread_from_string): Document what FINAL-STRING-INDEX is.
Fixes: debbugs:9493
2011-09-19 10:25:35 +02:00
Lars Magne Ingebrigtsen
713df35b6d * errors.texi (Standard Errors): Remove apparent placeholder text (bug#9491). 2011-09-19 10:14:13 +02:00
Michael Albinus
443d66962e * net/tramp-sh.el (tramp-inline-compress-commands): Add "xz".
Suggested by Liam Stitt <stittl@cuug.ab.ca>.
2011-09-19 08:53:45 +02:00
Juri Linkov
7cc6e15441 Capitalize non-function content words in menu item strings.
* lisp/buff-menu.el (Buffer-menu-mode-map):
* lisp/dired.el (dired-mode-map):
* lisp/emacs-lisp/lisp-mode.el (emacs-lisp-mode-map)
(lisp-interaction-mode-map):
* lisp/emacs-lisp/package.el (package-menu-mode-map):
* lisp/epa.el (epa-key-list-mode-map):
* lisp/menu-bar.el (menu-bar-showhide-tool-bar-menu)
(menu-bar-options-menu):
* lisp/outline.el (outline-mode-menu-bar-map):
* lisp/vc/vc-bzr.el (vc-bzr-shelve-menu-map, vc-bzr-extra-menu-map):
* lisp/vc/vc-dir.el (vc-dir-menu-map):
* lisp/vc/vc-git.el (vc-git-stash-menu-map, vc-git-extra-menu-map):
Capitalize non-function content words in menu item strings.

* lisp/dired.el (dired-mode-map): Add menu item for
`image-dired-dired-toggle-marked-thumbs'.
2011-09-18 23:43:20 +03:00
Juri Linkov
80302a817e Preserve current isearch case-fold value in `isearch-edit-string'.
* lisp/isearch.el (isearch-edit-string): Bind `isearch-new-case-fold'
to `isearch-case-fold-search' and restore its original value
after the `isearch-mode' call.
2011-09-18 23:28:45 +03:00
Juri Linkov
46c5cf6650 * lisp/progmodes/grep.el (grep-process-setup): Don't check code for 1
because `zgrep' returns 1 for successful matches.

Fixes: debbugs:9226
2011-09-18 23:20:08 +03:00
Juri Linkov
d18b513ba7 * lisp/info.el (Info-extract-menu-node-name): Check the second match
for empty string (second test-case of bug#9528).
(Info-last-preorder): Let-bind `Info-history' to nil to not add
intermediate nodes to the history (first test-case of bug#9528).
2011-09-18 23:14:16 +03:00
Chong Yidong
33ed493bca Fix handling of X resource for window icons.
* src/xfns.c (Fx_create_frame): Handle bitmapIcon resource as a boolean.

* doc/emacs/cmdargs.texi (Icons X): Fix description of Emacs icon.

* doc/emacs/xresources.texi (Table of Resources): Fix documentation of
bitmapIcon.

* doc/lispref/frames.texi (Management Parameters): Fix description of
icon-type parameter.

Fixes: debbugs:9154
2011-09-18 16:01:37 -04:00
Juri Linkov
72753f87ca * lisp/info.el (Info-mode-syntax-table): New variable.
(Info-mode): Set `:syntax-table' to `Info-mode-syntax-table'.

Fixes: debbugs:3312
2011-09-18 22:56:12 +03:00
Juri Linkov
c9384295aa * lisp/info.el (Info-file-supports-index-cookies): Increment
line-beginning-position's arg from 3 to 4 because makeinfo outputs
one more line for long file names.

Fixes: debbugs:4142
2011-09-18 22:49:13 +03:00
Eli Zaretskii
3e62b7e004 Fix bug #9545 with crash in Dired when $ is pressed.
src/xdisp.c (reseat_at_next_visible_line_start): Undo the change made on
 2011-09-17 that saved paragraph information and restored it after
 the call to `reseat'.
2011-09-18 22:02:17 +03:00
Chong Yidong
d473dce830 Fix for uncommentin in Fundamental mode.
* newcomment.el (comment-normalize-vars): If prompting for
comment-start, set comment-start-skip too.

Fixes: debbugs:8424
2011-09-18 14:10:01 -04:00
Eli Zaretskii
c02dcedf1b Fix a bug in :align-to on a TTY when the column is beyond frame width.
src/xdisp.c (produce_stretch_glyph): Don't subtract 1 "pixel" when
 computing width of the stretch on a TTY.
2011-09-18 19:17:40 +03:00
Johan Bockgård
2176854d0f Fix previous fix of Bug#5849.
* icomplete.el (icomplete-mode): Don't set completion-show-inline-help.
(icomplete-minibuffer-setup): Set completion-show-inline-help
locally during icompletion.
2011-09-18 12:13:01 -04:00
Chong Yidong
c940224fe6 Fix yet another woman parser snafu.
* woman.el (woman2-process-escapes): Don't delete unrecognized
escapes (Bug#7843).
2011-09-18 12:03:48 -04:00
Eli Zaretskii
56cd55c849 Fix bug #9530 on a TTY.
src/xdisp.c (display_line): Record maximum and minimum buffer
 positions even if no glyphs were produced (e.g., by a zero-width
 stretch).  Fixes bug#9530 on a TTY.  Under word-wrap, don't record
 buffer positions that will be removed from the glyph row because
 they don't fit.
2011-09-18 18:48:12 +03:00
Chong Yidong
3aace4e4b3 Allow visiting files with malformed prop-lines.
* files.el (inhibit-first-line-modes-regexps): Add image files.
(hack-local-variables-prop-line): Return nil for malformed prop-lines.

Fixes: debbugs:9044
2011-09-18 11:30:10 -04:00
Chong Yidong
5ed99d3685 Merge changes from emacs-23 branch 2011-09-18 11:21:57 -04:00
Eli Zaretskii
9bade7b2d8 src/xdisp.c (reseat_at_next_visible_line_start): Fix last change. 2011-09-18 18:16:47 +03:00
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