1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-02-04 22:50:59 -08:00
Commit graph

100071 commits

Author SHA1 Message Date
Eli Zaretskii
e6c3da2065 Fix doprnt so it could be used safely in `verror'. (Bug#8435)
src/doprnt.c: Include limits.h.
 (SIZE_MAX): New macro.
 (doprnt): Return a size_t value.  2nd arg is now size_t.  Many
 local variables are now size_t instead of int or unsigned.
 Improve overflow protection.  Support `l' modifier for integer
 conversions.  Support %l conversion.  Don't assume an EMACS_INT
 argument for integer conversions and for %c.
 src/lisp.h (doprnt): Restore prototype.
 src/makefile.w32-in ($(BLD)/callint.$(O)): Depend on
 $(SRC)/character.h.
 src/Makefile.in (base_obj): Add back doprnt.o.
 src/deps.mk (doprnt.o): Add back prerequisites.
 (callint.o): Depend on character.h.
 src/eval.c (internal_lisp_condition_case): Include the handler
 representation in the error message.
 (verror): Call doprnt instead of vsnprintf.  Fix an off-by-one bug
 when breaking from the loop.
 src/xdisp.c (vmessage): Call doprnt instead of vsnprintf.
 src/callint.c (Fcall_interactively): When displaying error message
 about invalid control letter, pass the character's codepoint, not
 a pointer to its multibyte form.  Improve display of the character
 in octal and display also its hex code.
 src/character.c (char_string): Use %x to display the (unsigned)
 codepoint of an invalid character, to avoid displaying a bogus
 negative value.
 src/font.c (check_otf_features): Pass SDATA of SYMBOL_NAME to
 `error', not SYMBOL_NAME itself.
 src/coding.c (Fencode_sjis_char, Fencode_big5_char): Use %c for
 character arguments to `error'.
 src/charset.c (check_iso_charset_parameter): Fix incorrect argument
 to `error' in error message about FINAL_CHAR argument.  Make sure
 FINAL_CHAR is a character, and use %c when it is passed as
 argument to `error'.
2011-04-23 13:33:28 +03:00
Glenn Morris
4ffd0d6b56 Merge from emacs-23; up to 2010-06-09T17:54:28Z!albinus@detlef. 2011-04-22 20:07:16 -07:00
Glenn Morris
81de9236e1 * lisp/gnus/gnus-sum.el (gnus-extra-headers): Bump :version. 2011-04-22 19:18:10 -07:00
Glenn Morris
3553ba549b Revert incorrect change to copyright years. 2011-04-22 19:15:03 -07:00
Teodor Zlatanov
74db886b06 gnus-registry.el (gnus-registry-ignore-group-p): Test specifically for the case where gnus-registry-ignored-groups' is a list of lists, and don't call gnus-parameter-registry-ignore' otherwise. 2011-04-23 00:08:28 +00:00
Noah Friedman
c243bc792c Add trailing underscores to appropriate member names, per change 2011-02-14T15:39:19Z!tromey@redhat.com of src/lisp.h. 2011-04-22 16:29:02 -07:00
Juanma Barranquero
c2fb1b6051 lisp/eshell/esh-mode.el (find-tag-interactive): Small cleanup.
* eshell/esh-mode.el (find-tag-interactive): Declare function.
  (eshell-find-tag): Remove `with-no-warnings', unneeded now.
  Pass argument NO-DEFAULT to `find-tag-interactive'.
2011-04-22 22:15:21 +02:00
Juanma Barranquero
be71f8100a lisp/buff-menu.el (Buffer-menu--buffers): Fix typo in docstring.
Fixes: debbugs:8535
2011-04-22 20:49:58 +02:00
Juanma Barranquero
e02f48d76b lisp/progmodes/*.el: Lexical-binding cleanup. 2011-04-22 20:44:26 +02:00
Chong Yidong
7ede3b6577 Doc fixes for package.el.
* emacs-lisp/package.el (package--builtins, package-alist)
(package-load-descriptor, package-built-in-p, package-activate)
(define-package, package-installed-p)
(package-compute-transaction, package-buffer-info)
(package--push): Doc fix.  Distinguish more clearly between
version strings and version lists.
2011-04-21 22:35:48 -04:00
Teodor Zlatanov
5e68f8614f nnimap.el (nnimap-user): New backend variable.
(nnimap-open-connection-1): Use it.
 (nnimap-credentials): Accept user parameter so it's explicit what user name is desired.
2011-04-22 01:01:32 +00:00
Teodor Zlatanov
a6e77075d4 gnus-sum.el (gnus-extra-headers): Add Keywords, Cc, and Gcc to default.
gnus-registry.el: Mention in comments how to modify `gnus-extra-headers' for proper recipient tracking and that it may already have To and Cc recently, which it does as of this commit.
2011-04-22 00:37:01 +00:00
Teodor Zlatanov
c024b02129 gnus.el (gnus-registry-ignored-groups): Provide default in gnus.el, not gnus-registry.el.
gnus-registry.el (gnus-registry-ignored-groups): Remove defcustom.  Explain why in comments.
 (gnus-registry-action): Fix data-header reference to use the extra headers.  Explain in package commentary how to add To and Cc headers to the gnus-extra-headers.
 (gnus-registry-ignored-groups): Adjust defaults to match the parameter.
 (gnus-registry-ignore-group-p): Adjust to take either a group/topic parameter list or a string list in `gnus-registry-ignored-groups'.  Fix logic error.
2011-04-21 22:06:12 +00:00
Juanma Barranquero
121656e9e3 lisp/play/*.el: Lexical-binding cleanup. 2011-04-21 14:24:46 +02:00
Juanma Barranquero
c6c3212525 lisp/play/mpuz.el: Small fixes.
* play/mpuz (mpuz-silent): Doc fix.
  (mpuz-mode-map): Move initialization into declaration.
  (mpuz-put-number-on-board): Rename parameter L to COLUMNS.
  (mpuz-letter-to-digit, mpuz-check-all-solved, mpuz-create-buffer):
  Fix typos in docstrings.
2011-04-21 14:06:01 +02:00
Katsumi Yamaoka
891e751b65 shr.el (shr-expand-url): Fix typo. 2011-04-21 02:48:04 +00:00
Juanma Barranquero
58d468b44d lisp/play/doctor.el: Fix typos in docstrings. 2011-04-21 04:45:31 +02:00
Lars Magne Ingebrigtsen
2b45516032 shr.el (shr-expand-url): Protect against null urls. 2011-04-21 02:22:56 +00:00
Lars Magne Ingebrigtsen
dbd5ffad4d shr.el (shr-base): New binding.
(shr-tag-base): Keep track of <base>.
 (shr-expand-url): New function used throughout.
2011-04-21 00:24:27 +00:00
Juanma Barranquero
80f499c7c1 lisp/vc/vc.el (ediff-vc-internal): Declare function. 2011-04-21 01:34:00 +02:00
Stefan Monnier
c0a193ea20 * lisp/shell.el: Use lexical-binding and std completion UI.
(shell-filter-ctrl-a-ctrl-b): Work as a preoutput filter.
(shell-mode): Put shell-filter-ctrl-a-ctrl-b on
comint-preoutput-filter-functions rather than on
comint-output-filter-functions.
(shell-command-completion, shell--command-completion-data)
(shell-filename-completion, shell-environment-variable-completion)
(shell-c-a-p-replace-by-expanded-directory): New functions.
(shell-dynamic-complete-functions, shell-dynamic-complete-command)
(shell-dynamic-complete-filename, shell-replace-by-expanded-directory)
(shell-dynamic-complete-environment-variable): Use them.
(shell-dynamic-complete-as-environment-variable)
(shell-dynamic-complete-as-command): Remove.
(shell-match-partial-variable): Match past point.
* lisp/comint.el: Clean up use of completion-at-point-functions.
(comint-completion-at-point): New function.
(comint-mode): Use it completion-at-point-functions.
(comint-dynamic-complete): Make it obsolete.
(comint-replace-by-expanded-history-before-point): Add dry-run arg.
(comint-c-a-p-replace-by-expanded-history): New function.
(comint-dynamic-complete-functions)
(comint-replace-by-expanded-history): Use it.
* lisp/minibuffer.el (completion-table-with-terminator): Allow dynamic
termination strings.  Try harder to avoid second try-completion.
(completion-in-region-mode-map): Disable bindings that don't work yet.
2011-04-20 19:31:06 -03:00
Teodor Zlatanov
2011338029 gnus-registry.el (gnus-registry--split-fancy-with-parent-internal): Fix loop bugs.
(gnus-registry-ignored-groups): New variable.
 (gnus-registry-ignore-group-p): Use it.
 (gnus-registry-handle-action): Use `gnus-registry-ignore-group-p' and set the destination group to nil (same as delete) if it's ignored.
2011-04-20 22:12:08 +00:00
Stefan Monnier
2dbaa0806b * lisp/comint.el: Use lexical-binding. Use std completion UI. Require CL.
(comint-dynamic-complete-functions): Use comint-filename-completion.
(comint-completion-addsuffix): Tweak custom type.
(comint-filename-completion, comint--common-suffix)
(comint--common-quoted-suffix, comint--table-subvert)
(comint--complete-file-name-data): New functions.
(comint-dynamic-complete-as-filename, comint-dynamic-complete-filename)
(comint-dynamic-list-filename-completions): Use them.
(comint-dynamic-simple-complete): Make obsolete.
* lisp/minibuffer.el (completion-in-region-mode):
Keep completion-in-region-mode--predicate global.
(completion-in-region--postch):
Assume completion-in-region-mode--predicate is not null.
2011-04-20 16:05:50 -03:00
Stefan Monnier
c79a6f38ab * lisp/progmodes/flymake.el (flymake-start-syntax-check-process): Obey `dir'. 2011-04-20 15:08:21 -03:00
Stefan Monnier
024ff1707e * lisp/vc/vc.el (vc-version-ediff): Call ediff-vc-internal directly, since
we're in VC after all.
2011-04-20 14:39:39 -03:00
Christoph Scholtes
1c6c854ec7 * lisp/vc/vc.el (vc-diff-build-argument-list-internal)
(vc-version-ediff, vc-ediff): New functions.
(vc-version-diff): Use vc-diff-build-argument-list-internal.
* doc/emacs/maintaining.texi (Old Revisions): Add paragraph on new function
vc-ediff.
* etc/NEWS: Document new function `vc-ediff'.
2011-04-20 14:33:09 -03:00
Stefan Monnier
332e62ab1f * lisp/emacs-lisp/byte-opt.el (byte-decompile-bytecode-1): Remove dead code,
add sanity check.
2011-04-20 14:28:07 -03:00
Stefan Monnier
bfab7d852d * Makefile.in (config.status): Don't erase in case of error.
In case it disappeared, rebuild it with `configure'.
2011-04-20 14:23:30 -03:00
Stefan Monnier
bed7f14004 * lisp/obsolete/erc-hecomplete.el: Make obsolete.
* obsolete/: Standardize obsolescence info in the header.
2011-04-20 14:18:34 -03:00
Glenn Morris
b2e59ad27f Auto-commit of loaddefs files. 2011-04-20 06:23:12 -04:00
Glenn Morris
e7dcef2a66 Auto-commit of generated files. 2011-04-20 06:18:10 -04:00
Ken Brown
fe0e7ad718 * configure.in (use_mmap_for_buffers): Set to yes on Cygwin. 2011-04-19 22:18:13 -04:00
Glenn Morris
40c9205d58 ChangeLog whitespace fix (no need to merge to trunk). 2011-04-19 19:11:41 -07:00
Glenn Morris
f195c582d8 solar.el fixes.
* lisp/calendar/solar.el (solar-horizontal-coordinates):
Use the longitude argument rather than `calendar-longitude' (15yr old bug).
(solar-date-next-longitude): Remove unused locals.
2011-04-19 19:09:06 -07:00
Katsumi Yamaoka
6b1f6ce90e gnus-registry.el (gnus-registry-action, gnus-registry-fetch-header-fast):
Don't use mail-header that looks an internal function of mailheader.el.
2011-04-20 00:43:48 +00:00
Stefan Monnier
602ea69dc7 * lisp/progmodes/octave-mod.el (octave-in-comment-p, octave-in-string-p)
(octave-not-in-string-or-comment-p): Use syntax-ppss so it works with
multi-line comments as well.
2011-04-19 12:33:34 -03:00
Juanma Barranquero
06b605171f lisp/*.el: Lexical-binding cleanup. 2011-04-19 15:44:55 +02:00
Eli Zaretskii
04c569546a Support buffers > 2GB on 64-bit hosts.
src/insdel.c (make_gap_larger): Remove limitation of buffer size
 to <= INT_MAX.
 src/syntax.h (SETUP_SYNTAX_TABLE_FOR_OBJECT): Fix setting of
 gl_state.e_property when gl_state.object is Qt.
2011-04-19 13:48:30 +03:00
Glenn Morris
bc4f7f3d58 calendar housekeeping prompted by lexical-binding.
* lisp/calendar/appt.el (appt-make-list):
* lisp/calendar/cal-china.el (calendar-chinese-date-string):
* lisp/calendar/cal-hebrew.el (calendar-hebrew-list-yahrzeits)
(diary-hebrew-yahrzeit):
* lisp/calendar/cal-tex.el (cal-tex-last-blank-p, cal-tex-cursor-week2):
* lisp/calendar/calendar.el (calendar-generate-window):
* lisp/calendar/time-date.el (time-to-days):
Remove unused local variables.

* lisp/calendar/cal-dst.el (dst-adjust-time): Remove never-implemented
optional argument `style'.

* lisp/calendar/cal-tex.el (cal-tex-list-holidays, cal-tex-cursor-month)
(cal-tex-cursor-week, cal-tex-cursor-week2, cal-tex-cursor-week-iso)
(cal-tex-cursor-filofax-2week, cal-tex-cursor-filofax-week)
(cal-tex-cursor-filofax-daily, cal-tex-mini-calendar)
* lisp/calendar/cal-html.el (cal-html-insert-minical):
* lisp/calendar/diary-lib.el (diary-list-entries-1, diary-list-entries)
(calendar-mark-date-pattern):
Prefix "unused" locals.
2011-04-18 21:11:01 -07:00
Chong Yidong
16a43933e8 Allow glyphless-char-display to distinguish between X and text terminals.
Use this for Tabulated List mode.

* lisp/emacs-lisp/tabulated-list.el (tabulated-list-mode): Use a custom
glyphless-char-display table.
(tabulated-list-glyphless-char-display): New var.

* src/term.c (produce_glyphless_glyph): Handle cons cell entry in
glyphless-char-display.

* src/xdisp.c (lookup_glyphless_char_display)
(produce_glyphless_glyph): Handle cons cell entry in
glyphless-char-display.
(Vglyphless_char_display): Document it.
2011-04-18 19:21:31 -04:00
Katsumi Yamaoka
8d6d9c8f8d gnus-registry.el, registry.el: Silence the byte compiler.
gnus-registry.el: Eliminate cl functions.
 (gnus-registry-sort-addresses): New function that replaces mapcan.
 (gnus-registry-action, gnus-registry-spool-action)
 (gnus-registry-split-fancy-with-parent)
 (gnus-registry-fetch-recipients-fast): Use it.
 (gnus-registry-import-eld): Replace delete* with dolist + delq.
registry.el (initialize-instance, registry-lookup)
 (registry-lookup-breaks-before-lexbind, registry-lookup-secondary)
 (registry-lookup-secondary-value, registry-search, registry-delete)
 (registry-insert, registry-reindex, registry-size, registry-prune):
 Use eval-and-compile.
2011-04-18 22:59:02 +00:00
Sam Steingold
7eed1860d8 * lisp/vc/add-log.el (change-log-font-lock-keywords): Add "Thanks to" to acknowledgments. 2011-04-18 16:35:18 -04:00
Glenn Morris
ca36e0ff83 Auto-commit of generated files. 2011-04-18 06:17:49 -04:00
Eli Zaretskii
97a9309556 Fix a bug in time functions when timezone is changed on Windows.
src/s/ms-w32.h (localtime): Redirect to sys_localtime.
 src/w32.c: Include <time.h>.
 (sys_localtime): New function.
2011-04-18 11:33:58 +03:00
Paul Eggert
cc2e7b46b8 Merge from gnulib. 2011-04-17 21:03:18 -07:00
Chong Yidong
4581706e27 Minor redisplay cleanups.
* src/dispextern.h (FACE_SUITABLE_FOR_ASCII_CHAR_P): Add missing
definition for no-X builds.

* src/termhooks.h (FRAME_WINDOW_P): Remove duplicated definitions.

* src/xdisp.c (get_next_display_element): Remove unnecessary ifdefs.
2011-04-17 14:40:55 -04:00
Glenn Morris
14964899b3 * etc/CONTRIBUTE: Recommend bug-gnu-emacs for patches. 2011-04-16 19:30:56 -07:00
Glenn Morris
4d2d1ccdbb Replace stack-trace-on-error usage in calendar.
* lisp/calendar/diary-lib.el (diary-sexp-entry):
* lisp/calendar/holidays.el (holiday-sexp):
Set debug-on-error rather than the removed stack-trace-on-error.
2011-04-16 19:11:49 -07:00
Glenn Morris
61c2b50edd ChangeLog fix. 2011-04-16 16:31:57 -07:00
Glenn Morris
239da61d98 Use lexcical-binding in f90.el.
* lisp/progmodes/f90.el: Use lexical-binding.  Use utf-8 coding.
(f90-get-correct-indent): Remove unnecessary local variable `cont'.
2011-04-16 16:30:15 -07:00