1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-09 13:10:57 -08:00
Commit graph

112407 commits

Author SHA1 Message Date
Eli Zaretskii
d4166523bc Provide a Windows manifest for update-game-score.exe.
lib-src/update-game-score.exe.manifest: New file.
 lib-src/Makefile.in (UPDATE_MANIFEST): New variable.
 (SCRIPTS): Add $(UPDATE_MANIFEST).

 configure.ac: Define and substitute UPDATE_MANIFEST.
2013-08-10 10:43:41 +03:00
Xue Fuqiao
3a3bb90450 * doc/lispref/edebug.texi (Instrumenting Macro Calls): Use @defmac for macros. 2013-08-10 13:03:11 +08:00
Xue Fuqiao
33a9f380e5 * doc/misc/ido.texi (Working Directories):
(Flexible Matching, Regexp Matching, Find File At Point)
(Ignoring, Misc Customization): Use @defopt for user options.
2013-08-10 12:58:31 +08:00
Juanma Barranquero
5c5dee787e lisp/filecache.el (file-cache-delete-file-list): Print message only when told so.
(file-cache-files-matching): Use #' in mapconcat argument.
2013-08-10 01:15:39 +02:00
Juanma Barranquero
156aab806b lisp/ffap.el: Fix reference to variable thing-at-point-default-mail-uri-scheme. 2013-08-10 01:08:46 +02:00
Xue Fuqiao
4517cbc2ea * doc/lispref/control.texi (Error Symbols): Minor fix for previous change. 2013-08-10 06:34:05 +08:00
Stefan Monnier
54bd972f15 * lisp/subr.el (define-error): New function.
* doc/lispref/control.texi (Signaling Errors): Refer to define-error.
(Error Symbols): Add `define-error'.
* doc/lispref/errors.texi (Standard Errors): Don't refer to `error-conditions'.
* lisp/progmodes/ada-xref.el (ada-error-file-not-found): Rename from
error-file-not-found and define with define-error.
* lisp/emacs-lisp/cl-lib.el (cl-assertion-failed): Move here from subr.el
and define with define-error.
* lisp/userlock.el (file-locked, file-supersession):
* lisp/simple.el (mark-inactive):
* lisp/progmodes/js.el (js-moz-bad-rpc, js-js-error):
* lisp/progmodes/ada-mode.el (ada-mode-errors):
* lisp/play/life.el (life-extinct):
* lisp/nxml/xsd-regexp.el (xsdre-invalid-regexp, xsdre-parse-error):
* lisp/nxml/xmltok.el (xmltok-markup-declaration-parse-error):
* lisp/nxml/rng-util.el (rng-error):
* lisp/nxml/rng-uri.el (rng-uri-error):
* lisp/nxml/rng-match.el (rng-compile-error):
* lisp/nxml/rng-cmpct.el (rng-c-incorrect-schema):
* lisp/nxml/nxml-util.el (nxml-error, nxml-file-parse-error):
* lisp/nxml/nxml-rap.el (nxml-scan-error):
* lisp/nxml/nxml-outln.el (nxml-outline-error):
* lisp/net/soap-client.el (soap-error):
* lisp/net/gnutls.el (gnutls-error):
* lisp/net/ange-ftp.el (ftp-error):
* lisp/mpc.el (mpc-proc-error):
* lisp/json.el (json-error, json-readtable-error, json-unknown-keyword)
(json-number-format, json-string-escape, json-string-format)
(json-key-format, json-object-format):
* lisp/jka-compr.el (compression-error):
* lisp/international/quail.el (quail-error):
* lisp/international/kkc.el (kkc-error):
* lisp/emacs-lisp/ert.el (ert-test-failed):
* lisp/calc/calc.el (calc-error, inexact-result, math-overflow)
(math-underflow):
* lisp/bookmark.el (bookmark-error-no-filename):
* lisp/epg.el (epg-error): Define with define-error.
2013-08-09 17:22:44 -04:00
Eli Zaretskii
14ba08227d Fix bug #15064 with assertion violation due to mouse face.
src/xdisp.c (draw_glyphs): Don't compare row pointers, compare row
 vertical positions instead.  This avoids calling MATRIX_ROW with
 row numbers that are possibly beyond valid limits.
2013-08-10 00:19:42 +03:00
Stefan Monnier
0ea9e53aa9 * lisp/time.el (display-time-event-handler)
(display-time-next-load-average): Don't call sit-for since it seems
unnecessary.

Fixes: debbugs:15045
2013-08-09 14:49:36 -04:00
Dmitry Antipov
309f24d1ec Use xstrdup and build_unibyte_string where applicable.
* alloc.c (xstrdup): Tiny cleanup.  Add eassert.
* xfns.c (x_window):
* xrdb.c (x_get_customization_string):
* xterm.c (xim_initialize):
* w32fns.c (w32_window): Use xstrdup.
(w32_display_monitor_attributes_list):
* emacs.c (init_cmdargs):
* keyboard.c (PUSH_C_STR):
* nsfont.m (nsfont_open):
* sysdep.c (system_process_attributes):
* w32.c (system_process_attributes):
* xdisp.c (message1, message1_nolog): Use build_unibyte_string.
2013-08-09 16:25:34 +04:00
Eli Zaretskii
5590227670 Define a few variables of obscure types to aid debugging exceptions on Windows.
src/w32.c (PEXCEPTION_POINTERS, PEXCEPTION_RECORD, PCONTEXT): Define
 variables of these types so that GDB would know about them, as aid
 for debugging fatal exceptions.  (Bug#15024)  See also
 http://sourceware.org/ml/gdb/2013-08/msg00010.html for related
 discussions.
2013-08-09 13:18:48 +03:00
Katsumi Yamaoka
6e164c210a lisp/gnus/mm-decode.el (mm-temp-files-delete): Fix last commit 2013-08-09 09:17:25 +00:00
Katsumi Yamaoka
a025f7d63e Gnus: delete temporary files when Gnus exits instead of using timers
lisp/gnus/mm-decode.el (mm-temp-files-to-be-deleted,
  mm-temp-files-cache-file): New internal variables.
(mm-temp-files-delete): New function; add it to gnus-exit-gnus-hook.
(mm-display-external): Use it to delete temporary files instead of
  using timers.
2013-08-09 08:05:56 +00:00
Stefan Monnier
b042915834 * lisp/emacs-lisp/checkdoc.el: Remove redundant :group keywords.
Use #' instead of ' to quote functions.
(checkdoc-output-mode): Use setq-local.
(checkdoc-spellcheck-documentation-flag, checkdoc-ispell-lisp-words)
(checkdoc-verb-check-experimental-flag, checkdoc-proper-noun-regexp)
(checkdoc-common-verbs-regexp): Mark safe-local-variable.
(checkdoc-ispell, checkdoc-ispell-current-buffer)
(checkdoc-ispell-interactive, checkdoc-ispell-message-interactive)
(checkdoc-ispell-message-text, checkdoc-ispell-start)
(checkdoc-ispell-continue, checkdoc-ispell-comments)
(checkdoc-ispell-defun): Remove unused arg `take-notes'.

Fixes: debbugs:15010
2013-08-08 21:19:42 -04:00
Stefan Monnier
ad9dcd70d6 * lisp/ido.el (ido-completion-help): Fix up compiler warning. 2013-08-08 20:54:22 -04:00
Xue Fuqiao
241de2901e * doc/misc/htmlfontify.texi (Customization): Minor fixes. 2013-08-09 08:51:03 +08:00
Xue Fuqiao
353ca646bb * doc/misc/htmlfontify.texi (Customization): Remove documentation of `hfy-fast-lock-save'. 2013-08-09 08:46:25 +08:00
Juanma Barranquero
77187e6f36 Move frameset-to-register stuff from register.el to frameset.el.
lisp/register.el (frameset-frame-id, frameset-frame-with-id, frameset-p)
(frameset-restore, frameset-save, frameset-session-filter-alist):
Remove declarations.
(register-alist): Doc fix.
(frameset-to-register): Move to frameset.el.
(jump-to-register, describe-register-1): Remove frameset-specific code.

lisp/frameset.el (frameset-p): Add autoload cookie.
(frameset--jump-to-register): New function, based on code moved from
register.el.
(frameset-to-register): Move from register.el.  Adapt to `registerv'.
2013-08-09 02:30:24 +02:00
Juanma Barranquero
9d3aa82cf9 lisp/*.el: Silence lexical-binding warnings. 2013-08-09 01:59:14 +02:00
Xue Fuqiao
919a957544 doc/misc/ido.texi: Document some user options. 2013-08-09 07:56:25 +08:00
Stefan Monnier
0ca3f70e4f * lisp/emacs-lisp/edebug.el (edebug-debugger): Use edebug-eval to run the
break-condition in the context of the debugged code.

Fixes: debbugs:12685
2013-08-08 19:14:20 -04:00
Christopher Schmidt
74c5d24c74 * lisp/comint.el:
Do not use an overlay to highlight the last prompt.  (Bug#14744)
(comint-mode): Make comint-last-prompt buffer local.
(comint-last-prompt): New variable.
(comint-last-prompt-overlay): Remove.  Superseded by
comint-last-prompt.
(comint-snapshot-last-prompt, comint-output-filter): Use
comint-last-prompt.
2013-08-08 21:22:58 +02:00
Jan Djärv
10bf7f5a3d * nsterm.m (ns_update_begin): Don't change clip path if it would be
larger than the NSWindow.

Fixes: debbugs:14934
2013-08-08 19:52:00 +02:00
Juanma Barranquero
a3738d206c lisp/ChangeLog: Fix typo in previous change. 2013-08-08 18:13:32 +02:00
Juanma Barranquero
c03c02eea4 lisp/frameset.el (frameset-save): Check validity of the resulting frameset.
(frameset-valid-p): Doc fix.
2013-08-08 17:59:14 +02:00
Dmitry Antipov
656202640d Redesign redisplay interface to drop global variable updated_window.
Always pass currently updated window as a parameter to update routines.
* dispextern.h (updated_window): Remove declaration.
(struct redisplay_interface): Pass window parameter to
write_glyphs, insert_glyphs, clear_end_of_line, cursor_to
and after_update_window_hook.
(x_write_glyphs, x_insert_glyphs, x_clear_end_of_line, x_cursor_to):
Adjust prototypes.
* dispnew.c (updated_window): Remove.
(redraw_overlapped_rows, update_marginal_area, update_text_area)
(update_window_line): Adjust to match redisplay interface changes.
* nsterm.m (ns_update_window_begin, ns_update_window_end)
(ns_scroll_run, ns_after_update_window_line):
* w32term.c (x_update_window_begin, x_update_window_end)
(x_after_update_window_line, x_scroll_run):
* xterm.c (x_update_window_begin, x_update_window_end)
(x_after_update_window_line, x_scroll_run):
* xdisp.c (x_write_glyphs, x_insert_glyphs, x_clear_end_of_line):
Likewise.  Adjust comments where appropriate.
(x_cursor_to): Simplify because this is always called during window
update (but install debugging check anyway).
(expose_window): Check must_be_updated_p flag to see whether this
function is called during window update.
2013-08-08 18:51:07 +04:00
Xue Fuqiao
04263d23c5 doc/lispref/buffers.texi: Add documentation for ido-record-command(s).
* lisp/ido.el (ido-record-command): Add doc string.
2013-08-08 22:03:56 +08:00
Xue Fuqiao
9dfc8491bb doc/lispref/buffers.texi: Add documentation of some user options for Ido. 2013-08-08 21:53:30 +08:00
Xue Fuqiao
15938cf474 Add documentation of `ido-confirm-unique-completion'.
doc/misc/ido.texi: (Misc Customization): Add documentation of `ido-confirm-unique-completion'.
2013-08-08 20:52:25 +08:00
Xue Fuqiao
03300a14a0 Add documentation for working directory in Ido.
* doc/misc/ido.texi (Top): Insert node "Working Directories" in menu.
(Working Directories): New node.


doc/misc/sc.texi: (What Supercite Does): Typo fix.
2013-08-08 20:31:38 +08:00
Juanma Barranquero
f9dbf1cbb8 lisp/frameset.el: Doc fixes. 2013-08-08 12:44:07 +02:00
Juanma Barranquero
76c5e5ab36 lisp/frameset.el: Revert to built-in frameset-p; document slot accessors.
(frameset): Do not disable creation of the default frameset-p predicate.
Doc fix.
(frameset-valid-p): New function, copied from the old predicate-p.
Add additional checks.
(frameset-restore): Check with frameset-valid-p.
(frameset-p, frameset-version, frameset-timestamp, frameset-app)
(frameset-name, frameset-description, frameset-properties)
(frameset-states): Add docstring.
2013-08-08 11:54:29 +02:00
Dmitry Antipov
628fdc567a Do not reset window modification event counters excessively.
These leftovers and poor man's tricky methods to catch extra
redisplay's attention are no longer needed.
* frame.c (set_menu_bar_lines_1):
* minibuf.c (read_minibuf_unwind):
* window.c (Fset_window_start, set_window_buffer, window_resize_apply)
(grow_mini_window, shrink_mini_window, window_scroll_pixel_based)
(window_scroll_line_based, Fset_window_configuration):
* xdisp.c (redisplay_window): Do not reset last_modified and
last_overlay_modified counters.
2013-08-08 08:42:40 +04:00
Juanma Barranquero
bd0c3c0b12 lisp/frameset.el (frameset-p, frameset-prop): Doc fixes. 2013-08-08 05:54:41 +02:00
Stefan Monnier
c735544ced * lisp/emacs-lisp/bytecomp.el (byte-compile-function-warn): New function,
extracted from byte-compile-callargs-warn and byte-compile-normal-call.
(byte-compile-callargs-warn, byte-compile-function-form): Use it.
(byte-compile-normal-call): Remove obsolescence check.
2013-08-07 21:37:47 -04:00
Juanma Barranquero
3677ffeb28 lisp/frameset.el (frameset-restore): Doc fix. 2013-08-08 03:19:11 +02:00
Juanma Barranquero
6585d561aa etc/NEWS: Document new keybinding of `C-x r f' to frameset-to-register. 2013-08-08 02:46:48 +02:00
Juanma Barranquero
2805a6512b * lisp/bindings.el (ctl-x-r-map): Bind ?f to frameset-to-register.
* lisp/register.el: Add support for framesets.
  (frameset-frame-id, frameset-frame-with-id)
  (frameset-p, frameset-restore, frameset-save): Declare.
  (register-alist): Document framesets.
  (frameset-session-filter-alist): Declare.
  (frameset-to-register): New function.
  (jump-to-register): Implement jumping to framesets.  Doc fix.
  (describe-register-1): Describe framesets.
2013-08-08 02:44:22 +02:00
Juanma Barranquero
a912c0163d lisp/frameset.el: Convert `frameset' to vector and add new slots.
(frameset): Use type vector, not list (incompatible change).
Do not declare a new constructor, use the default one.
Upgrade suggested properties `app', `name' and `desc' to slots `app',
`name' and `description', respectively, and add read-only slot `timestamp'.
Doc fixes.
(frameset-copy, frameset-persistent-filter-alist)
(frameset-filter-alist, frameset-switch-to-gui-p)
(frameset-switch-to-tty-p, frameset-filter-tty-to-GUI)
(frameset-filter-sanitize-color, frameset-filter-minibuffer)
(frameset-filter-iconified, frameset-keep-original-display-p):
Doc fixes.
(frameset-filter-shelve-param, frameset-filter-unshelve-param):
Rename from frameset-filter-(save|restore)-param.  All callers changed.
Doc fix.
(frameset-p): Adapt to change to vector and be more thorough.
Change arg name to OBJECT.  Doc fix.
(frameset-prop): Rename arg PROP to PROPERTY.  Doc fix.
(frameset-session-filter-alist): Rename from frameset-live-filter-alist.
All callers changed.
(frameset-frame-with-id): Rename from frameset-locate-frame-id.
All callers changed.
(frameset--record-minibuffer-relationships): Rename from
frameset--process-minibuffer-frames.  All callers changed.
(frameset-save): Add new keyword arguments APP, NAME and DESCRIPTION.
Use new default constructor (again).  Doc fix.
(frameset--find-frame-if): Rename from `frameset--find-frame.
All callers changed.
(frameset--reuse-frame): Rename arg FRAME-CFG to PARAMETERS.
(frameset--initial-params): Rename arg FRAME-CFG to PARAMETERS.
Doc fix.
(frameset--restore-frame): Rename args FRAME-CFG and WINDOW-CFG to
PARAMETERS and WINDOW-STATE, respectively.
(frameset-restore): Add new keyword argument PREDICATE.
Reset frameset--target-display to nil.  Doc fix.

lisp/desktop.el (desktop-save-frameset): Use new frameset-save args.
Use lexical-binding.
2013-08-08 00:54:08 +02:00
Stefan Monnier
f001e98ec5 * lisp/progmodes/bat-mode.el (bat--syntax-propertize): New var.
(bat-mode): Use it.
(bat-mode-syntax-table): Mark \n as end-of-comment.
(bat-font-lock-keywords): Remove comment rule.
2013-08-07 18:53:18 -04:00
Stefan Monnier
7679edb1e0 * lisp/progmodes/bat-mode.el: Rename from dos.el. Use "bat-" prefix.
(dos-mode-help): Remove.  Use describe-mode (C-h m) instead.
2013-08-07 18:42:44 -04:00
Stefan Monnier
bb41480a68 * lisp/emacs-lisp/bytecomp.el: Check existence of f in #'f.
(byte-compile-callargs-warn): Use `push'.
(byte-compile-arglist-warn): Ignore higher-order "calls".
(byte-compile-file-form-autoload): Use `pcase'.
(byte-compile-function-form): If quoting a symbol, check that it exists.
2013-08-07 13:33:30 -04:00
Dmitry Antipov
e5eefe9b96 Fix typo in ChangeLog entry. 2013-08-07 21:03:46 +04:00
Jan Djärv
8fd9c92e1f * xselect.c (x_send_client_event): Set send_event and serial, memset
data.l as it might be bigger than data.b.   Use 24 bit mask to
XSendEvent.

Fixes: debbugs:15034
2013-08-07 18:59:23 +02:00
Eli Zaretskii
cdc1ebb941 Minor fixes in lisp/progmodes/dos.el.
lisp/progmodes/dos.el (dos-font-lock-keywords): Rename LINUX to UNIX
 and add a few popular commands found in batch files.
 (dos, dos-label-face, dos-cmd-help, dos-run, dos-run-args)
 (dos-mode): Doc fixes.
2013-08-07 19:37:04 +03:00
Stefan Monnier
312b1740c2 * lisp/progmodes/dos.el (auto-mode-alist): Add entries for dos-mode.
(dos-mode): Use setq-local.  Add space after "rem".
(dos-mode-syntax-table): Don't use "w" for symbol chars.
(dos-font-lock-keywords): Try to adjust font-lock rules accordingly.
2013-08-07 11:50:16 -04:00
Arni Magnusson
400a3178cb * lisp/progmodes/dos.el: New file.
* lisp/generic-x.el (bat-generic-mode): Redefine as an obsolete alias to
dos-mode.
2013-08-07 11:43:57 -04:00
Eli Zaretskii
03eb60c17a xdisp.c: Fix a typo in a comment for the last commit. 2013-08-07 18:14:23 +03:00
Eli Zaretskii
2a02433454 Minor fixes in the ToDo Mode manual.
doc/misc/todo-mode.texi: Update @dircategory.
 (Overview, Todo Items as Diary Entries, Todo Mode Entry Points)
 (File Editing, Marked Items, Item Prefix): Fix usage of @xref and
 @ref.
2013-08-07 17:15:23 +03:00
Eli Zaretskii
f2243267a9 Fix bug #15038 with incorrect Texinfo in Emacs Lisp Intro manual.
doc/lispintro/emacs-lisp-intro.texi (Beginning init File): Rename from
 "Beginning a .emacs File", since a node name cannot include a
 period.
 (Top, Emacs Initialization, Change a defun): All references
 changed.
2013-08-07 16:58:41 +03:00