1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-16 09:50:25 +00:00
Commit Graph

100749 Commits

Author SHA1 Message Date
Paul Eggert
c11285dca1 * alloc.c (make_event_array): Use XINT, not XUINT.
There's no need for unsigned here.
2011-05-22 17:31:35 -07:00
Paul Eggert
fdccd48e6d * mem-limits.h (EXCEEDS_LISP_PTR) [!USE_LSB_TAG]: EMACS_UINT -> uintptr_t
This follows up to the 2011-05-06 change that substituted uintptr_t
for EMACS_INT.  This case wasn't caught back then.
2011-05-22 17:22:43 -07:00
Paul Eggert
af3d522ffb Merge from trunk. 2011-05-22 17:09:23 -07:00
Paul Eggert
7400048f60 * gnutls.c: Remove unused macros.
(fn_gnutls_transport_set_lowat, fn_gnutls_transport_set_pull_function):
(fn_gnutls_transport_set_push_function) [!WINDOWSNT]:
Remove macros that are defined and never used.
Caught by gcc -Wunused-macros (GCC 4.6.0, Fedora 14).
2011-05-22 17:03:40 -07:00
Chong Yidong
abb71cf449 Remove var mistakenly introduced in 2011-05-22T19:46:47Z!cyd@stupidchicken.com.
* src/xselect.c (syms_of_xselect): Remove unused symbol SAVE_TARGETS.
(Fx_get_selection_internal): Minor cleanup.
(Fx_own_selection_internal): Rename arguments for consistency with
select.el.
2011-05-22 17:57:43 -04:00
Paul Eggert
3f7390b223 Merge from mainline. 2011-05-22 14:16:24 -07:00
Paul Eggert
6307db3930 * xselect.c (QSAVE_TARGETS): New static var, to fix build failure. 2011-05-22 14:12:04 -07:00
Paul Eggert
f518ae90a6 Merge from gnulib. 2011-05-22 14:02:48 -07:00
Paul Eggert
37910ab251 Rework Fformat to avoid integer overflow issues.
* editfns.c: Include <float.h> unconditionally, as it's everywhere
now (part of C89).  Include <verify.h>.
(MAX_10_EXP, CONVERTED_BYTE_SIZE): Remove; no longer needed.
(pWIDE, pWIDElen, signed_wide, unsigned_wide): New defns.
(Fformat): Avoid the prepass trying to compute sizes; it was only
approximate and thus did not catch overflow reliably.  Instead, walk
through the format just once, formatting and computing sizes as we go,
checking for integer overflow at every step, and allocating a larger
buffer as needed.  Keep track separately whether the format is
multibyte.  Keep only the most-recently calculated precision, rather
than them all.  Record whether each argument has been converted to
string.  Use EMACS_INT, not int, for byte and char and arg counts.
Support field widths and precisions larger than INT_MAX.  Avoid
sprintf's undefined behavior with conversion specifications such as %#d
and %.0c.  Fix bug with strchr succeeding on '\0' when looking for
flags.  Fix bug with (format "%c" 256.0).  Avoid integer overflow when
formatting out-of-range floating point numbers with int
formats. (Bug#8668)
2011-05-22 13:27:07 -07:00
Yuanle Song
92a9cc651a Make rng-xsd-check-pattern case sensitive (Bug#8516).
* nxml/rng-xsd.el (rng-xsd-check-pattern): Use case-sensitive
matching.
2011-05-22 15:46:47 -04:00
Chong Yidong
f3d4e0a47d * src/xselect.c (syms_of_xselect): Include character.h; use DEFSYM. 2011-05-22 15:39:54 -04:00
Jari Aalto
f0fb805946 Maked "edited" tag stand out in vc-dir (Bug#8178).
* vc/vc-dir.el (vc-default-dir-printer): Give edited tag a
different face.
2011-05-22 15:36:07 -04:00
Chong Yidong
d5b44c937b Fix diff-changed face definition.
* lisp/vc/diff-mode.el (diff-changed): Don't use terminal specs for
defface (Bug#8144).
2011-05-22 15:22:37 -04:00
Chong Yidong
313f790eb7 Doc fixes for mule.texi.
* mule.texi (Specify Coding, Text Coding, Communication Coding):
(File Name Coding, Terminal Coding): Add command names (Bug#8312).
2011-05-22 15:05:14 -04:00
Chong Yidong
02bd545076 Mark last change as tiny. 2011-05-22 14:47:51 -04:00
Sean Neakums
7261f6cee1 Fix for sc-nested-citation-p in supercite.el.
See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=109145

* mail/supercite.el (sc-default-cite-frame): Handle
sc-nested-citation-p when sc-cite-blank-lines-p is non-nil.
2011-05-22 14:46:49 -04:00
Stefan Monnier
9c848d8a75 * lisp/emacs-lisp/macroexp.el (macroexpand-all-1): Convert ' to #' for
funcall as well.  Warn when performing those conversions.
* lisp/emacs-lisp/bytecomp.el (byte-compile-form): Fix error report.

Fixes: debbugs:8712
2011-05-22 15:22:30 -03:00
Stefan Monnier
79106a44d3 * lisp/progmodes/grep.el (grep-mode): Fix it for good!
Fixes: debbugs:8684
2011-05-22 14:19:24 -03:00
Paul Eggert
2e6578fb5e * lisp.h (FIXNUM_OVERFLOW_P): Work even if arg is a NaN. 2011-05-22 00:12:24 -07:00
Glenn Morris
162d78a17e Further tweak previous files.el change.
* lisp/files.el (hack-local-variables): In the MODE-ONLY case, try to
ignore minor modes.
2011-05-21 18:18:49 -07:00
Glenn Morris
80614e5701 Tweak previous files.el change.
* lisp/files.el (hack-local-variables-prop-line)
(hack-local-variables): In the MODE-ONLY case, return the full mode
symbol, including "-mode".
2011-05-21 17:34:41 -07:00
Glenn Morris
88dfa7568a More small hack-local-variables tweaks for MODE-ONLY case.
* lisp/files.el (hack-local-variables-prop-line): Small simplifications.
(hack-local-variables, hack-local-variables-prop-line):
If MODE-ONLY, return the mode, rather than just `t'.
2011-05-21 17:04:49 -07:00
Stefan Monnier
b7cf2c79c7 * lisp/progmodes/grep.el (grep-mode): Fix last change.
Fixes: debbugs:8684
2011-05-21 20:18:22 -03:00
Glenn Morris
7e4ccca345 Small files.el hack-local changes for mode-only case.
* lisp/files.el (hack-local-variables-prop-line, hack-local-variables):
If only interested in the mode, don't bother doing the other stuff.
2011-05-21 15:33:12 -07:00
Glenn Morris
2a35386df4 * admin/bzrmerge.el (bzrmerge-resolve): Suppress prompts about file-locals. 2011-05-21 14:19:30 -07:00
Glenn Morris
e8c061395d Auto-commit of loaddefs files. 2011-05-21 06:19:46 -04:00
Andreas Schwab
16b71f3a74 * Makefile.in (AUTOMAKE_INPUTS): Add $(srcdir)/lib/gnulib.mk. 2011-05-21 11:53:32 +02:00
Paul Eggert
0ae6bdee00 * data.c: Avoid integer truncation in expressions involving floats.
* data.c: Include <intprops.h>.
(arith_driver): When there's an integer overflow in an expression
involving floating point, convert the integers to floating point
so that the resulting value does not suffer from catastrophic
integer truncation.  For example, on a 64-bit host (* 4
most-negative-fixnum 0.5) should yield about -4.6e+18, not zero.
Do not rely on undefined behavior after integer overflow.
2011-05-20 22:38:43 -07:00
Paul Eggert
de883a701d merge count_size_as_multibyte, parse_str_to_multibyte
* character.c, character.h (count_size_as_multibyte):
Renamed from parse_str_to_multibyte; all uses changed.
Check for integer overflow.
* insdel.c, lisp.h (count_size_as_multibyte): Remove,
since it's now a duplicate of the other.  This is more of
a character than a buffer op, so better that it's in character.c.
* fns.c, print.c: Adjust to above changes.
2011-05-20 21:33:23 -07:00
Glenn Morris
8d366f40eb * lib-src/etags.c: Fix typo in previous comment change. 2011-05-20 19:27:00 -07:00
Glenn Morris
a57471f935 Merge from emacs-23; up to 2010-06-11T18:51:00Z!juri@jurta.org. 2011-05-20 19:15:34 -07:00
Glenn Morris
637d46ca18 image-mode fix for bug#8567.
* image-mode.el (image-after-revert-hook):
Redraw all frames on which the image is visible.
2011-05-20 19:09:49 -07:00
Glenn Morris
e5638bc123 * lib-src/etags.c: Comment. 2011-05-20 19:08:21 -07:00
Glenn Morris
973d955b4d * dired-aux.el (dired-touch-initial): Just use current-time. (Bug#6887) 2011-05-20 19:07:25 -07:00
Glenn Morris
3f1a855858 * wid-edit.el (widget-checklist-match-inline): Fix 2011-04-19 change. (Bug#8649) 2011-05-20 19:06:11 -07:00
Glenn Morris
33cf345f0c * src/Makefile.in (SOME_MACHINE_OBJECTS): Add some more files. 2011-05-20 19:04:48 -07:00
Glenn Morris
32078c8d48 * src/Makefile.in ($(etc)/DOC): Make second command line even shorter. 2011-05-20 19:02:42 -07:00
YAMAMOTO Mitsuharu
4d8ade8957 * dispnew.c (scrolling_window): Don't exclude the case that the
last enabled row in the desired matrix touches the bottom boundary.
2011-05-21 10:56:45 +09:00
Stefan Monnier
1dcf791fef * lisp/emacs-lisp/checkdoc.el (checkdoc-sentencespace-region-engine):
Also allow singlespace after single-letter capitals followed by a dot.
2011-05-20 15:20:12 -03:00
Stefan Monnier
96479927c9 * lisp/nxml/nxml-mode.el (nxml-electric-slash): Reindent when completion is
enabled.  Suggested by James Ahlborn <jahlborn@gmail.com>.

Fixes: debbugs:8704
2011-05-20 10:15:00 -03:00
Eli Zaretskii
6a45b46fdd .bzrignore: Add lib/stdio.in-h, lib/stdbool.h, and lib/stdint.h. 2011-05-20 12:54:04 +03:00
Eli Zaretskii
7285dc67f4 Fix the MSDOS build as follows from 2011-05-19T06:04:16Z!rgm@gnu.org, 2011-05-20T00:41:03Z!rgm@gnu.org.
config.bat: Concatenate lisp.mk onto the end of src/Makefile.
 msdos/sed1v2.inp (make-docfile commands): Recognize only if the line
 begins with a TAB.  Use $(etc) rather than a literal "../etc".
 (`sed SED-COMMAND $(srcdir)/lisp.mk`): Edit to replace with "$(lisp).
 (@lisp_frag@): Edit out.
 msdos/sedlibmk.inp (GNULIB_GROUP_MEMBER, HAVE_GROUP_MEMBER): Edit to
 zero.
 src/callproc.c (Fcall_process) [MSDOS]: Fix arguments to
 report_file_error introduced by the change from 2011-05-07.
2011-05-20 12:47:59 +03:00
Paul Eggert
89d1bd225c * systime.h (Time): Define only if emacs is defined.
This is to allow ../lib-src/profile.c to be compiled on FreeBSD,
where the include path doesn't have X11/X.h by default.  See
<http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00561.html>.
2011-05-19 23:37:13 -07:00
Teodor Zlatanov
b018a6c910 gnus-sum.el (gnus-summary-hide-thread): Fix bug where moving to hide the thread moves us backwards and so we loop forever. 2011-05-20 01:00:46 +00:00
Kenichi Handa
e23640bb69 merge trunk 2011-05-20 09:54:09 +09:00
Nix
35fd0881e6 Small break-hardlink-on-save fix.
* files.el (basic-save-buffer-2):
Fix handling of break-hardlink-on-save with non-existent files.
2011-05-19 17:51:46 -07:00
Kenichi Handa
31bfc35cca composite.c (find_automatic_composition): Fix previous change. 2011-05-20 09:51:38 +09:00
Glenn Morris
4d4b75e888 Auto-commit of generated files. 2011-05-19 20:44:19 -04:00
Glenn Morris
b9704ad993 Remove $shortlisp from src/Makefile.in.
* configure.in (lisp_frag): New output file.

* src/lisp.mk: New file, split from Makefile.in, and inheriting its
  copyright years.
* src/Makefile.in (lisp): Move to separate file, inserted by @lisp_frag@.
(shortlisp): Remove.
($(etc)/DOC): Edit lisp.mk rather than using $shortlisp.

* lisp/loadup.el, doc/misc/Makefile.in: Comment changes.
2011-05-19 17:41:03 -07:00
Katsumi Yamaoka
cfe397c6d2 mm-bodies.el (mm-decode-content-transfer-encoding): Allow leading whitespace in base64 data lines. 2011-05-20 00:03:51 +00:00