1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-27 07:37:33 +00:00
Commit Graph

102456 Commits

Author SHA1 Message Date
Chong Yidong
e4ed06f12b Delete record-buffer, and rename unrecord-buffer to bury-buffer-internal.
* lisp/window.el (bury-buffer, quit-window): Use bury-buffer-internal.

* src/buffer.c (Fbury_buffer_internal): Rename from Funrecord_buffer.
Change return value to nil.
(Frecord_buffer): Delete unused function.
2011-08-24 20:45:23 -04:00
Glenn Morris
e5f1c99e95 Minor smtpmail.el fixes.
* lisp/mail/smtpmail.el (smtpmail-smtp-user): Add version: tag.
(smtpmail-via-smtp): Handle nil response from smtp.
2011-08-24 20:41:03 -04:00
Paul Eggert
011ba6eaac Merge from trunk. 2011-08-24 14:20:36 -07:00
Juri Linkov
f22f4808a0 More uses of error' and warning' faces.
* lisp/battery.el (battery-update): Use the face `error' instead of
`font-lock-warning-face'.

* lisp/ibuffer.el (ibuffer-marked-face): Change default face from
`font-lock-warning-face' to `warning'.
(ibuffer-deletion-face): Change default face from
`font-lock-type-face' to `error'.

* lisp/proced.el (proced-marked): Inherit from `error' instead of
`font-lock-warning-face'.

Fixes: debbugs:6117
2011-08-24 21:09:18 +03:00
Juri Linkov
6a93965ee8 * lisp/faces.el (success): Change face color from "Green3" to
"ForestGreen" on light background.

Fixes: debbugs:9353
2011-08-24 21:01:40 +03:00
Chong Yidong
1ed43b0999 Rename quit-restore-window into quit-window.
* lisp/window.el (quit-window): Renamed from quit-restore-window.  Use
same arglist as old quit-window.
(frame-auto-delete): Doc fix.

* lisp/view.el (view-mode-exit): Use quit-window.
2011-08-24 13:38:46 -04:00
Eli Zaretskii
8610fe8b84 Fix cursor movement in R2L text within L2R paragraphs.
src/xdisp.c (set_cursor_from_row): Consider candidate row a win if its
 glyph represents a newline and point is on that newline.  Fixes cursor
 positioning on the newline at EOL of R2L text within L2R
 paragraph, and vice versa.
 (try_cursor_movement): Check continued rows, in addition to
 continuation rows.  Fixes unwarranted scroll when point enters a
 continued line of R2L text within an L2R paragraph, or vice versa.
 (cursor_row_p): Consider the case of point being equal to
 MATRIX_ROW_END_CHARPOS.  Prevents cursor being stuck when moving
 from the end of a short line to the beginning of a continued line
 of R2L text within L2R paragraph.
 (RECORD_MAX_MIN_POS): For max_pos, use IT_CHARPOS even for
 composed characters.
2011-08-24 18:51:56 +03:00
Eli Zaretskii
5980d4c6db Fix current-bidi-paragraph-direction and its doc.
src/xdisp.c (Fcurrent_bidi_paragraph_direction): For unibyte
 buffers, return left-to-right.
 doc/lispref/display.texi (Bidirectional Display): Document return value in
 buffers that are not bidi-reordered for display, and in unibyte
 buffers.
2011-08-24 14:49:54 +03:00
Juri Linkov
11dcdbb283 "C-s M-p" brings the tip of the search ring.
* lisp/isearch.el (isearch-ring-adjust1): Start visiting previous
search strings from the index 0 (-1 + 1) instead of 1 (0 + 1).
(isearch-repeat, isearch-edit-string): Call `isearch-ring-adjust1'
for empty search string (when the last search string is reused
automatically) to adjust the isearch ring to the last element and
prepare the correct index for further M-p commands.

Fixes: debbugs:9185
2011-08-24 12:40:58 +03:00
Eli Zaretskii
f67cdd7f25 Minor changes in bidi.c.
src/bidi.c (bidi_check_type): Use xassert.
 (bidi_cache_iterator_state): Update the disp_pos and disp_prop_p
 members.
2011-08-24 10:46:00 +03:00
Kenichi Handa
fd294c6932 merge trunk 2011-08-24 16:35:02 +09:00
Kenichi Handa
de62b4dfd0 international/ucs-normalize.el: If decomposition property of CHAR is the default one (i.e. a list of CHAR itself), treat it as nil. 2011-08-24 16:33:55 +09:00
Steve Chapel
c1ec8ad04d * etc/refcards/refcard.tex: Add a few more commands. (tiny change)
Fixes: debbugs:9343
2011-08-24 00:31:35 -07:00
Stefan Monnier
963b492b63 * lisp/mpc.el (mpc--proc-filter): Don't signal mpc-proc-error since signals
from process filters aren't reliably transmitted to the surrounding
accept-process-output.
(mpc-proc-check): New function.
(mpc-proc-sync): Use it

Fixes: debbugs:8293
2011-08-23 21:55:10 -04:00
Stefan Monnier
93b6b5e15d * lisp/emacs-lisp/eieio.el (eieio-defmethod, eieio-defgeneric):
Add compatibility functions.

Fixes: debbugs:9313
2011-08-23 14:53:51 -04:00
Eli Zaretskii
904215d227 cus-start.el: Add :version tag to bidi-paragraph-direction. 2011-08-23 18:53:46 +03:00
Eli Zaretskii
b177498a8a cus-start.el: Add entry for bidi-paragraph-direction. 2011-08-23 18:21:19 +03:00
Eli Zaretskii
bca633fb29 Followup for character properties in 2011-08-23T11:48:07Z!handa@m17n.org.
src/bidi.c (bidi_get_type): Abort if we get zero as the bidi type of
 a character.
 admin/unidata/unidata-gen.el (unidata-prop-alist): Update the default
 values of bidi-class according to DerivedBidiClass.txt from the
 latest UCD.
 lisp/international/uni-bidi.el: Regenerated.
 doc/lispref/nonascii.texi (Character Properties): Document the values for
 unassigned codepoints.
2011-08-23 17:45:14 +03:00
Chong Yidong
4a5885a74a * src/nsfont.m (ns_otf_to_script): Fix typo. 2011-08-23 10:41:07 -04:00
Kenichi Handa
821ff7208c merge trunk 2011-08-23 20:49:03 +09:00
Kenichi Handa
0902a04edd Fix default values of character properties. 2011-08-23 20:48:07 +09:00
Eli Zaretskii
8ddde6516c Fix bug #8874 with recentering and header line under scroll-conservatively.
src/xdisp.c (redisplay_window): When computing centering_position,
 account for the height of the header line.
2011-08-23 13:35:47 +03:00
Martin Rudalics
3bbf23bc31 Fix message in help-window-setup (Bug#9341).
* help.el (help-window-setup): Fix message displayed when other
window is reused.  (Bug#9341)
2011-08-23 11:31:54 +02:00
Eli Zaretskii
425cc014ac Fix crashes with completion and composed characters.
src/dispnew.c (buffer_posn_from_coords): Use buf_charpos_to_bytepos
 instead of CHAR_TO_BYTE.  Fixes a crash when a completion
 candidate is selected by the mouse, and that candidate has a
 composed character under the mouse.
2011-08-23 11:38:29 +03:00
Eli Zaretskii
1a2e6670cf Fix pos-visible-in-window-p for zero-column composed character.
src/xdisp.c (x_produce_glyphs): Set it->nglyphs to 1.  Fixes pixel
 coordinates reported by pos-visible-in-window-p for a composed
 character in column zero.
2011-08-23 10:01:25 +03:00
Stefan Monnier
1802e44433 * lisp/shell.el (shell-completion-vars): Set pcomplete-arg-quote-list.
* lisp/pcomplete.el (pcomplete-quote-argument): Fix thinko.

Fixes: debbugs:9161
2011-08-23 01:25:17 -04:00
Stefan Monnier
b3fd59bd98 * lisp/pcomplete.el (pcomplete-parse-comint-arguments): Fix inf-loop.
Mark obsolete.
* lisp/shell.el (shell-parse-pcomplete-arguments): New function.
(shell-completion-vars): Use it instead.

Fixes: debbugs:9160
2011-08-23 01:21:09 -04:00
Stefan Monnier
8b76d6f8ea * src/cmds.c (Fself_insert_command): Mention post-self-insert-hook. 2011-08-22 23:09:59 -04:00
Stefan Monnier
867cab7493 * lisp/progmodes/sh-script.el (sh-maybe-here-document): Disable magic in
strings and comments.

Fixes: debbugs:9333
2011-08-22 18:10:21 -04:00
Stefan Monnier
4eb613489b * lisp/emacs-lisp/debug.el (debug-arglist): New function.
(debug-convert-byte-code): Use it.  Handle lexical byte-codes.
(debug-on-entry-1): Handle interpreted closures.

Fixes: debbugs:9120
2011-08-22 17:16:46 -04:00
Eli Zaretskii
dac347dd4a Fix vertical cursor motion under bidi on auto-composed characters.
src/xdisp.c (BUFFER_POS_REACHED_P): If this is a composition,
 consider it a hit if to_charpos is anywhere in the range of the
 composed buffer positions.
2011-08-22 20:00:40 +03:00
Juri Linkov
4d993e7b54 * etc/compilation.txt: Add more samples of output and non-output switches (bug#9319). 2011-08-22 16:08:35 +03:00
Eli Zaretskii
e59e73d83f Back out inadvertent changes in minibuffer.el. 2011-08-22 15:58:37 +03:00
Juri Linkov
56ee679c7f * lisp/progmodes/compile.el (compilation-mode-font-lock-keywords):
Revert regexp that highlights output switches to its old
pre-2010-10-28 value and remove one `?' from it (bug#9319).
2011-08-22 15:46:45 +03:00
Juri Linkov
262a14396d * lisp/progmodes/grep.el (grep-process-setup): Use `buffer-modified-p'
to check for empty output.

Fixes: debbugs:9226
2011-08-22 12:54:38 +03:00
Chong Yidong
f13f86fbf2 Fix some word/symbol classifications in scheme-mode's syntax table.
* lisp/progmodes/scheme.el (scheme-mode-syntax-table): Don't use
symbol-constituent as the default, as that stops font-lock from
working properly.

Fixes: debbugs:8843
2011-08-21 23:38:30 -04:00
Chong Yidong
e013fb340c Fix animated gif segfault and frame clearing bug.
* src/image.c (gif_load): Don't assume that each subimage has the same
dimensions as the base image.  Handle disposal method that is
"undefined" by the gif spec.

Fixes: debbugs:9335
2011-08-21 22:34:23 -04:00
Lars Magne Ingebrigtsen
138c0212ac Merge changes made in Gnus trunk.
nnmail.el (nnmail-get-new-mail-1): If one mail source bugs out, continue on and do the clean-up phase (bug#9188).
gnus-sum.el (gnus-summary-expire-articles): When expiring articles, just ignore groups that can't be opened instead of erroring out (bug#9225).
gnus-art.el (gnus-article-update-date-headers): Flip the default to nil since some many people are fuddy-duddies.
gnus-html.el (gnus-html-image-fetched): Don't cache zero-length images.
2011-08-21 22:10:49 +00:00
Lars Magne Ingebrigtsen
7185da524d (smtpmail-query-smtp-server): Allow `quit'-ing out in case the probe hangs. 2011-08-21 22:29:11 +02:00
Lars Magne Ingebrigtsen
e7f2c178da (smtpmail-try-auth-methods): Expand the secret password. 2011-08-21 22:10:29 +02:00
Lars Magne Ingebrigtsen
c65c96228e Only bind `coding-system-for-*' around the process open call to avoid auth-source side effects. 2011-08-21 21:27:27 +02:00
Chong Yidong
ff98b2dd51 * lisp/term.el (term-mouse-paste): Yank primary selection (Bug#6845). 2011-08-21 13:56:19 -04:00
Chong Yidong
23a8a5ab69 Improve Edebug error for attempting to instrument built-in functions.
* lisp/emacs-lisp/edebug.el (edebug-instrument-function): Use it to
signal an error for built-in functions.

* lisp/emacs-lisp/find-func.el (find-function-noselect): New arg
lisp-only.

Fixes: debbugs:6664
2011-08-21 13:43:31 -04:00
Gnus developers
1e91d50696 Merge changes made in Gnus trunk.
nntp.el (nntp-authinfo-file): Mark as obsolete -- use auth-source instead.
pop3.el (pop3-wait-for-messages): Don't use Gnus functions here.
gnus-util.el (gnus-process-live-p): Copy over compat function.
pop3.el (pop3-wait-for-messages): If the pop3 process dies, stop processing.
nntp.el (nntp-kill-buffer): Kill the process before killing the buffer to avoid warnings.
gnus-agent.el (gnus-agent-expire-done-message): Use %.f as format specified to reduce precision.
2011-08-21 09:39:07 +00:00
Lars Magne Ingebrigtsen
f5e3c5984b Introduce a new variable to allow controlling the SMTP user name
* mail/smtpmail.el (smtpmail-smtp-user): New variable.
(smtpmail-try-auth-methods): Use it.
2011-08-21 06:11:59 +02:00
Chong Yidong
9234aedc26 Backport 2011-06-04T11:02:37Z!deniz@dogan.se (Bug#8799) from trunk 2011-08-20 23:12:09 -04:00
Chong Yidong
39eeb2f7c5 Minor fix to last change. 2011-08-20 23:02:39 -04:00
Chong Yidong
2c34e8dad7 Add some docstrings to font-lock.el.
* font-lock.el (font-lock-fontify-region)
(font-lock-unfontify-region, font-lock-default-fontify-buffer)
(font-lock-default-unfontify-buffer)
(font-lock-default-fontify-region)
(font-lock-default-unfontify-region): Add docstrings (Bug#8624).
2011-08-20 23:00:52 -04:00
Chong Yidong
02e5c89e67 Fix to `ant' compile regexp.
* lisp/progmodes/compile.el (compilation-error-regexp-alist-alist):
  Fix 2011-05-09 change to `ant' regexp.
2011-08-20 22:24:07 -04:00
Chong Yidong
ee31aabc4e Fix error in compilation-error-properties.
* lisp/progmodes/compile.el (compilation-error-properties): Fix
confusion between file struct and message struct (Bug#9319).
2011-08-20 22:07:00 -04:00