1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-17 10:06:13 +00:00
Commit Graph

93988 Commits

Author SHA1 Message Date
Stefan Monnier
2372f27819 * files.el (auto-mode-case-fold): Change default to t. 2010-03-30 21:51:54 -04:00
Katsumi Yamaoka
1d4d7664d7 (MIME Commands): Update description of gnus-article-browse-html-article. 2010-03-31 00:08:42 +00:00
Eli Zaretskii
82043cfbb3 Restore original behavior of move_it_in_display_line_to when !bidi_p.
xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
 Restore original behavior when the iterator is not bidi_p.
2010-03-30 15:16:49 -04:00
Dan Nicolaescu
b5dd0ae7be * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern. 2010-03-30 10:40:04 -07:00
Juri Linkov
0ef84fc806 * replace.el (occur-accumulate-lines): Move occur-engine related
functions `occur-accumulate-lines' and `occur-engine-add-prefix'
to be located after `occur-engine'.
2010-03-30 19:38:45 +03:00
Eli Zaretskii
bd924a5d6c Fix a crash of I-search in a bidi-reordered buffer.
bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
 are outside the range of cached character positions.
2010-03-30 19:29:02 +03:00
Juri Linkov
2223a1b334 * dired-x.el (dired-omit-mode): Doc fix. 2010-03-30 19:10:14 +03:00
Juri Linkov
dc2d2590b2 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.
2010-03-30 19:03:08 +03:00
Juri Linkov
47c88c067f * replace.el (occur-accumulate-lines): Fix a bug where the first
context line at the beginning of the buffer was missing.
2010-03-30 18:44:50 +03:00
Juanma Barranquero
3580374b8a * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h. 2010-03-30 14:15:45 +02:00
Eli Zaretskii
a8d11bd341 bidi.c: Update to GPLv3. 2010-03-30 13:02:24 +03:00
Eli Zaretskii
b118e65f9d bidi.c: Update Copyright years. 2010-03-30 12:55:42 +03:00
Eli Zaretskii
a7b0282034 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.
2010-03-30 05:13:07 -04:00
Eli Zaretskii
4d6ea387e7 Removed src/ChangeLog.bidi from bzr. 2010-03-30 05:02:07 -04:00
Katsumi Yamaoka
82fc79808b 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.
2010-03-30 04:44:38 +00:00
Katsumi Yamaoka
20c0b2cea2 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.
2010-03-30 04:03:00 +00:00
Dan Nicolaescu
32a8894e5b 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.
2010-03-29 19:47:23 -07:00
Nick Roberts
146b8b16f3 *** empty log message *** 2010-03-30 13:22:34 +13:00
Chong Yidong
9326ba2682 * 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.
2010-03-29 19:18:48 -04:00
Eli Zaretskii
f4b6ba46b8 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.
2010-03-29 08:26:24 -04:00
Katsumi Yamaoka
9d9ef8e860 (mm-add-meta-html-tag): Fix regexp matching meta tag. 2010-03-29 10:16:37 +00:00
Katsumi Yamaoka
afae6cd428 2010-03-29 Teodor Zlatanov <tzz@lifelogs.com>
* auth-source.el (auth-source-pick): Fix for non-secrets specifier.
2010-03-29 09:28:20 +00:00
Katsumi Yamaoka
bd3e840f41 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'.
2010-03-28 23:55:59 +00:00
Katsumi Yamaoka
fb178e4c72 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.
2010-03-28 23:52:01 +00:00
Nick Roberts
40f0529d4e Regenerate ldefs-boot.el. 2010-03-29 10:33:43 +13:00
Chong Yidong
f6f8aa1251 Fix for `compile' (Bug#5771).
* progmodes/compile.el (compilation-start): Fix regexp detection
of initial cd command (Bug#5771).
2010-03-28 15:51:55 -04:00
Chong Yidong
7ed287b581 * find-dired.el (find-dired): Use read-directory-name (Bug#5777). 2010-03-28 15:31:27 -04:00
Glenn Morris
11700c50ae * gdb-mi.el: Add 2010 to copyright years. 2010-03-28 12:22:52 -07:00
Eli Zaretskii
c0546589ab 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.
2010-03-28 11:18:10 -04:00
Eli Zaretskii
e7dbdb6dfc Merge from mainline. 2010-03-28 09:04:11 -04:00
Nick Roberts
22ef194402 emacs.texi (Top): Update node names to those in building.texi. 2010-03-28 17:00:37 +13:00
Nick Roberts
691cf4a0a2 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
2010-03-28 02:27:43 +13:00
Eli Zaretskii
31f191b3a2 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.
2010-03-27 15:01:22 +03:00
Eli Zaretskii
2201e7e2be 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".
2010-03-27 13:49:18 +03:00
Eli Zaretskii
5b5922f52f Fix a typo in a comment. 2010-03-27 13:36:12 +03:00
Chong Yidong
649dbf36cd * process.c (Fmake_network_process): Don't apply Bug#5173 fix for Windows. 2010-03-26 20:45:32 -04:00
YAMAMOTO Mitsuharu
cad4261fd3 Don't call turn_on_atimers around `connect' (Bug#5723). 2010-03-25 17:56:15 +09:00
Helmut Eller
cd591dbccd Call select' for interrupted connect' rather than creating new socket (Bug#5173). 2010-03-25 17:48:52 +09:00
Glenn Morris
b23caf7524 Close bug#5755.
* desktop.el (desktop-save-buffer-p): Don't mistakenly include
all dired buffers, even tramp ones.
2010-03-24 23:18:17 -07:00
Ted Zlatanov
89734fb6f6 Fix wrong variable name.
(url-http-parse-headers): Fix wrong variable name.
2010-03-24 20:14:42 -05:00
Stefan Monnier
18c812bde5 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.
2010-03-24 20:06:08 -04:00
Stefan Monnier
9586c41ae5 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.
2010-03-24 19:56:43 -04:00
Stefan Monnier
e867cb5d30 Merge from `emacs-23'. 2010-03-24 14:02:56 -04:00
Stefan Monnier
b2b8574b8d * vc-dir.el (vc-dir-headers): Abbreviate the working dir. 2010-03-24 13:33:39 -04:00
Stefan Monnier
efee6a6d9c (makefile-rule-action-regex): Backtrack less.
(makefile-make-font-lock-keywords): Adjust rule since submatch 1 may
not be present any more.
2010-03-24 11:57:16 -04:00
Sam Steingold
5f2484c238 fix a typo in last patch 2010-03-24 09:41:07 -04:00
Ted Zlatanov
1e9d758c2f 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.
2010-03-24 04:30:28 -05:00
Glenn Morris
7e26396796 * vc-bzr.el (vc-bzr-log-edit-mode): Add --fixes support to
log-edit-before-checkin-process.
2010-03-23 23:32:45 -07:00
Glenn Morris
7bbe8d5a11 * cedet/ede/project-am.el (ede-shell-run-something): Declare. 2010-03-23 20:53:32 -07:00
Glenn Morris
5ac92c5f31 * vc.el (vc-modify-change-comment): Pass MODE to vc-start-logentry. 2010-03-23 20:38:17 -07:00