Juri Linkov [Tue, 30 Mar 2010 16:03:08 +0000 (19:03 +0300)]
Make occur handle multi-line matches cleanly with context.
http://lists.gnu.org/archive/html/emacs-devel/2010-03/msg01280.html
* replace.el (occur-accumulate-lines): Add optional arg `pt'.
(occur-engine): Add local variables `ret', `prev-after-lines',
`prev-lines'. Use more arguments for `occur-context-lines'.
Set first elem of its returned list to `data', and the second elem
to `prev-after-lines'. Don't print the separator line.
In the end, print remaining context after-lines.
(occur-context-lines): Add new arguments `begpt', `endpt',
`lines', `prev-lines', `prev-after-lines'. Rewrite to combine
after-lines of the previous match with before-lines of the
current match and not overlap them. Return a list with two
values: the output line and the list of context after-lines.
* search.texi (Other Repeating Search): Remove line that `occur'
can not handle multiline matches.
* occur-testsuite.el (occur-tests): Add tests for context lines.
Juri Linkov [Tue, 30 Mar 2010 15:44:50 +0000 (18:44 +0300)]
* replace.el (occur-accumulate-lines): Fix a bug where the first
context line at the beginning of the buffer was missing.
Juanma Barranquero [Tue, 30 Mar 2010 12:15:45 +0000 (14:15 +0200)]
* makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
Eli Zaretskii [Tue, 30 Mar 2010 10:02:24 +0000 (13:02 +0300)]
bidi.c: Update to GPLv3.
Eli Zaretskii [Tue, 30 Mar 2010 09:55:42 +0000 (12:55 +0300)]
bidi.c: Update Copyright years.
Eli Zaretskii [Tue, 30 Mar 2010 09:13:07 +0000 (05:13 -0400)]
Initial support for bidirectional editing.
Makefile.in (obj): Include bidi.o.
(bidi.o): New target.
makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
($(BLD)/bidi.$(O)): New target.
bidi.c: New file.
buffer.h (struct buffer): New members bidi_display_reordering
and bidi_paragraph_direction.
buffer.c (init_buffer_once): Initialize bidi_display_reordering
and bidi_paragraph_direction.
(syms_of_buffer): Declare Lisp variables bidi-display-reordering
and bidi-paragraph-direction.
(Fbuffer_swap_text): Swap the values of
bidi_display_reordering and bidi_paragraph_direction.
dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
(bidi_type_t, bidi_dir_t): New types.
(bidi_saved_info, bidi_stack, bidi_it): New structures.
(struct it): New members bidi_p, bidi_it, paragraph_embedding,
prev_stop, base_level_stop, and eol_pos.
(bidi_init_it, bidi_get_next_char_visually): New prototypes.
(IT_STACK_SIZE): Enlarge to 5.
(struct glyph_row): New member reversed_p.
<string_buffer_position>: Update prototype.
(PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
glyph_row if bidi_it.paragraph_dir == R2L.
(struct glyph): New members resolved_level and bidi_type.
dispnew.c (direct_output_forward_char): Give up if we need bidi
processing or buffer's direction is right-to-left.
(prepare_desired_row): Preserve the reversed_p flag.
(row_equal_p): Compare the reversed_p attributes as well.
xdisp.c (init_iterator): Initialize it->bidi_p. Call
bidi_init_it and set it->paragraph_embedding from the current
buffer's value of bidi_paragraph_direction.
(reseat_1): Initialize bidi_it.first_elt.
(set_iterator_to_next, next_element_from_buffer): Use the value of
paragraph_embedding to determine the paragraph direction.
(set_iterator_to_next): Under bidi reordering, call
bidi_get_next_char_visually. Call bidi_paragraph_init if the
new_paragraph flag is set in the bidi iterator.
(next_element_from_buffer): If bidi_it.first_elt is set,
initialize paragraph direction and find the first character to
display in the visual order. If reseated to a middle of a line,
prime the bidi iterator starting at the line's beginning. Handle
the situation where we overstepped stop_charpos due to
non-linearity of the bidi iteration. Likewise for when we back up
beyond the previous stop_charpos. When moving across stop_charpos,
record it in prev_stop.
(display_line): Set row->end and it->start for the next row to the
next character in logical order. Always extend reversed_p rows to
the end of line, even if they end at ZV. Copy the reversed_p flag
to the next glyph row. Keep calling set_cursor_from_row for
bidi-reordered rows even if we already have a possible candidate
for cursor position. Set row_end after all the row's glyphs have
been produced, by looping over the glyphs. Record the position
after EOL in it->eol_pos, and use it to set end_pos of the last
row produced for a continued line.
<Qright_to_left, Qleft_to_right>: New variables.
(syms_of_xdisp): Initialize and staticpro them.
(string_buffer_position_lim): New function.
(string_buffer_position): Most of code moved to
string_buffer_position_lim. Last argument and return value are
now EMACS_INT; all callers changed.
(set_cursor_from_row): Rewritten to support bidirectional text and
reversed glyph rows.
(text_outside_line_unchanged_p, try_window_id): Disable
optimizations if we are reordering bidirectional text and the
paragraph direction can be affected by the change.
(append_glyph, append_composite_glyph)
(produce_image_glyph, append_stretch_glyph): Set the
resolved_level and bidi_type members of each glyph.
(append_glyph): If the glyph row is reversed, prepend the glyph
rather than appending it.
(handle_stop_backwards): New function.
(reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
(reseat): call handle_stop_backwards to recompute prev_stop and
base_level_stop for the new position.
(handle_invisible_prop): Under bidi iteration, skip invisible text
using bidi_get_next_char_visually. If we are `reseat'ed, init the
paragraph direction. Update IT->prev_stop after skipping
invisible text.
(move_it_in_display_line_to): New variables prev_method
and prev_pos. Compare for strict equality in
BUFFER_POS_REACHED_P.
(try_cursor_movement): Examine all the candidate rows that occlude
point, to return the best match. If rows are bidi-reordered
and point moved backwards, back up to the row that is not a
continuation line, and start looking for a suitable row from
there.
term.c (append_glyph): Reverse glyphs by pre-pending them,
rather than appending, if the glyph_row's reversed_p flag is set.
Set the resolved_level and bidi_type members of each glyph.
.gdbinit (pbiditype): New command.
(pgx): Use it to display bidi level and type of the glyph.
(pitx): Display some bidi information about the iterator.
(prowlims, pmtxrows): New commands.
files.el: Make bidi-display-reordering safe variable for boolean
values.
mule.texi (International): Mention support of bidirectional editing.
(Bidirectional Editing): New section.
HELLO: Reorder Arabic and Hebrew into logical order, and
insert RLM before the opening paren, to make the display more
reasonable. Add setting for bidi-display-reordering in the local
variables section.
NEWS: Mention initial support for bidirectional editing.
Eli Zaretskii [Tue, 30 Mar 2010 09:02:07 +0000 (05:02 -0400)]
Removed src/ChangeLog.bidi from bzr.
Katsumi Yamaoka [Tue, 30 Mar 2010 04:44:38 +0000 (04:44 +0000)]
2010-03-30 Martin Stjernholm <mast@lysator.liu.se>
* mm-decode.el (mm-add-meta-html-tag): Added option to override the
charset.
* gnus-art.el (gnus-article-browse-html-parts): Force the correct
charset into the <meta> tag when the article is encoded to utf-8.
Katsumi Yamaoka [Tue, 30 Mar 2010 04:03:00 +0000 (04:03 +0000)]
2010-03-30 Katsumi Yamaoka <yamaoka@jpl.org>
* gnus-art.el (gnus-article-browse-delete-temp-files): Delete
directories as well.
(gnus-article-browse-html-parts): Work for images that do not specify
file names; delete temp directory when quitting; insert header at the
right place; use file: scheme for image files.
2010-03-30 Eric Schulte <schulte.eric@gmail.com>
* gnus-art.el (gnus-article-browse-html-save-cid-image): New function.
(gnus-article-browse-html-parts): Use it to make temporary cid image
files in addition to html file so that browser may display them.
Dan Nicolaescu [Tue, 30 Mar 2010 02:47:23 +0000 (19:47 -0700)]
Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
* s/usg5-4.h (LIBS_DEBUG):
* s/irix6-5.h (C_DEBUG_SWITCH):
* s/gnu-linux.h (LIBS_DEBUG):
* s/darwin.h (LIBS_DEBUG):
* s/bsd-common.h (LIBS_DEBUG):
* s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
* m/iris4d.h (LIBS_DEBUG):
* m/hp800.h (LIBS_DEBUG): Remove definitions.
* Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
(LIBS_DEBUG): Remove definition.
* configure.in: Remove all references to C_DEBUG_SWITCH.
Nick Roberts [Tue, 30 Mar 2010 00:22:34 +0000 (13:22 +1300)]
*** empty log message ***
Chong Yidong [Mon, 29 Mar 2010 23:18:48 +0000 (19:18 -0400)]
* subr.el: Extend progress reporters to perform "spinning".
(progress-reporter-update, progress-reporter-do-update): Handle
non-numeric value arguments.
(progress-reporter--pulse-characters): New var.
Eli Zaretskii [Mon, 29 Mar 2010 12:26:24 +0000 (08:26 -0400)]
Support MS-Windows build and reversed rows in GUI frames; add initial docs.
doc/emacs/mule.texi (International): Mention support of
bidirectional editing.
(Bidirectional Editing): New section.
etc/HELLO: Reorder Arabic and Hebrew into logical order, and
insert RLM before the opening paren, to make the display more
reasonable. Add setting for bidi-display-reordering in the local
variables section.
lisp/files.el: Make bidi-display-reordering safe variable for
boolean values.
src/xdisp (append_glyph): If the glyph row is reversed, prepend the
glyph rather than appending it.
src/makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
($(BLD)/bidi.$(O)): New target.
Katsumi Yamaoka [Mon, 29 Mar 2010 10:16:37 +0000 (10:16 +0000)]
(mm-add-meta-html-tag): Fix regexp matching meta tag.
Katsumi Yamaoka [Mon, 29 Mar 2010 09:28:20 +0000 (09:28 +0000)]
2010-03-29 Teodor Zlatanov <tzz@lifelogs.com>
* auth-source.el (auth-source-pick): Fix for non-secrets specifier.
Katsumi Yamaoka [Sun, 28 Mar 2010 23:55:59 +0000 (23:55 +0000)]
2010-03-27 Teodor Zlatanov <tzz@lifelogs.com>
* auth.texi (Secret Service API): Add TODO node.
(Help for users): Explain the new source options for `auth-sources'.
Katsumi Yamaoka [Sun, 28 Mar 2010 23:52:01 +0000 (23:52 +0000)]
2010-03-27 Teodor Zlatanov <tzz@lifelogs.com>
* auth-source.el (auth-sources): Change default to be simpler. Explain
about Secret Service API sources. Improve Customize options.
(auth-source-pick): Change to accept any number of search parameters.
Implement fallbacks iteratively, not recursively. Add scoring on the
second pass and sort by score. Call Secret Service API when needed.
(auth-source-user-or-password): Use it. Call Secret Service API
directly when needed to get the user name and the password.
Nick Roberts [Sun, 28 Mar 2010 21:33:43 +0000 (10:33 +1300)]
Regenerate ldefs-boot.el.
Chong Yidong [Sun, 28 Mar 2010 19:51:55 +0000 (15:51 -0400)]
Fix for `compile' (Bug#5771).
* progmodes/compile.el (compilation-start): Fix regexp detection
of initial cd command (Bug#5771).
Chong Yidong [Sun, 28 Mar 2010 19:31:27 +0000 (15:31 -0400)]
* find-dired.el (find-dired): Use read-directory-name (Bug#5777).
Glenn Morris [Sun, 28 Mar 2010 19:22:52 +0000 (12:22 -0700)]
* gdb-mi.el: Add 2010 to copyright years.
Eli Zaretskii [Sun, 28 Mar 2010 15:18:10 +0000 (11:18 -0400)]
Fix glyph_row reversed_p flag in empty lines between paragraphs.
bidi.c (bidi_get_next_char_visually): Improve commentary.
dispextern.h (PRODUCE_GLYPHS): Set the reversed_p flag in the
iterator's glyph_row here.
xdisp.c (handle_invisible_prop, set_iterator_to_next)
(next_element_from_buffer): Don't set the reversed_p flag in the
iterator's glyph_row here.
Eli Zaretskii [Sun, 28 Mar 2010 13:04:11 +0000 (09:04 -0400)]
Merge from mainline.
Nick Roberts [Sun, 28 Mar 2010 04:00:37 +0000 (17:00 +1300)]
emacs.texi (Top): Update node names to those in building.texi.
Nick Roberts [Sat, 27 Mar 2010 13:27:43 +0000 (02:27 +1300)]
Restore GDB/MI fuctionality removed by 2009-12-29T07:15:34Z!nickrob@snap.net.nz:
added:
lisp/progmodes/gdb-mi.el
removed:
lisp/progmodes/gdb-ui.el
modified:
doc/emacs/building.texi
doc/emacs/emacs.texi
etc/NEWS
lisp/Makefile.in
lisp/progmodes/gud.el
Eli Zaretskii [Sat, 27 Mar 2010 12:01:22 +0000 (15:01 +0300)]
Enclose the argument of "-l" in quotes.
makefile.w32-in ($(TIT), $(MISC_DIC), leim-list.el): Enclose the
argument of "-l" in $(ARGQUOTE), in case it includes blanks or
other special characters.
Eli Zaretskii [Sat, 27 Mar 2010 10:49:18 +0000 (13:49 +0300)]
Fix the MSDOS build as fallout from the latest Makefile.in changes.
config.bat <lib-src>: Edit out lines that begin with several #
characters.
msdos/sedlisp.inp (VPATH): Don't edit, no longer needed.
(lisp, srcdir): Adapt to lisp/Makefile.in changes.
(abs_top_builddir): New edit.
msdos/sed3v2.inp (KRB4LIB, DESLIB, KRB5LIB, CRYPTOLIB, COM_ERRLIB)
(LIBHESIOD, LIBRESOLV, LIBS_MAIL): Edit to empty values.
msdos/sed3.inp (KRB4LIB, DESLIB, KRB5LIB, CRYPTOLIB, COM_ERRLIB)
(LIBHESIOD, LIBRESOLV, LIBS_MAIL): Edit to empty values.
msdos/sed1v2.inp (abs_builddir): Edit into "../src".
Eli Zaretskii [Sat, 27 Mar 2010 10:36:12 +0000 (13:36 +0300)]
Fix a typo in a comment.
Chong Yidong [Sat, 27 Mar 2010 00:45:32 +0000 (20:45 -0400)]
* process.c (Fmake_network_process): Don't apply Bug#5173 fix for Windows.
YAMAMOTO Mitsuharu [Thu, 25 Mar 2010 08:56:15 +0000 (17:56 +0900)]
Don't call turn_on_atimers around `connect' (Bug#5723).
Helmut Eller [Thu, 25 Mar 2010 08:48:52 +0000 (17:48 +0900)]
Call `select' for interrupted `connect' rather than creating new socket (Bug#5173).
Glenn Morris [Thu, 25 Mar 2010 06:18:17 +0000 (23:18 -0700)]
Close bug#5755.
* desktop.el (desktop-save-buffer-p): Don't mistakenly include
all dired buffers, even tramp ones.
Ted Zlatanov [Thu, 25 Mar 2010 01:14:42 +0000 (20:14 -0500)]
Fix wrong variable name.
(url-http-parse-headers): Fix wrong variable name.
Stefan Monnier [Thu, 25 Mar 2010 00:06:08 +0000 (20:06 -0400)]
Add "union tags" in mpc.el.
* mpc.el: Remove backward compatibility code.
(mpc-browser-tags): Change default.
(mpc--find-memoize-union-tags): New var.
(mpc-cmd-flush, mpc-cmd-special-tag-p): New fun.
(mpc-cmd-find): Handle the case where the playlist does not exist.
Handle union-tags.
(mpc-cmd-list): Use mpc-cmd-special-tag-p. Handle union-tags.
(mpc-cmd-add): Use mpc-cmd-flush.
(mpc-tagbrowser-tag-name): New fun.
(mpc-tagbrowser-buf): Use it.
(mpc-songs-refresh): Use cond. Move to point-min as a fallback.
Stefan Monnier [Wed, 24 Mar 2010 23:56:43 +0000 (19:56 -0400)]
Misc cleanup.
* progmodes/make-mode.el (makefile-bsdmake-rule-action-regex):
Use replace-regexp-in-string.
(makefile-mode-abbrev-table): Merge defvar and define-abbrev-table.
(makefile-imake-mode-syntax-table): Move init into defvar.
(makefile-mode): Use define-derived-mode.
Stefan Monnier [Wed, 24 Mar 2010 18:02:56 +0000 (14:02 -0400)]
Merge from `emacs-23'.
Stefan Monnier [Wed, 24 Mar 2010 17:33:39 +0000 (13:33 -0400)]
* vc-dir.el (vc-dir-headers): Abbreviate the working dir.
Stefan Monnier [Wed, 24 Mar 2010 15:57:16 +0000 (11:57 -0400)]
(makefile-rule-action-regex): Backtrack less.
(makefile-make-font-lock-keywords): Adjust rule since submatch 1 may
not be present any more.
Sam Steingold [Wed, 24 Mar 2010 13:41:07 +0000 (09:41 -0400)]
fix a typo in last patch
Ted Zlatanov [Wed, 24 Mar 2010 09:30:28 +0000 (04:30 -0500)]
Add a list of HTTP status code symbols and their text, mapped by number.
* url-http.el (url-http-codes): New variable to hold a mapping of
HTTP status codes' numbers, their symbolic name, and their text.
(url-http-parse-headers): Use it, leaving the original numeric
code in a comment.
Glenn Morris [Wed, 24 Mar 2010 06:32:45 +0000 (23:32 -0700)]
* vc-bzr.el (vc-bzr-log-edit-mode): Add --fixes support to
log-edit-before-checkin-process.
Glenn Morris [Wed, 24 Mar 2010 03:53:32 +0000 (20:53 -0700)]
* cedet/ede/project-am.el (ede-shell-run-something): Declare.
Glenn Morris [Wed, 24 Mar 2010 03:38:17 +0000 (20:38 -0700)]
* vc.el (vc-modify-change-comment): Pass MODE to vc-start-logentry.
Glenn Morris [Wed, 24 Mar 2010 03:34:06 +0000 (20:34 -0700)]
* vc-bzr.el, vc-hg.el (log-edit-mode): Declare.
Glenn Morris [Wed, 24 Mar 2010 03:30:53 +0000 (20:30 -0700)]
* vc-dispatcher.el (vc-start-logentry): Doc fix.
(log-view-process-buffer, log-edit-extra-flags): Declare.
Glenn Morris [Wed, 24 Mar 2010 03:27:24 +0000 (20:27 -0700)]
* log-edit.el (log-edit-before-checkin-process): Doc fix.
Glenn Morris [Wed, 24 Mar 2010 03:21:53 +0000 (20:21 -0700)]
* mail-source.el (gnus-message): Declare.
(mail-source-delete-old-incoming): Require gnus-util.
Glenn Morris [Wed, 24 Mar 2010 03:19:15 +0000 (20:19 -0700)]
* cedet/semantic/bovine/c.el (semantic-c-describe-environment):
Consistently check ede-object is bound throughout.
Glenn Morris [Wed, 24 Mar 2010 03:02:42 +0000 (20:02 -0700)]
Close bug#5759.
* ack.texi (Acknowledgments):
* emacs.texi (Acknowledgments): Fix ispell attribution.
Juanma Barranquero [Wed, 24 Mar 2010 00:18:03 +0000 (01:18 +0100)]
Fix typos in Changelog.
Juanma Barranquero [Wed, 24 Mar 2010 00:17:31 +0000 (01:17 +0100)]
Fix typos.
* faces.el (set-face-attribute): Fix typo in docstring.
(face-valid-attribute-values): Reflow docstring.
* cedet/srecode/table.el (srecode-template-table): Fix docstring typo.
Arni Magnusson [Wed, 24 Mar 2010 00:16:45 +0000 (01:16 +0100)]
* frames.texi (Cursor Parameters): Fix typo. (Bug#5760)
Sam Steingold [Tue, 23 Mar 2010 18:22:46 +0000 (14:22 -0400)]
Fix bug#5620: recalculate all markers on compilation buffer
modifications, not on file modifications.
(buffer-modtime): New buffer-local variable:
the buffer modification time, for buffers not associated with files.
(compilation-mode): Create it.
(compilation-filter): Update it.
(compilation-next-error-function): Use it instead of
`visited-file-modtime' for timestamp.
Sam Steingold [Tue, 23 Mar 2010 16:27:10 +0000 (12:27 -0400)]
update author's email
Juri Linkov [Tue, 23 Mar 2010 16:18:52 +0000 (18:18 +0200)]
* occur-testsuite.el: New file.
Juri Linkov [Tue, 23 Mar 2010 16:09:45 +0000 (18:09 +0200)]
Implement Occur multi-line matches.
http://lists.gnu.org/archive/html/emacs-devel/2010-03/msg01044.html
* replace.el (occur): Doc fix.
(occur-engine): Set `begpt' to the beginning of the first line.
Set `endpt' to the end of the last match line. At first, count
line numbers between `origpt' and `begpt'. Split out code from
`out-line' variable to new let-bindings `match-prefix' and
`match-str'. In `out-line' add non-numeric prefix to all
non-first lines of multi-line matches. Finally, count lines
between `begpt' and `endpt' and add to `lines'.
Juri Linkov [Tue, 23 Mar 2010 15:48:09 +0000 (17:48 +0200)]
* replace.el (occur-engine-line): Add optional arg `keep-props'.
(occur-accumulate-lines, occur-engine): Add arg `keep-props'.
Katsumi Yamaoka [Tue, 23 Mar 2010 07:37:09 +0000 (07:37 +0000)]
Synch with Gnus trunk
=====================
2010-03-23 Katsumi Yamaoka <yamaoka@jpl.org>
* gnus-art.el (canlock-verify): Autoload it for Emacs 21.
* message.el (ecomplete-setup): Autoload it for Emacs <23.
* mml-sec.el (mml-secure-cache-passphrase): Default to t that is
password-cache's default if it is not bound.
(mml-secure-passphrase-cache-expiry): Default to 16 that is
password-cache-expiry's default if it is not bound.
* pop3.el (pop3-list): Don't use 3rd arg of `split-string' which is not
available in Emacs 21.
2010-03-23 Teodor Zlatanov <tzz@lifelogs.com>
* auth-source.el (auth-sources): Fix up definition so extra parameters
are always inline.
2010-03-22 Martin Stjernholm <mast@lysator.liu.se>
* nnimap.el (nnimap-verify-uidvalidity): Fixed bug where uidvalidity
wasn't updated after mismatch. Clear cached mailbox info correctly
when uidvalidity changes.
(nnimap-group-prefixed-name): New function to avoid some code
duplication.
(nnimap-verify-uidvalidity, nnimap-group-overview-filename)
(nnimap-request-group): Use it.
(nnimap-retrieve-groups, nnimap-verify-uidvalidity)
(nnimap-update-unseen): Significantly improved speed of Gnus startup
with many imap folders. This is done by caching the group status from
the imap server persistently in a group parameter `imap-status'. (This
was cached before too if `nnimap-retrieve-groups-asynchronous' was set,
but not persistently, so every Gnus startup was still very slow.)
2010-03-20 Teodor Zlatanov <tzz@lifelogs.com>
* auth-source.el: Set up autoloads. Bump to 23.2 because of the
secrets.el dependency.
(auth-sources): Add optional user name. Add secrets.el configuration
choice (unused right now).
2010-03-20 Teodor Zlatanov <tzz@lifelogs.com>
* gnus-sum.el (gnus-summary-make-menu-bar): Let
`gnus-registry-install-shortcuts' fill in the functions.
* gnus-registry.el (gnus-summary-misc-menu): Declare to avoid
warnings.
(gnus-registry-misc-menus): Variable to hold registry mark menus.
(gnus-registry-install-shortcuts): Populate and use it in a
`gnus-summary-menu-hook' lambda, under "Gnus"->"Registry Marks".
2010-03-20 Martin Stjernholm <mast@lysator.liu.se>
* nnimap.el (nnimap-decode-group-name, nnimap-encode-group-name):
In-place substitutions for the group name encoding/decoding.
(nnimap-find-minmax-uid, nnimap-possibly-change-group)
(nnimap-retrieve-headers-progress, nnimap-possibly-change-group)
(nnimap-retrieve-headers-progress, nnimap-request-article-part)
(nnimap-update-unseen, nnimap-request-list)
(nnimap-retrieve-groups, nnimap-request-update-info-internal)
(nnimap-request-set-mark, nnimap-split-to-groups)
(nnimap-split-articles, nnimap-request-newgroups)
(nnimap-request-create-group, nnimap-request-accept-article)
(nnimap-request-delete-group, nnimap-request-rename-group)
(nnimap-acl-get, nnimap-acl-edit): Use them. Replace `mbx' with
`encoded-mbx' for consistency.
(nnimap-close-group): Call `imap-current-mailbox' instead of using the
variable `imap-current-mailbox'.
* gnus-agent.el (gnus-agent-fetch-articles, gnus-agent-fetch-headers)
(gnus-agent-regenerate-group): Use `gnus-agent-decoded-group-name'.
2010-03-20 Bojan Petrovic <bpetrovi@f.bg.ac.rs>
* pop3.el (pop3-display-message-size-flag): Display message size byte
counts during POP3 download.
(pop3-movemail): Use it.
(pop3-list): Implement listing of available messages.
2010-03-20 Mark Triggs <mst@dishevelled.net> (tiny change)
* nnir.el (nnir-get-article-nov-override-function): New function to
override the normal NOV retrieval.
(nnir-retrieve-headers): Use it.
Katsumi Yamaoka [Tue, 23 Mar 2010 07:29:49 +0000 (07:29 +0000)]
Synch with Gnus trunk
=====================
2010-03-22 Teodor Zlatanov <tzz@lifelogs.com>
* gnus/gnus-setup.ast: Add finish links to the top nodes.
* gnus/news-server.ast: Add some trivial validation.
Juri Linkov [Tue, 23 Mar 2010 07:16:57 +0000 (09:16 +0200)]
* replace.el (occur-accumulate-lines, occur-engine):
Use `occur-engine-line' instead of duplicate code.
(occur-engine-line): New function created from duplicate code
in `occur-accumulate-lines' and `occur-engine'.
Juri Linkov [Tue, 23 Mar 2010 07:11:50 +0000 (09:11 +0200)]
* finder.el: Remove TODO tasks.
* info.el (Info-finder-find-node): Add node "all"
with all package info. Handle a list of multiple keywords
separated by comma.
(info-finder): In interactive use with a prefix argument,
use `completing-read-multiple' to read a list of keywords
separated by comma.
Dan Nicolaescu [Tue, 23 Mar 2010 02:47:41 +0000 (19:47 -0700)]
* s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
Dan Nicolaescu [Tue, 23 Mar 2010 02:42:25 +0000 (19:42 -0700)]
* s/netbsd.h: Remove commented out code.
Dan Nicolaescu [Tue, 23 Mar 2010 02:39:19 +0000 (19:39 -0700)]
Simplify LIBS_MACHINE definitions.
* m/hp800.h (LIBS_MACHINE): Remove, same as default.
* m/iris4d.h (LIBS_MACHINE): Likewise.
* m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
* s/aix4-2.h (LIBS_SYSTEM): ... here.
Glenn Morris [Tue, 23 Mar 2010 02:37:11 +0000 (19:37 -0700)]
* textmodes/flyspell.el (sgml-lexical-context): Autoload it. (Bug#5752)
Stefan Monnier [Tue, 23 Mar 2010 00:59:49 +0000 (20:59 -0400)]
Add a new completion style `substring'.
* minibuffer.el (completion-basic--pattern): New function.
(completion-basic-try-completion, completion-basic-all-completions): Use it.
(completion-substring--all-completions)
(completion-substring-try-completion)
(completion-substring-all-completions): New functions.
(completion-styles-alist): New style `substring'.
Dan Nicolaescu [Mon, 22 Mar 2010 19:51:59 +0000 (12:51 -0700)]
Remove dead code dealing with POSIX_SIGNALS.
* atimer.c (set_alarm): Remove dead code, all USG systems define
POSIX_SIGNALS.
* data.c (arith_error): Likewise.
* keyboard.c (input_available_signal, handle_user_signal)
(interrupt_signal): Likewise.
* process.c (sigchld_handler): Likewise.
(create_process): Remove if 0 code. Remove HPUX conditional when
!defined (POSIX_SIGNALS), it cannot be true.
* syssignal.h: Remove USG5_4 and USG conditionals when
!POSIX_SIGNALS, they cannot be true.
Chong Yidong [Mon, 22 Mar 2010 17:28:27 +0000 (13:28 -0400)]
* indent.el (indent-for-tab-command): Doc fix.
Alan Mackenzie [Mon, 22 Mar 2010 17:21:22 +0000 (17:21 +0000)]
cc-engine.el (c-remove-stale-state-cache): Fix off-by-one error. Fixes
bug #5747.
Juanma Barranquero [Mon, 22 Mar 2010 16:56:22 +0000 (17:56 +0100)]
Fix typos.
Juanma Barranquero [Mon, 22 Mar 2010 16:50:29 +0000 (17:50 +0100)]
Fix typos in docstrings.
* image-dired.el (image-dired-display-thumbs): Fix typo in docstring.
(image-dired-read-comment): Doc fix.
* json.el (json-object-type, json-array-type, json-key-type, json-false)
(json-null, json-read-number):
* minibuffer.el (completion-in-region-functions):
* calendar/cal-tex.el (cal-tex-daily-end, cal-tex-number-weeks)
(cal-tex-cursor-week):
* emacs-lisp/trace.el (trace-function):
* eshell/em-basic.el (eshell/printnl):
* eshell/em-dirs.el (eshell-last-dir-ring, eshell-parse-drive-letter)
(eshell-read-last-dir-ring, eshell-write-last-dir-ring):
* obsolete/levents.el (allocate-event, event-key, event-object)
(event-point, event-process, event-timestamp, event-to-character)
(event-window, event-x, event-x-pixel, event-y, event-y-pixel):
* textmodes/reftex-vars.el (reftex-index-macros-builtin)
(reftex-section-levels, reftex-auto-recenter-toc, reftex-toc-mode-hook)
(reftex-cite-punctuation, reftex-search-unrecursed-path-first)
(reftex-highlight-selection): Fix typos in docstrings.
Juanma Barranquero [Mon, 22 Mar 2010 16:37:32 +0000 (17:37 +0100)]
Fix typos in mh-e.
* mh-scan.el (mh-scan-cmd-note-width): Doc fix.
(mh-scan-format-mh, mh-scan-body-regexp, mh-scan-cur-msg-number-regexp)
(mh-scan-cur-msg-number-regexp, mh-scan-date-regexp)
(mh-scan-deleted-msg-regexp, mh-scan-good-msg-regexp)
(mh-scan-msg-format-regexp, mh-scan-msg-format-string)
(mh-scan-msg-number-regexp, mh-scan-rcpt-regexp)
(mh-scan-refiled-msg-regexp, mh-scan-sent-to-me-sender-regexp)
(mh-scan-subject-regexp, mh-update-scan-format)
(mh-msg-num-width-to-column): Fix typos in docstrings.
Juanma Barranquero [Mon, 22 Mar 2010 15:49:52 +0000 (16:49 +0100)]
Fix typos in Gnus.
* message.el (message-interactive): Doc fix.
(message-qmail-inject-args): Reflow.
(message-kill-to-signature): Fix typo in docstring.
* smiley.el (smiley-buffer): Fix typo in docstring.
Stefan Monnier [Mon, 22 Mar 2010 13:33:21 +0000 (09:33 -0400)]
Get rid of .elc files after removal of the corresponding .el.
* Makefile.in (compile-clean): New target.
(compile-main): Use it.
Jan Djärv [Mon, 22 Mar 2010 07:50:40 +0000 (08:50 +0100)]
Makefile.in (compile-main): cd to $(lisp) in a sub-shell, so we
don't do make there. When compiling with separate object dir, there
is no Makefile there.
Jan Djärv [Mon, 22 Mar 2010 07:26:56 +0000 (08:26 +0100)]
bug #5736: Allow X-resource menuBar to take on/off as documented.
* frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
* xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
* dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
* xresources.texi (Table of Resources): Clarify toolBar number
for Gtk+.
* frames.texi (Menu Bars): menuBarLines => menuBar (bug#5736).
Stefan Monnier [Mon, 22 Mar 2010 04:24:25 +0000 (00:24 -0400)]
Get rid of the ELCFILES abomination, again.
* Makefile.in (update-elclist, ELCFILES, compile-last): Remove.
(all, compile): Don't call compile-last.
(compile-main): Build the "elcfiles" list dynamically.
(compile-targets): New (internal) target.
Dan Nicolaescu [Mon, 22 Mar 2010 02:56:56 +0000 (19:56 -0700)]
* keyboard.c (Fset_input_interrupt_mode): Remove code depending on NO_SOCK_SIGIO,
not used anymore.
Chong Yidong [Sun, 21 Mar 2010 22:13:26 +0000 (18:13 -0400)]
* dired.texi (Dired Updating): Document dired-auto-revert-buffer.
Dan Nicolaescu [Sun, 21 Mar 2010 19:59:04 +0000 (12:59 -0700)]
(BSD_SYSTEM, BSD4_2): Remove conditionals, we only
support vax on BSDs.
Dan Nicolaescu [Sun, 21 Mar 2010 19:32:38 +0000 (12:32 -0700)]
* m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
* s/aix4-2.h (ORDINARY_LINK): ... here.
Chong Yidong [Sun, 21 Mar 2010 18:32:19 +0000 (14:32 -0400)]
Document multi-isearch-buffers and tab-always-indent.
* search.texi (Other Repeating Search): Document multi-isearch-buffers
and multi-isearch-buffers-regexp.
* indent.texi (Indentation): Clarify description of
indent-for-tab-command. Document tab-always-indent.
Chong Yidong [Sun, 21 Mar 2010 15:28:53 +0000 (11:28 -0400)]
* processes.texi (Network Processes): Document seqpacket type.
Chong Yidong [Sun, 21 Mar 2010 15:09:29 +0000 (11:09 -0400)]
NEWS: Re-organize Lisp changes for Emacs 23.2.
Andreas Schwab [Sun, 21 Mar 2010 11:57:49 +0000 (12:57 +0100)]
Use absolute directory names substituted by configure
* lisp/Makefile.in (top_srcdir): Define.
(abs_top_builddir): Define.
(srcdir): Don't append `/..'.
(EMACS): Use ${abs_top_builddir}.
(all, compile, compile-always, compile-last): Don't set emacswd.
(update-subdirs, update-authors): Use $(top_srcdir) instead of
$(srcdir).
(lisp): Use $(srcdir) instead of @srcdir@.
* src/Makefile.in (abs_builddir): Define.
(bootstrap_exe): Use it.
(VPATH): Use $(srcdir) instead of @srcdir@.
Andreas Schwab [Sun, 21 Mar 2010 11:27:46 +0000 (12:27 +0100)]
Expand ${bootstrap_exe} before chdir
Juri Linkov [Sun, 21 Mar 2010 10:52:51 +0000 (12:52 +0200)]
Fix message of multi-line occur regexps and multi-buffer header lines.
http://lists.gnu.org/archive/html/emacs-devel/2010-03/msg00457.html
* replace.el (occur-1): Don't display regexp if it is longer
than window-width. Use `query-replace-descr' to display regexp.
(occur-engine): Don't display regexp in the buffer header for
multi-buffer occur. Display a separate header line with total
match count and regexp for multi-buffer occur.
Use `query-replace-descr' to display regexp.
Stefan Monnier [Sat, 20 Mar 2010 21:46:31 +0000 (17:46 -0400)]
Use more relative file and directory names in `lisp' make rules.
* lisp/Makefile.in (EMACS): Arrange for it to work when we chdir.
(setwins, setwins_almost, setwins_for_subdirs):
Don't `cd'; output relative names.
(all, compile, compile-always, compile-last): Set emacswd.
(custom-deps, finder-data, autoloads, update-subdirs, compile-last):
Just cd to the lisp source dir so we can use relative file names.
* src/Makefile.in (bootstrap_exe): Use an absolute name.
Ted Zlatanov [Sat, 20 Mar 2010 19:21:44 +0000 (14:21 -0500)]
Fix unbalanced parenthesis in secrets.el.
Fix parenthesis.
(secrets-enabled): Fix parenthesis.
Stefan Monnier [Sat, 20 Mar 2010 19:04:44 +0000 (15:04 -0400)]
(hide-sublevels): Unfix the paren non-typo! (bug#5738).
Glenn Morris [Sat, 20 Mar 2010 18:17:59 +0000 (11:17 -0700)]
Use faces not variables for font-lock customization in rst.el.
* textmodes/rst.el: (rst-block, rst-external, rst-definition, rst-directive)
(rst-comment, rst-emphasis1, rst-emphasis2, rst-literal, rst-reference):
New faces.
(rst-block-face, rst-external-face, rst-definition-face)
(rst-directive-face, rst-comment-face, rst-emphasis1-face)
(rst-emphasis2-face, rst-literal-face, rst-reference-face):
Make obsolete.
(rst-font-lock-keywords-function): Update for above changes.
Glenn Morris [Sat, 20 Mar 2010 18:13:46 +0000 (11:13 -0700)]
Cosmetic changes to lib-src/Makefile.in.
* Makefile.in (KRB4LIB, DESLIB, KRB5LIB, CRYPTOLIB, COM_ERRLIB)
(LIBHESIOD, LIBRESOLV): Make previous change a bit more friendly by
defining these as Makefile variables.
(LIBS_MOVE): Add LIBS_MAIL into this.
(movemail${EXEEXT}): Just use LIBS_MOVE, not LIBS_MAIL as well.
Chong Yidong [Sat, 20 Mar 2010 17:24:06 +0000 (13:24 -0400)]
Document font-use-system-font.
* cmdargs.texi (Font X): Move most content to Fonts.
* frames.texi (Fonts): New node. Document font-use-system-font.
* emacs.texi (Top):
* xresources.texi (Table of Resources):
* mule.texi (Defining Fontsets, Charsets): Update xrefs.
Eli Zaretskii [Sat, 20 Mar 2010 14:32:32 +0000 (10:32 -0400)]
Finish work on cursor motion in continuation lines.
xdisp.c (set_cursor_from_row): Don't miss a candidate row whose
glyph->charpos is an exact match for point.
(try_cursor_movement): Don't give up if rows are bidi-reordered
and point moved backwards. Instead, back up to the row that is
not a continuation line.
Eli Zaretskii [Sat, 20 Mar 2010 11:14:01 +0000 (07:14 -0400)]
Merge from mainline.
Dan Nicolaescu [Sat, 20 Mar 2010 08:11:59 +0000 (01:11 -0700)]
Remove support for old GNU/Linux using libc version 5.
* m/alpha.h (LINUX_SBRK_BUG): Remove definition.
* emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
Dan Nicolaescu [Sat, 20 Mar 2010 07:57:11 +0000 (00:57 -0700)]
Consolidate redundant definitions in s/bsd-common.h.
* s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
(LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
(LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
doing it in all files that include this one.
* s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
(LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
(LDAV_SYMBOL, KERNEL_FILE): Remove.
* s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
(LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
(LDAV_SYMBOL, KERNEL_FILE): Remove.
* s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
(LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
(LDAV_SYMBOL, KERNEL_FILE): Remove.
Dan Nicolaescu [Sat, 20 Mar 2010 07:09:31 +0000 (00:09 -0700)]
Consolidate redundant definitions.
* s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
it's undefined in all files that include this one.
(POSIX_SIGNALS): Define here instead of doing it in all files that
include this one.
* s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
(POSIX_SIGNALS): Do not define.
* s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
(POSIX_SIGNALS): Do not define.
* s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
(POSIX_SIGNALS): Do not define.
Dan Nicolaescu [Sat, 20 Mar 2010 06:48:13 +0000 (23:48 -0700)]
Remove support for old UNIX System V systems.
* s/unixware.h: Add the contents of s/usg-5-4-2.h.
* s/usg-5-4-2.h: Remove.
* configure.in: Remove support for old UNIX System V systems and
for Unixware on non-x86 machines.
Dan Nicolaescu [Sat, 20 Mar 2010 05:52:55 +0000 (22:52 -0700)]
Remove support for Solaris on PPC and for old versions.
* s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
(LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
that cancel each other.
* s/sol2-3.h:
* s/sol2-4.h:
* s/sol2-5.h: Remove.
* m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
(NO_REMAP): Remove, unused.
(UNEXEC): Move definition ...
* s/aix4-2.h (UNEXEC): ... here.
* configure.in: Remove support for Solaris on PPC and for old versions.