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

125186 Commits

Author SHA1 Message Date
Paul Eggert
227ab51db6 emacs-module.h slight simplification
* src/emacs-module.c (emacs_init_function, emacs_subr): Move here ...
* src/emacs-module.h: ... from here, as they don’t need to be public.
(enum emacs_arity): Remove useless enum tag.  The enum value is
used in ptrdiff_t contexts.

* src/emacs-module.c (CHECK_USER_PTR): Fix typo in previous change.
2016-03-02 14:31:21 -08:00
Paul Eggert
5840068864 * src/emacs-module.c (CHECK_USER_PTR): Fix typo in previous change. 2016-03-02 14:16:25 -08:00
Paul Eggert
08e239a219 emacs-module.c simplification and tuneup
* src/emacs-module.c (CHECK_USER_PTR): New function.
(module_get_user_ptr, module_set_user_ptr)
(module_get_user_finalizer, module_set_user_finalizer): Use it.
(module_make_global_ref, module_copy_string_contents)
(module_make_string, module_vec_set, module_vec_get): Omit
unnecessary runtime tests.  For example, vector sizes are always
fixnums, so we don’t need to test that they are in fixnum range.
2016-03-02 10:48:06 -08:00
Philipp Stephani
d20d02fef7 Use standard checks whenever possible.
This is possible in all functions where we catch signals anyway.

* emacs-module.c (module_make_global_ref, module_funcall)
(module_copy_string_contents, module_make_string): Use xsignal0
and CHECK macros for argument checks.
2016-03-02 10:48:06 -08:00
Paul Eggert
65f692658e Deterministic build improvements
* configure.ac (BUILD_DETAILS): Rename from DETERMINISTIC_DUMP,
and negate its sense.  Use it via AC_SUBST, not AC_DEFINE,
and have its value be either empty or --no-build-details.
All uses changed.  Change option to --disable-build-details.
* doc/lispref/cmdargs.texi (Initial Options):
Document --no-build-details.
* doc/lispref/internals.texi (Building Emacs):
* etc/NEWS:
Document --disable-build-details.
* doc/lispref/intro.texi (Version Info): Say that
emacs-build-time can be nil.
* lisp/erc/erc-compat.el (erc-emacs-build-time):
Now nil if details are omitted.
* lisp/erc/erc.el (erc-cmd-SV):
* lisp/version.el (emacs-build-time):
Now nil if no build details.
(emacs-version):
Output build time only if build details.
* src/Makefile.in (BUILD_DETAILS): New macro.
(temacs, bootstrap-emacs): Use it.
* src/emacs.c (build_details): New var.
(standard_args, main): Support --no-build-details.
(Vdeterministic_dump): Remove; all uses replaced
by !build_details.
(syms_of_emacs): Set Vbuild_details to a boolean, not
to a Lisp_Object.
* src/lisp.h (build_details): New decl.
* src/sysdep.c (init_system_name): When !build_details,
set system-name to nil, not to "elided".
2016-03-02 10:24:11 -08:00
Philipp Stephani
d5a18a9327 Remove build system name from deterministic dumps
* configure.ac (DETERMINISTIC_DUMP): New configuration option.
* lisp/version.el (emacs-build-time): Add a comment to make the
build time deterministic if requested.
(emacs-build-system): Make variable deterministic if requested.
* src/emacs.c (main): Initialize `deterministic-dump' from the
configuration option.
(syms_of_emacs): New constant `deterministic-dump'.
* src/sysdep.c (init_system_name): Use a constant
if a deterministic dump is requested.
2016-03-02 10:24:11 -08:00
Lars Ingebrigtsen
a59a4bd47a Remove buggy parse-time test
* test/lisp/calendar/parse-time-tests.el (parse-time-tests):
Remove the iso parse test, since it doesn't work.
2016-03-02 17:00:05 +00:00
Paul Eggert
7d69780681 * src/syntax.c (syntax_multibyte): Omit unnecessary parens. 2016-03-01 09:23:48 -08:00
Glenn Morris
f182640f60 ; Auto-commit of loaddefs files. 2016-03-01 06:23:23 -05:00
Glenn Morris
2855e5df28 * lisp/emacs-lisp/autoload.el (autoload-timestamps):
Experiment with setting to nil.

; * etc/NEWS: Mention this.
2016-02-29 21:10:42 -08:00
Lars Ingebrigtsen
8c1503e41b Make the revert command in timer-list-mode work
* lisp/emacs-lisp/timer-list.el (timer-list): Make the revert
command work.
2016-03-01 16:06:42 +11:00
Glenn Morris
4694f2f906 * lisp/emacs-lisp/autoload.el (autoload-find-destination):
Fix 6-week old merge error.
2016-02-29 21:03:47 -08:00
Glenn Morris
d84bc5555a * lisp/emacs-lisp/autoload.el (update-file-autoloads):
Ensure timestamps.
2016-02-29 20:51:47 -08:00
Glenn Morris
86a7d1dba5 * lisp/emacs-lisp/package.el (package-generate-autoloads):
Disable timestamps.
2016-02-29 20:47:12 -08:00
Lars Ingebrigtsen
144bb0cf32 Allow binding `url-mime-accept-string'
* lisp/url/url-http.el (url-http): Allow binding
`url-mime-accept-string' (bug#22855).
2016-03-01 14:49:26 +11:00
Lars Ingebrigtsen
65fa442f2b Add a NEWS entry for the colorful VC indicator 2016-03-01 14:31:35 +11:00
Lars Ingebrigtsen
2621c293d8 Use colors in the VC mode lines
* lisp/vc/vc-hooks.el: Make the mode line faces default to
using colors to more clearly tell the user what the status is.
2016-03-01 14:25:27 +11:00
Lars Ingebrigtsen
3dd82d7501 Support <bdo> and <bdi>
* lisp/net/shr.el (shr-tag-bdo): New function.
(shr-tag-bdi): Ditto.
2016-03-01 11:19:52 +11:00
Lars Ingebrigtsen
fc819ea94e Respect <html dir=auto>
* lisp/net/shr.el (shr-tag-html): Respect the "auto"
directional HTML setting.
2016-03-01 10:48:36 +11:00
Lars Ingebrigtsen
f71dbb30ee Default bidi paragraph direction to nil
* lisp/net/eww.el (eww-display-html): Default bidi rendering
to nil, so that possibly more Arabic web pages render
correctly (bug#22786).
(eww-setup-buffer): Ditto.
2016-03-01 10:33:05 +11:00
Mathias Dahl
b08b2e9e12 Preserve current column, going up/down in thumbnail view. 2016-02-29 22:56:48 +01:00
Alan Mackenzie
71dc8213b1 Handle "noise" macros and compiler directives.
* lisp/progmodes/cc-langs.el (c-symbol-char-key): New language variable.

* lisp/progmodes/cc-vars.el (c-noise-macro-names)
(c-noise-macro-with-parens-names): New customizable variables.
(c-noise-macro-name-re, c-noise-macro-with-parens-name-re): New variables.
(c-make-noise-macro-regexps): New function.

* lisp/progmodes/cc-engine.el (c-forward-sws, c-backward-sws): Adapt to treat
members of c-noise-macro-names as whitespace.
(c-forward-noise-clause): New function.
(c-forward-keyword-prefixed-id, c-forward-type, c-forward-declarator)
(c-forward-decl-or-cast-1, c-backward-over-enum-header)
(c-guess-basic-syntax CASE 5A.3, CASE 5A.5, CASE 9A):
Handle "noise clauses" in parallel with, e.g., "hangon key clauses".

* lisp/progmodes/cc-fonts.el (c-complex-decl-matchers): Handle "noise clauses"
in parallel with "prefix-spec keywords".

* lisp/progmodes/cc-mode.el (c-mode, c++-mode, objc-mode): call
c-make-noise-macro-regexps to initialize the internal variables.

* doc/misc/cc-mode.texi ("Noise Macros"): New section documenting the new
facilities.
2016-02-29 21:51:32 +00:00
Paul Eggert
93bf7d5284 Stop calling res_init
Emacs shouldn’t need to call res_init any more, now that nscd or
equivalent is everywhere.  On modern systems, calling res_init
simply slows Emacs down.  On ancient systems lacking nscd Emacs
will still work well enough with this change; it’s just that it
won’t respond to changes in /etc/resolv.conf.
* configure.ac (HAVE_RES_INIT): Remove.  Worry about -lresolv only
when configured --with-hesiod.  Hesiod is still used; see, e.g.:
https://soylentnews.org/meta/article.pl?sid=15/07/13/0255214
* src/Makefile.in (LIBRESOLV): Remove.  All uses removed.
2016-02-29 09:40:58 -08:00
Glenn Morris
938f104f1b * lisp/progmodes/grep.el (grep-save-buffers): Fix type, tweak doc. 2016-02-29 08:51:12 -08:00
Glenn Morris
cffe077b76 * lisp/progmodes/grep.el (grep-save-buffers): Don't autoload defcustoms.
; (Unless there is a good, specific reason.)
2016-02-29 08:40:56 -08:00
Paul Eggert
71d63c4721 * src/process.c (Fdelete_process): Simplify cast. 2016-02-29 07:43:19 -08:00
Lars Ingebrigtsen
cad0bc7055 Use the correct background color when filling nested <divs>
* lisp/net/shr.el (shr-face-background): Return the first
background, because that's the one that's visible (bug#22680).
2016-02-29 22:21:11 +11:00
Lars Ingebrigtsen
379a846b85 Make <div> in <li> not insert extra newlines
* lisp/net/shr.el (shr-tag-div): Make <div> in <li> not insert
extra newlines (bug#19587).
2016-02-29 18:06:36 +11:00
Lars Ingebrigtsen
cb5f690e4a Allow reading Gnus reports from an offline cache
* lisp/gnus/gnus-group.el (gnus-read-ephemeral-bug-group):
Allow reading bug reports from an offline cache directory.
2016-02-29 17:53:00 +11:00
Tino Calancha
16efc8d53f Meta + shift + Fn combos are recognized by xterm>=216.
* lisp/term/xterm.el (xterm-alternatives-map): Meta + shift +
Fn combos are recognized by xterm>=216 (bug#22837).
2016-02-29 17:07:59 +11:00
Simen Heggestøyl
fb0959e713 Declare $ as an expression prefix in SCSS
* lisp/textmodes/css-mode.el (scss-mode-syntax-table): Declare $ as an
expression prefix (bug#22841).
2016-02-29 17:06:26 +11:00
Lars Ingebrigtsen
3e2883c4ce Revert "Declare $ as an expression prefix in SCSS"
This reverts commit ffb33264f2.

Revering to fix author name.
2016-02-29 17:05:14 +11:00
Simen
ffb33264f2 Declare $ as an expression prefix in SCSS
* lisp/textmodes/css-mode.el (scss-mode-syntax-table): Declare $ as an
expression prefix (bug#22841).
2016-02-29 17:03:39 +11:00
Hugh Brown
90c36173fd Save buffers before running grep commands
* lisp/progmodes/grep.el (grep-ask-about-save): New variable (bug#96).
(grep, lgrep, rgrep): Use it (bug#96).

* doc/emacs/building.texi (Grep Searching): Document
`grep-save-buffers'.

* lisp/progmodes/grep.el (grep-save-buffers): Rename from
`grep-ask-about-save'.
(grep--save-buffers): New function.
(grep, lgrep, rgrep): Use it.
2016-02-29 16:20:05 +11:00
Lars Ingebrigtsen
04289d1cd8 Allow sorting flyspell corrections
* lisp/textmodes/flyspell.el (flyspell-sort): New function (bug#2405).
(flyspell-sort-corrections-functionx): New variable.
(flyspell-sort-corrections-alphabetically): New function.
(flyspell-notify-misspell): Use them.
(flyspell-auto-correct-word): Ditto.
(flyspell-emacs-popup): Ditto.
(flyspell-xemacs-popup): Ditto.  Suggested by Sebastien Delafond.
2016-02-29 15:13:30 +11:00
Lars Ingebrigtsen
9671650a7c Wait for async DNS to complete before freeing resources
* src/process.c (Fdelete_process): Wait for async DNS to
complete before freeing the data structures it needs.
2016-02-29 14:20:09 +11:00
Lars Ingebrigtsen
f195dd692b * lisp/faces.el: Remove duplicated functions from previous patch. 2016-02-29 13:31:45 +11:00
Eli Zaretskii
9295d0a8c2 Fix TLS connections on MS-Windows
* src/w32.c (sys_write): If 'send' returns with WSAENOTCONN, and
this is a non-blocking socket whose connection is in progress, set
errno to EWOULDBLOCK, as expected by GnuTLS and other callers.
Avoid overwriting the errno value from 'send' by 'ioctlsocket'.
Suggested by Alain Schneble <a.s@realize.ch>.  (Bug#22789)
2016-02-28 18:44:50 +02:00
Lars Ingebrigtsen
cd60679657 Add a NEWS entry for the read-color change 2016-02-28 17:29:08 +11:00
Jan Moringen
8ed026d617 Show the face colours when completing in `read-color'
* lisp/faces.el (defined-colors-with-face-attributes): New function.
(readable-foreground-color, defined-colors-with-face-attributes)
(readable-foreground-color): Ditto.
(read-color): Use them (bug#5305).
2016-02-28 17:27:23 +11:00
Lars Ingebrigtsen
3ac844be4e Clean up the code in parse-time-string-chars
* lisp/calendar/parse-time.el (parse-time-string-chars):
Clean up the code a bit.
2016-02-28 15:34:33 +10:30
Lars Ingebrigtsen
12d10d2599 Add some tests for parse-time.el
* test/lisp/calendar/parse-time-tests.el: New file.
2016-02-28 15:30:30 +10:30
Dima Kogan
e8146d49b0 Strip out some leading whitespace when looking at logs
* lisp/vc/vc-git.el (vc-git-expanded-log-entry): When looking
at expanded git logs with `vc-print-root-log' (C-x v L, then
<enter> by default), Emacs was stripping out all leading
whitespace from git logs.  I now strip exactly 2 leading
spaces, which retains the indentation in the logs (bug#18110).
2016-02-28 15:18:45 +10:30
Dima Kogan
f4b057c67f Use a separate history variable for align-regexp
* lisp/align.el (align-regexp-history): New variable (bug#16891).
(align-regexp): Use it.
2016-02-28 15:15:18 +10:30
Phil Sung
e00974a7d1 Create subdirectories automatically in wdired
* lisp/wdired.el (wdired-create-parent-directories): New
variable (bug#6817).
(wdired-create-parentdirs): New function.
(wdired-do-renames): Use it.
* doc/emacs/dired.texi (Wdired): Mention
`wdired-create-parent-directories'
2016-02-28 15:07:02 +10:30
Lars Ingebrigtsen
d5f270f296 Return the correct error values from gnutls.c
* src/gnutls.c (emacs_gnutls_read): Set errno to the value
expected by process.c.
(gnutls_try_handshake): Set gnutls_p to true earlier to avoid
possible race condition with the process.c socket polling
functions.
2016-02-28 14:04:04 +10:30
Aaron S. Hawley
b829c9e15b Don't make assumptions about mkdir. (Bug#22822)
* test/Makefile.in (MKDIR_P): New, set by configure.
(%.log): Use MKDIR_P.
2016-02-27 19:01:24 -08:00
Alexander Kuleshov
c483d0530a Support switching to hexl-mode from image-mode
* lisp/image-mode.el (image-toggle-hex-display)
(image-mode-to-text): New functions.
(image-mode-map, image-minor-mode-map): Bind "C-c C-x" to
image-toggle-hex-display.
(image-mode-map): New menu item "Show as Hex".
(image-mode): Update doc string and echo-area message.
(image-toggle-display): Support toggle to hex.  (Bug#22453)

* doc/emacs/files.texi (File Conveniences): Document
'image-toggle-hex-display'.
2016-02-27 19:27:31 +02:00
Eli Zaretskii
2fa05dcd5e Remove unused code in coding.c
* src/coding.c (decode_eol): Remove unused code that handled the
case of coding->dst_object being nil.  Replace it with an
assertion.
2016-02-27 13:58:16 +02:00
Aurelien Aptel
10a364d673 * src/syntax.c: Fix result of syntax_multibyte()
The ?: operator has a lower precedence than ||.
Bug introduced by commit 45b683a.
2016-02-26 21:22:23 +01:00