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

101971 Commits

Author SHA1 Message Date
Leo Liu
1ddd96f5cf Simplify url handling in rcirc-mode 2011-07-27 11:44:45 +08:00
Alan Mackenzie
b248a85d10 Fontify bitfield declarations properly.
cc-langs.el (c-has-bitfields): New lang variable.
(c-symbol-chars): Now exported as a lang variable.
(c-not-primitive-type-keywords): New lang variable.

cc-fonts.el (c-font-lock-declarations): Jump over the QT keyword "more"
to prevent "more slots: ...." being spuriously parsed as a bitfield
declaraion.

cc-engine.el (c-beginning-of-statement-1): Refactor and enhance to handle
bitfield declarations.
(c-punctuation-in): New function.
(c-forward-decl-or-cast-1): Enhance CASE 3 to handle bitfield
declarations properly.
2011-07-26 19:18:40 +00:00
Ulf Jasper
68575ab00b icalendar: Take care of multiple vcalendars in a single file.
lisp/ChangeLog:

	* calendar/icalendar.el (icalendar--all-events): Take care of
	multiple vcalendars in a single file.
	(icalendar--convert-float-to-ical): checkdoc fixes.

	* automated/icalendar-tests.el (icalendar-tests--compare-strings):
	Removed, simply use string=.
	(icalendar--diarytime-to-isotime)
	(icalendar--datetime-to-diary-date)
	(icalendar--datestring-to-isodate)
	(icalendar--format-ical-event)
	(icalendar--parse-summary-and-rest)
	(icalendar-tests--do-test-import)
	(icalendar-tests--do-test-cycle) : Changed argument order of
	string= to EXPECTED ACTUAL.
	(icalendar--import-format-sample)
	(icalendar--format-ical-event)
	(icalendar-import-non-recurring)
	(icalendar-import-rrule)
	(icalendar-import-duration)
	(icalendar-import-bug-6766)
	(icalendar-real-world): Adjusted to string= instead of
	icalendar-tests--compare-strings.
	(icalendar-import-multiple-vcalendars): New.
2011-07-26 17:36:04 +02:00
Jan Djärv
d6f0886cf1 * nsmenu.m (ns_popup_dialog): Add an "ok" button if no buttons
are specified.

Fixes: debbugs:9168
2011-07-25 23:49:42 +02: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
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
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
Paul Eggert
15e3a074a6 * fileio.c (Fcopy_file) [!MSDOS]: Tighten created file's mask.
This fixes some race conditions on the permissions of any newly
created file.
2011-07-18 14:01:36 -07:00
Paul Eggert
41bed37d15 * alloc.c (valid_pointer_p): Use pipe, not open.
This fixes some permissions issues when debugging.
2011-07-18 13:24:40 -07:00