aboutsummaryrefslogtreecommitdiffstats
path: root/src (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Merge from origin/emacs-28Eli Zaretskii2021-11-032-1/+5
|\ | | | | | | | | | | | | | | | | | | 3e4eb54 ; * etc/PROBLEMS: Minor copyedits of the last change. (Bug#5... 35bc211 Document a macOS error message when opening Emacs 4df9998 Fix header-line and tab-line when mode-line-compact is set 81915a9 Add manual section about how to avoid regexp problems a16e66c Clarify build environment 6ab6b2f Clarify build directory structure 9d61620 * src/pdumper.c (dump_do_dump_relocation): Add sanity check.
| * Fix header-line and tab-line when mode-line-compact is setEli Zaretskii2021-11-031-1/+2
| | | | | | | | | | * src/xdisp.c (display_mode_line): Make 'mode-line-compact' apply only to mode lines. (Bug#51558)
| * * src/pdumper.c (dump_do_dump_relocation): Add sanity check.Andrea Corallo2021-11-021-0/+3
| |
| * Avoid signaling errors in lookup-keyEli Zaretskii2021-10-311-16/+22
| | | | | | | | | | * src/keymap.c (Flookup_key): Handle KEY vectors where not all components are symbols. (Bug#51527) Do not merge to master.
* | A better fix for bug#51583Eli Zaretskii2021-11-032-60/+54
| | | | | | | | | | | | | | | | * src/w32.c (w32_get_resource): Move from here... * src/w32fns.c (w32_get_resource): ...to here. (w32_applytheme): No longer a no-op for Cygwin w32 builds. (globals_of_w32fns): Do attempt to load dwmapi.dll and uxtheme.dll in the Cygwin w32 build.
* | Fix the Cygwin w32 build broken by adding the dark theme supportEli Zaretskii2021-11-031-0/+6
| | | | | | | | | | | | | | * src/w32fns.c (w32_applytheme): Make a no-op for Cygwin w32 builds. (globals_of_w32fns): Don't attempt to load dwmapi.dll and uxtheme.dll in the Cygwin w32 build. (Bug#51583)
* | * src/image.c: Fix building with giflib 4.YAMAMOTO Mitsuharu2021-11-031-9/+10
| |
* | Include the major mode name in the `C-h b' outputLars Ingebrigtsen2021-11-011-1/+4
| | | | | | | | | | | | | | | | | | * lisp/calc/calc-help.el (calc-describe-bindings): Don't add the name since it's there now. * src/keymap.c (Fdescribe_buffer_bindings): Include the major mode name for symmetry with the minor modes (and because it's easy to forget).
* | Merge from origin/emacs-28Eli Zaretskii2021-10-311-1/+3
|\ \ | |/ | | | | 5e05be5 Fix localized display of date and time in the NS port
| * Fix localized display of date and time in the NS portDaniel Martín2021-10-311-1/+3
| | | | | | | | | | | | * src/nsterm.m (ns_init_locale): If not already set, set LC_ALL to the current locale ID so that dates, currencies, etc. use the settings configured in the operating system. (Bug#51321)
* | ; * src/font.c (Ffont_has_char_p): Minor stylistic changes; doc fix.Eli Zaretskii2021-10-311-7/+10
| |
* | Add new function 'font-has-char-p'Lars Ingebrigtsen2021-10-311-2/+32
| | | | | | | | | | * src/font.c (Ffont_has_char_p): New function. (Ffont_get_glyphs): Link to the new function from the doc string.
* | Avoid signaling errors in lookup-keyEli Zaretskii2021-10-311-27/+39
| | | | | | | | | | * src/keymap.c (Flookup_key): Handle KEY vectors where not all components are symbols. (Bug#51527
* | Ensure help echoes only occur once on NSAlan Third2021-10-311-0/+1
| | | | | | | | | | * src/nsterm.m ([EmacsView windowDidResignKey:]): Reset any_help_event_p as it is never reset otherwise.
* | Merge from origin/emacs-28Eli Zaretskii2021-10-311-2/+4
|\ \ | |/ | | | | | | 335a660b4b Fix display glitches with side-by-side windows on TTY frames 4a96f32def Avoid replacing common prefix with ellipsis
| * Fix display glitches with side-by-side windows on TTY framesEli Zaretskii2021-10-311-2/+4
| | | | | | | | | | | | * src/dispnew.c (adjust_glyph_matrix, prepare_desired_row): Leave room for the border glyph only if the window does actually have the right margin. (Bug#51521)
| * Avoid assertion violations in 'lookup-key'Eli Zaretskii2021-10-281-2/+2
| | | | | | | | | | * src/keymap.c (Flookup_key): Don't call ASIZE unless KEY is a vector. This avoids assertion violations when KEY is a string.
| * Be more allowing when looking for menu-bar itemsStefan Kangas2021-10-281-21/+59
| | | | | | | | | | | | | | | | | | | | | | | | | | Don't merge to master. This is a safe-for-release fix for Bug#50752. * src/keymap.c (lookup_key_1): Factor out function from Flookup_key. (Flookup_key): Be case insensitive when looking for Qmenu_bar items. (Bug#50752) * test/src/keymap-tests.el (keymap-lookup-key/mixed-case) (keymap-lookup-key/mixed-case-multibyte): New tests.
* | Fix bug with string values in equal-including-propertiesStefan Kangas2021-10-311-5/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/intervals.c (intervals_equal_1): Factor out from intervals_equal. Optionally use Fequal for comparison of string values in property lists. (intervals_equal): Update for the above. (compare_string_intervals): Use the above optional Fequal comparison to fix a bug where 'equal-including-properties' compared strings with eq, instead of equal. (Bug#6581) * test/src/fns-tests.el (fns-tests-equal-including-properties) (fns-tests-equal-including-properties/string-prop-vals): New tests. * test/lisp/emacs-lisp/ert-tests.el (ert-test-equal-including-properties): Remove parts testing 'equal-including-properties'. * lisp/emacs-lisp/ert.el (ert-equal-including-properties): Add FIXME that this should be removed.
* | Use primes for hash table bucket sizesStefan Kangas2021-10-302-3/+3
| | | | | | | | | | | | * src/dispextern.h (IMAGE_CACHE_BUCKETS_SIZE): * src/image.c (XPM_COLOR_CACHE_BUCKETS): Use primes for hash table bucket sizes.
* | Minor fixes for previous changeEli Zaretskii2021-10-301-22/+25
| | | | | | | | | | | | | | | | | | | | | | | | * src/w32fns.c (DWMWA_USE_IMMERSIVE_DARK_MODE_OLD): Define only if undefined. (w32_applytheme, w32_createwindow, globals_of_w32fns): Minor stylistic copyedits. * etc/NEWS: Reword the entry about using dark mode on MS-Windows. * doc/emacs/msdos.texi (Windows Misc): Fix wording and markup in the last change.
* | Support system dark mode on Windows 10 version 1809 and higherVince Salvino2021-10-303-12/+107
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/w32fns.c (DARK_MODE_APP_NAME) (DWMWA_USE_IMMERSIVE_DARK_MODE_OLD) (DWMWA_USE_IMMERSIVE_DARK_MODE): Define. (w32_applytheme): New function. (w32_createvscrollbar, w32_createhscrollbar, w32_createwindow): Call 'w32_applytheme'. (globals_of_w32fns): Load 'DwmSetWindowAttribute' and 'SetWindowTheme' from their DLLs, and initialize 'w32_darkmode'. * src/w32.c (w32_get_resource): Accept an additional argument instead of hard-coding REG_ROOT; callers changed. (Bug#51404) * etc/NEWS: * doc/emacs/msdos.texi (Windows Misc): Document the new feature.
* | ; Fix a recent change in image.cEli Zaretskii2021-10-291-4/+8
| | | | | | | | * src/image.c (DGifSavedExtensionToGCB): Define only for GIFLIB >= 5.
* | * src/image.c: Fix building with giflib on MS-Windows.Stefan Kangas2021-10-291-0/+7
| |
* | Merge from origin/emacs-28Glenn Morris2021-10-291-2/+6
|\ \ | |/ | | | | | | | | | | | | | | 7e2b973d60 * lisp/textmodes/text-mode.el (text-mode-context-menu): Re... da6d889e90 ; * etc/NEWS: Use active voice for 'repeat-mode', etc. e3171e7e86 Allow automatic use of color fonts for emoji on macOS # Conflicts: # etc/NEWS
| * Allow automatic use of color fonts for emoji on macOSRobert Pluim2021-10-271-2/+6
| | | | | | | | | | * src/macfont.m (macfont_list): Don't exclude color fonts when the fontspec has an 'emoji' script specification.
* | Prefer giflib 5 macros to magic numbersStefan Kangas2021-10-291-10/+16
| | | | | | | | | | | | | | | | * src/image.c (DISPOSAL_UNSPECIFIED, DISPOSE_DO_NOT) (DISPOSE_BACKGROUND, DISPOSE_PREVIOUS, NO_TRANSPARENT_COLOR) [GIFLIB_MAJOR < 5]: Macro defined (for old versions of giflib). (gif_load): Replace magic numbers with giflib 5 macros for disposal and transparency_color_index.
* | Don't parse GCB block by hand with giflib 5 or laterStefan Kangas2021-10-291-4/+12
| | | | | | | | | | | | * src/image.c (gif_load): If GIFLIB_MAJOR > 5, use DGifSavedExtensionToGCB instead of parsing the Graphic Control Extension block by hand.
* | * src/image.c (gif_load): Minor simplification.Stefan Kangas2021-10-291-20/+15
| |
* | Fix bootstrapping broken by a recent changeEli Zaretskii2021-10-291-0/+3
| | | | | | | | | | * src/keymap.c (Flookup_key): Avoid crashes during bootstrap when uni-lowercase.el is not available yet.
* | Be more allowing when looking for menu-bar itemsStefan Kangas2021-10-281-21/+140
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/keymap.c (lookup_key_1): Factor out function from Flookup_key. (Flookup_key): Be case insensitive, and treat spaces as dashes, when looking for Qmenu_bar items. (Bug#50752) * test/src/keymap-tests.el (keymap-lookup-key/mixed-case) (keymap-lookup-key/mixed-case-multibyte) (keymap-lookup-keymap/with-spaces) (keymap-lookup-keymap/with-spaces-multibyte) (keymap-lookup-keymap/with-spaces-multibyte-lang-env): New tests.
* | ; * src/keyboard.c (readable_events): Fix a thinko.Eli Zaretskii2021-10-281-2/+2
| |
* | Ignore more events in input-pending-pEli Zaretskii2021-10-281-24/+47
| | | | | | | | | | | | | | | | | | * src/keyboard.c (readable_events) (kbd_buffer_store_buffered_event): Use 'is_ignored_event' to decide whether the input event is to be ignored. (is_ignored_event): New function. (syms_of_keyboard) <input-pending-p-filter-events>: New variable. Patch from Aaron Jensen <aaronjensen@gmail.com>.
* | (string-pixel-width): Rewrite to avoid side effectsStefan Monnier2021-10-271-3/+6
| | | | | | | | | | * src/xdisp.c (Fwindow_text_pixel_size): Allow `window` to be a buffer. * lisp/emacs-lisp/subr-x.el (string-pixel-width): Simplify accordingly.
* | ; * src/atimer.c (init_atimer): Fix a typo in a comment.Eli Zaretskii2021-10-271-3/+4
| |
* | Always start the SIGALRM atimersLars Ingebrigtsen2021-10-271-9/+10
| | | | | | | | | | | | * src/atimer.c (init_atimer): Always start the SIGALRM alarms, even if we're using timerfd (bug#19776). See long, long discussion in the bug report for why this is necessary.
* | Redisplay after changing to the hourglass mouse pointerLars Ingebrigtsen2021-10-271-0/+1
| | | | | | | | | | | | * src/xterm.c (x_show_hourglass): Do a redisplay after changing to the hourglass pointer -- otherwise it won't be displayed until a keyboard/mouse event arrives (bug#19776).
* | Merge from origin/emacs-28Glenn Morris2021-10-251-0/+3
|\ \ | |/ | | | | | | 817c929eda Doc fix for concat 3eca2ad2a1 * lisp/image-dired.el (image-dired-external-viewer): Suppo...
| * Doc fix for concatIhor Radchenko2021-10-241-0/+3
| | | | | | | | | | * src/fns.c (Fconcat): Note that composition values may not remain eq in return value of concat. (Bug#48740)
* | Heed the EMACS_IGNORE_TIMERFD environment variableLars Ingebrigtsen2021-10-251-1/+3
| | | | | | | | | | | | * src/emacs.c (main): Call init_atimer after setting up the environment so that the EMACS_IGNORE_TIMERFD environment variable is actually heeded.
* | Fix issues with type casting in delayed message functionsLars Ingebrigtsen2021-10-251-4/+3
| | | | | | | | | | | | * src/eval.c (with_delayed_message_display) (with_delayed_message_cancel, Ffuncall_with_delayed_message): Fix some type confusion.
* | Remove debugging in with_delayed_message_displayLars Ingebrigtsen2021-10-241-1/+0
| | | | | | | | * src/eval.c (with_delayed_message_display): Remove debugging.
* | Add new macro `with-delayed-message'Lars Ingebrigtsen2021-10-241-0/+45
| | | | | | | | | | | | | | | | | | * doc/lispref/display.texi (Progress): Document it. * lisp/subr.el (with-delayed-message): New macro. * src/eval.c (with_delayed_message_display) (with_delayed_message_cancel): Helper functions. (Ffuncall_with_delayed_message): New function (bug#19776).
* | Merge from origin/emacs-28Glenn Morris2021-10-242-1/+4
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | c7f53824a8 (origin/emacs-28) Update publicsuffix.txt from upstream 9a50f760e9 ; * doc/lispref/modes.texi (Hooks): Clarify wording. (Bug... e154fd9119 Refer to the info node on keymaps in map-keymap docstring 4fd5c8df67 Clarify abnormal hook documentation 6fa5206770 Update to Org 9.5-59-g52e6f1 39413a45bf ; * doc/lispref/functions.texi (Calling Functions): Fix la... 43914ab01f Improve documentation of cl-reduce ef37a86cac Improve documentation of apply-partially 1e8be48738 Fix typos 8c5fbd712b Revert commit 225ca617b7, and apply another fix cdbd03345d Fix documentation of posn-at-x-y 598732c899 ; * src/vm-limit.c (get_lim_data): Fix a typo. (Bug#18238) efdffd86c5 ; * etc/refcards/README: Prefer HTTPS in link. # Conflicts: # etc/NEWS
| * Refer to the info node on keymaps in map-keymap docstringStefan Kangas2021-10-241-0/+3
| | | | | | | | | | * src/keymap.c (Fmap_keymap): Doc fix; add a reference to the Info node '(elisp) Keymaps'. (Bug#30958)
| * ; * src/vm-limit.c (get_lim_data): Fix a typo. (Bug#18238)Eli Zaretskii2021-10-231-1/+1
| |
* | * src/image.c (webp_load): Fix thinkos.Stefan Kangas2021-10-231-2/+2
| |
* | Fix WebP support on MS-WindowsEli Zaretskii2021-10-221-5/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/image.c (WebPDecodeRGBA, WebPDecodeRGB, WebPFree): Use correct names and argument lists in DEF_DLL_FN; fix typos. (WebPGetFeaturesInternal): Load this instead of WebPGetFeatures, which is a static inline function in webp/decode.h. (WebPGetFeatures): Redirect to call WebPGetFeaturesInternal. * lisp/term/w32-win.el (dynamic-library-alist): Fix the name of the WebP symbol. * configure.ac (HAVE_WEBP): Fix detection of libwebp on MinGW. * nt/INSTALL.W64: * nt/INSTALL: Update information about libwebp availability.
* | Add WebP image format support (Bug#51296)Stefan Kangas2021-10-222-1/+282
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * configure.ac (--with-webp): New option. (HAVE_WEBP): New variable. (emacs_config_features): Add webp. * src/image.c (enum webp_keyword_index) [HAVE_WEBP]: New enum. (webp_format) [HAVE_WEBP]: New variable. (webp_image_p, init_webp_functions, webp_load) [HAVE_WEBP]: New functions for WebP support. (image_types) [HAVE_WEBP]: Define WebP format. (syms_of_image) <Qwebp> [HAVE_WEBP]: New DEFSYM. Add image type Qwebp. * src/Makefile.in (LIBIMAGE): Add WEBP_LIBS. * lisp/files.el (auto-mode-alist): * lisp/image-file.el (image-file-name-extensions): * lisp/image.el (image-type-header-regexps) (image-type-file-name-regexps, image-type-auto-detectable): Add WebP support. * lisp/term/w32-win.el (dynamic-library-alist): Add the libwebp DLL. * INSTALL: * admin/CPP-DEFINES: * doc/lispref/display.texi (Image Formats, Other Image Types): * nt/INSTALL: Document WebP support. * test/lisp/image-tests.el (image-find-image) (image-type-from-file-name): Expand tests. * test/src/image-tests.el (image-tests--files): Add WebP. (image-tests-image-size/webp, image-tests-image-mask-p/webp) (image-tests-image-metadata/webp): New tests. * test/data/image/black.webp: New file.
* | In 'window-text-pixel-size' use actual mode line heights if wanted (Bug#38181)Martin Rudalics2021-10-221-9/+34
| | | | | | | | | | | | * src/xdisp.c (Fwindow_text_pixel_size): Run display_mode_line when MODE_LINES wants it to take actual mode line heights into account (Bug#38181).