Commit graph

101973 commits

Author SHA1 Message Date
Paul Eggert
f13cae31f1 Use backslashes where DOS requires it. 2011-07-25 11:48:17 -07:00
Paul Eggert
abec06ffd2 Add Bug#. 2011-07-25 10:15:08 -07:00
Paul Eggert
985e4c56b1 Merge from trunk. 2011-07-25 09:41:39 -07:00
Paul Eggert
2eb1f9e6a5 * bidi.c (bidi_dump_cached_states): Fix printf format mismatch.
Found by GCC static checking and --with-wide-int on a 32-bit host.
2011-07-25 09:39:39 -07:00
Paul Eggert
ea8db5520c Merge from trunk. 2011-07-25 09:26:30 -07:00
Eli Zaretskii
2238127283 Fix logic of caching display string positions for bidi display.
src/xdisp.c (compute_display_string_pos): Fix logic of caching
 previous display string position.  Initialize cached_prev_pos to -1.
 Fixes slow-down at the beginning of a buffer.
2011-07-25 18:36:47 +03:00
Deniz Dogan
0f0a88b94c * lisp/image.el (insert-image): Clarifying docstring. 2011-07-25 03:44:10 +02:00
Paul Eggert
ccd80c5525 Merge from trunk. 2011-07-24 15:16:20 -07:00
Paul Eggert
24e0f6b1dc Merge from gnulib, using build-aux to remove clutter.
* m4/largefile.m4: New file, so that Emacs does not mess up when
accessing files with large inode numbers in MacOS X 10.5 and later.
* m4/nocrash.m4: New file, to avoid triggering background debugger
and/or create core dumps during 'configure'.
* build-aux/move-if-change: Renamed from move-if-change.
* build-aux/snippet/arg-nonnull.h: Renamed from arg-nonnull.h.
* build-aux/snippet/c++defs.h: Renamed from c++defs.h.
* build-aux/snippet/warn-on-use.h: Renamed from warn-on-use.h.
* build-aux/snippet/_Noreturn.h: New file, for draft C1X _Noreturn.
* .bzrignore: The autogenerated files compile, config.guess,
config.sub, depcomp, install-sh, and missing are now in build-aux.
* Makefile.in (epaths-force, sync-from-gnulib):
move-if-change is now in build-aux.
(GNULIB_TOOL_FLAGS): Avoid threadlib; this is now a prerequisite
of gnulib's pthread_sigmask module, but Emacs doesn't need it.
(mkdir): install-sh is now in build-aux.
* config.bat: c++defs.h is now in build-aux/snippets.
* configure.in: Specify AC_CONFIG_AUX_DIR with build-aux (the
usual parameter).
* lib/gnulib.mk, m4/gl-comp.m4: Regenerate.
* lib/makefile.w32-in (ARG_NONNULL_H): arg-nonnull.h moved
to build-aux/snippet.
* lib/pthread_sigmask.c, lib/stdlib.in.h, m4/extensions.m4:
* m4/getopt.m4, m4/gnulib-common.m4, m4/pthread_sigmask.m4:
Merge from gnuilib.  This fixes porting bugs on Cygwin, Irix, and
Solaris, enables MacOS extensions, and enables nocrash during
'configure'.
* make-dist: Adjust to new build-aux and build-aux/snippit dirs.
* admin/notes/copyright: The files compile, config.guess, config.sub,
depcomp, install-sh, missing, and move-if-change are now in the
new build-aux subdirectory.  The files arg-nonnull.h, c++defs.h,
and warn-on-use.h are now in build-aux/snippets.  New file
build-aux/snippets/_Noreturn.h.
* leim/Makefile.in (install): install-sh is now in build-aux.
* lib-src/Makefile.in ($(DESTDIR)${archlibdir}): install-sh moved
to build-aux.
* msdos/sedlibmk.inp (CONFIG_CLEAN_VPATH_FILES): Adjust to snippet moves
from top level to build-aux/snippet.
* src/Makefile.in (gl-stamp): move-if-change is now in build-aux.
2011-07-24 15:15:47 -07:00
Andrew Cohen
43a0a4fab7 nnimap.el (nnimap-make-thread-query): Quote message-ids for gmail. 2011-07-24 22:15:15 +00:00
Eli Zaretskii
7daee9109e Fix cursor motion slowdown at the beginning of buffer.
src/xdisp.c (compute_display_string_pos): Fix logic of caching
 previous display string position.  Initialize cached_prev_pos to -1.
2011-07-24 21:19:10 +03:00
Stefan Monnier
14486a1036 * src/xml.c: Fix Lisp_Object/int mixup. 2011-07-24 10:01:58 -04:00
Michael Albinus
0b3f36df8c * net/tramp-sh.el (tramp-barf-unless-okay): Return the value of
`tramp-send-command-and-check' if there is no error.
(tramp-send-command-and-read): Suppress *all* errors if NOERROR.
2011-07-24 11:56:26 +02:00
Eli Zaretskii
f25e39b45a Fix crash at startup under XASSERTS.
src/xfaces.c (check_lface_attrs) [HAVE_WINDOW_SYSTEM]: Allow `nil'
 for attrs[LFACE_FONTSET_INDEX].
2011-07-24 01:30:09 -04:00
Andrew Cohen
47f0b35ef3 Merge changes made in Gnus trunk.
nnir.el (nnir-search-thread): New function to make an nnir group based on a thread query.
gnus-sum.el (gnus-refer-thread-use-nnir): New variable to control use of nnir in thread referral.
 (gnus-summary-refer-thread): Use it.
nnimap.el (nnimap-request-thread): Use it.
2011-07-24 00:19:29 +00:00
Paul Eggert
04c4b52e0a * xml.c (parse_region): Remove unused local
that was recently introduced.
2011-07-23 11:31:25 -07:00
Yair Friedman
c27ac9aedf Improve and expand the Hebrew input methods.
leim/quail/hebrew.el ("hebrew"): Additional key mappings.
 ("hebrew-new", "hebrew-lyx", "hebrew-full")
 ("hebrew-biblical-tiro", "hebrew-biblical-sil", "yiddish-royal")
 ("yiddish-keyman"): New input methods.
2011-07-23 20:29:42 +03:00
Eli Zaretskii
5deb92fd9f doc/lispref/display.texi (Bidirectional Display): New section. 2011-07-23 18:36:52 +03:00
Eli Zaretskii
8719d1dcad src/bidi.c: Backport from trunk a bugfix for bidi_paragraph_init at EOB. 2011-07-23 17:34:51 +03:00
Eli Zaretskii
be18c5a51f Fix compilation with GLYPH_DEBUG.
src/xfns.c (unwind_create_frame) [GLYPH_DEBUG]: Adapt to changes in
 2008-02-22T17:42:09Z!monnier@iro.umontreal.ca.
2011-07-23 08:15:53 -04:00
Eli Zaretskii
a2709514e6 src/xdisp.c: Fix a typo in a comment. 2011-07-23 06:58:44 -04:00
Eli Zaretskii
a9269c1877 Fix pos-visible-in-window-p under bidi redisplay.
src/xdisp.c (move_it_in_display_line_to): Record the best matching
 position for TO_CHARPOS while scanning the line, and restore it on
 exit if none of the characters scanned was an exact match.  Fixes
 vertical-motion and pos-visible-in-window-p under bidi redisplay
 when exact match is impossible due to invisible text, and the
 lines are truncated.
2011-07-23 13:46:21 +03:00
Eli Zaretskii
c1734fbd6f Fix pos-visible-in-window-p under bidi redisplay when lines are truncated.
src/xdisp.c (move_it_in_display_line_to): Record the best matching
 position for TO_CHARPOS while scanning the line, and restore it on
 exit if none of the characters scanned was an exact match.  Fixes
 vertical-motion and pos-visible-in-window-p when exact match is
 impossible due to invisible text, and the lines are truncated.
2011-07-23 13:42:24 +03:00
Jan Djärv
a258d62771 Fix title and toolbar not shown in OSX 10.7.
* nsterm.m (initFrameFromEmacs): Set NSTitledWindowMask in styleMask
for OSX >= 10.7.
2011-07-23 10:33:06 +02:00
Eli Zaretskii
0f74f7850d Speed up keyboard auto-repeat cursor motion under bidi redisplay.
src/xdisp.c (compute_stop_pos_backwards): New function.
 (next_element_from_buffer): Call compute_stop_pos_backwards to
 find a suitable prev_stop when we find ourselves before
 base_level_stop.
 (reseat): Don't look for prev_stop, as that could mean a very long
 run.
 <cached_disp_pos, cached_disp_buffer, cached_disp_modiff>
 <cached_disp_overlay_modiff>: Cache for last found display string
 position.
 (compute_display_string_pos): Return the cached position if asked
 about the same buffer in the same area of character positions, and
 the buffer wasn't changed since the time the display string
 position was cached.
2011-07-23 10:42:56 +03:00
Eli Zaretskii
b2d0c91afd Fix bug #9149 with mouse highlight of empty lines.
src/xdisp.c (rows_from_pos_range): Don't ignore glyphs whose object
 is an integer, which is important for empty lines.
2011-07-22 20:42:43 +03:00
Eli Zaretskii
b6d5a68964 Fix previous change that broke faces in bidirectional text.
src/xdisp.c (compute_stop_pos_backwards): New function.
 (handle_stop_backwards): Revert last change.
 (next_element_from_buffer): Call compute_stop_pos_backwards to
 find a suitable prev_stop when we find ourselves before
 base_level_stop.  Remove the funky search for 1000 character
 positions back.
2011-07-22 17:09:51 +03:00
Alan Mackenzie
a9901f61c7 Prevent cc-langs.elc being loaded at run time.
cc-mode.el: Remove two autoload forms which loaded cc-langs.

cc-langs.el (c-make-init-lang-vars-fun): Don't emit "(require 'cc-langs)".
Quote a form so it will evaluate at (cc-mode's) compilation time.
2011-07-22 12:53:46 +00:00
Michael Albinus
11d074b295 * net/tramp.el (tramp-file-name-handler): Avoid recursive
loading.  (Bug#9114)
2011-07-22 13:04:55 +02:00
Chong Yidong
043604ee51 Fix --reverse-video on ttys.
* src/frame.c (Fmodify_frame_parameters): In tty case, update the
default face if necessary.

Fixes: debbugs:4238
2011-07-22 01:02:24 -04:00
Chong Yidong
da4adb048d Doc fix for string-to-char (Bug#6576).
* editfns.c (Fstring_to_char): No need to explain what a character
is in the docstring.
2011-07-21 14:38:21 -04:00
Martin Rudalics
938b94c885 Fix size adjustment calls in display-buffer subroutines.
* window.el (display-buffer-pop-up-window)
(display-buffer-pop-up-side-window)
(display-buffer-in-side-window): Call display-buffer-set-height
and display-buffer-set-width after setting the new window's
buffer so `fit-window-to-buffer' and friends work on the right
buffer.
2011-07-21 10:27:44 +02:00
Lars Magne Ingebrigtsen
fb1b0ef6f0 shr.el (shr-tag-comment): Ignore HTML comments. 2011-07-20 22:48:00 +00:00
Lars Magne Ingebrigtsen
9abd053219 * xml.c (parse_region): Make sure we always return a tree. 2011-07-20 22:45:13 +02:00
HAMANO Kiyoto
36881d164d * xml.c (parse_region): If a document contains only comments, return that, too. 2011-07-20 22:05:02 +02:00
Lars Magne Ingebrigtsen
1e98674d93 * xml.c (make_dom): Return comments, too. 2011-07-20 21:58:46 +02:00
Sam Steingold
bfa4f1909c * lisp/progmodes/etags.el (etags-file-of-tag, etags-tags-table-files)
(etags-tags-included-tables): Call `convert-standard-filename' on
the file names contained in TAGS so that windows Emacs can handle
TAGS files created by cygwin ctags.
2011-07-20 12:45:00 -04:00
Andrew Cohen
59f1b89494 nnir.el (gnus-group-make-nnir-group): Allow optional search query argument.
(gnus-group-make-nnir-group, nnir-request-group, nnir-run-query): Use `nnir-address' to handle server info rather than passing an arg.
2011-07-20 15:24:16 +00:00
Andrew Cohen
af92e24772 Merge changes made in Gnus trunk.
nnimap.el (nnimap-make-thread-query): New utility function to format an imap thread search query.
 (nnimap-request-thread): Use it.
gnus-sum.el (gnus-handle-ephemeral-exit): Ensure we are setting the right select-method if we are not going back to the group buffer.
2011-07-20 14:19:52 +00:00
Lars Magne Ingebrigtsen
8ca422621c (proced-update): Revert yesterday's bug#1779 patch, which apparently didn't work. 2011-07-20 11:53:51 +02:00
Lars Magne Ingebrigtsen
2ecab2b506 White space fix 2011-07-20 11:10:10 +02:00
Roland Winkler
5db2afd2fb lisp/proced.el (proced-send-signal): small fix 2011-07-19 20:09:31 -05:00
Gnus developers
ae97e6451d Merge changes made in Gnus trunk.
gnus-group.el (gnus-group-read-ephemeral-group): Make sure we don't enter invalid buffer configurations into the quit form (bug#9107).
 (gnus-group-tool-bar-gnome): Replace connect/disconnect with unplugged/plugged.
gnus-sum.el (gnus-summary-refer-thread): When inserting new headers, keep track of which ones are unread (bug#9061).
gnus.el (gnus-refer-article-method): Allow entering any sexp (bug#9055).
gnus-art.el (gnus-article-show-images): Allow working if using w3m (bug#9041).
gnus-html.el (mm-util): Require (bug#9073).
gnus-sum.el (gnus-delete-duplicate-headers): New function.
 (gnus-summary-refer-thread): Use it to remove duplicates in the un-threaded view (bug#9053).
 (gnus-summary-insert-subject): Document USE-OLD-HEADER (bug#9070).
nnir.el (nnir-read-server-parm): Use default value from global variable.  Without this the default search engine parameters aren't used at all.
message.el (message-unique-id): Don't use the undocumented return value from (random t) (bug#9118).
2011-07-19 22:19:06 +00:00
Stephen Berman
92e15d10a6 (proced-format): Make header lines align with the text 2011-07-19 23:31:26 +02:00
Eli Zaretskii
e8c17b886b Speed up cursor motion in large fontified buffers.
src/xdisp.c (reseat): Don't look for prev_stop, as that could mean a
 very long run.
 (next_element_from_buffer): When iterator oversteps prev_pos
 backwards, don't search for a new prev_stop more than 1000
 characters back.
 (handle_stop_backwards): Don't assume that CHARPOS is necessarily
 a stop_pos.
 (compute_display_string_pos): Check also BUF_OVERLAY_MODIFF for a
 match, when testing the cached display string position for
 applicability.
2011-07-19 21:04:56 +03:00
Paul Eggert
590bd46743 Port to OpenBSD.
See http://lists.gnu.org/archive/html/emacs-devel/2011-07/msg00688.html
and the surrounding thread.
* minibuf.c (read_minibuf_noninteractive): Rewrite to use getchar
rather than fgets, and retry after EINTR.  Otherwise, 'emacs
--batch -f byte-compile-file' fails on OpenBSD if an inactivity
timer goes off.
* s/openbsd.h (BROKEN_SIGIO): Define.
* unexelf.c (unexec) [__OpenBSD__]:
Don't update the .mdebug section of the Alpha COFF symbol table.
2011-07-19 10:33:06 -07:00
Lars Magne Ingebrigtsen
f41628b253 * lread.c (syms_of_lread): Clarify when `lexical-binding' is used 2011-07-19 17:16:58 +02:00
Lars Magne Ingebrigtsen
1bfd59e52c (view-buffer): Allow running in `special' modes if we're visiting a file.
Fixes: debbugs:8615
2011-07-19 17:01:49 +02:00
Glenn Morris
fd99fde61f * admin/FOR-RELEASE: Reset list of proof-read manual etc files. 2011-07-19 00:15:15 -07:00
Martin Rudalics
f5aae37c88 Rewrite display-buffer-alist-set to handle Emacs 23 options more accurately.
* window.el (display-buffer-alist-of-strings-p)
(display-buffer-alist-set-1, display-buffer-alist-set-2): New
functions.
(display-buffer-alist-set): Rewrite to handle Emacs 23 options
more accurately.
2011-07-19 09:05:51 +02:00