1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-25 19:11:56 +00:00
Commit Graph

9568 Commits

Author SHA1 Message Date
Glenn Morris
dca8b4ac58 Rename recent calendar user option
* lisp/calendar/calendar.el (calendar-time-zone-style):
Rename from calendar-use-numeric-time-zones.
* lisp/calendar/cal-dst.el (calendar-standard-time-zone-name)
(calendar-daylight-time-zone-name):
* lisp/calendar/solar.el (sunrise-sunset, solar-equinoxes-solstices):
Use new variable name.
* doc/emacs/calendar.texi (Sunrise/Sunset): Update.
; * etc/NEWS: Update.
2020-08-12 11:30:16 +01:00
Sungbin Jo
d089c4fbfc Add xwidget support for macOS
Co-authored-by: Jaesup Kwak <veshboo@gmail.com>

* configure.ac: Allow '--with-xwidgets' for "${NS_IMPL_COCOA}".
* etc/NEWS: Mention new feature.
* etc/TODO: Remove done TODO to implement xwidget in NeXTstep port.
* lisp/xwidget.el (xwidget-webkit-clone-and-split-below)
(xwidget-webkit-clone-and-split-right): New procedures.
(xwidget-webkit-callback): Remove call to
'xwidget-webkit-adjust-size-to-window' as adjusting xwidget size is
handled in 'x_draw_xwidget_glyph_string'.
(xwidget-webkit-enable-plugins): New variable.
* nextstep/templates/Info.plist.in: Add 'NSAppTransportSecurity'.
* src/Makefile.in: Add nsxwidget.o for compilation.
* src/emacs.c (main): Move conditional call to 'syms_of_xwidget'.
* src/nsterm.m (ns_draw_glyph_string): Add case for 'XWIDGET_GLYPH'.
(note_mouse_movement mouseMoved): Make it easy to resize window by
dragging mode-line or vertical separator adjacent to large glyph.
* src/nsxwidget.h src/nsxwidget.m: Newly added files, xwidget webkit
backend for macOS Cocoa.
* src/xwidget.c (Fmake_xwidget, xwidget_init_view)
(x_draw_xwidget_glyph_string, xwidget_is_web_view)
(Fxwidget_webkit_goto_uri, Fxwidget_webkit_zoom, Fxwidget_resize)
(Fxwidget_size_request, Fdelete_xwidget_view, xwidget_end_redisplay)
(kill_buffer_xwidgets): Add macOS Cocoa specific functions and code
with 'NS_IMPL_COCOA' and guard GTK specific functions and code with
'USE_GTK'.
(x_draw_xwidget_glyph_string): Handle adjusting xwidget size.
* src/xwidget.h (xwidget, xwidget_view): Add macOS Cocoa specific
fields with 'NS_IMPL_COCOA' and guard GTK specific fields with
USE_GTK.
2020-08-12 12:12:34 +02:00
Robert Weiner
4d4d3e42ca Allow count-lines to ignore invisible lines
* doc/lispref/positions.texi (Text Lines): Document it (bug#23675).

* lisp/simple.el (count-lines): Add an optional parameter to
ignore invisible lines (bug#23675).
2020-08-11 16:52:11 +02:00
Robert Weiner
05bffa1f0e Add new commands for environment movement in .texi files
* lisp/textmodes/texinfo.el (texinfo-mode-map): New keystrokes for
environment movement commands (bug#23985).
2020-08-11 16:37:01 +02:00
Tino Calancha
2a47ef86e9 Change the Calc text input method to insert at point
* lisp/calc/calc.el (calcDigit-delchar): New command to delete chars
forward in the calc minibuffer.
(calc-digit-map): Bind calcDigit-delchar to '\C-d'.
(calcDigit-key): Do not go to (point-max) in calc minibuffer
before insert a digit (Bug#24612).
2020-08-11 15:40:48 +02:00
Kaushal Modi
9b01badf7c Allow Dired to dereference symbolic links when copying
* doc/emacs/dired.texi (Operating on Files): Mention the new
defcustom (bug#25075).
* lisp/dired-aux.el (dired-do-copy): Invert the value of
`dired-copy-dereference' in lexical scope when prefix argument is
'(4). Update function documentation for the new defcustom.

* lisp/dired-aux.el (dired-copy-file): Use `dired-copy-dereference' as
the `dereference' argument to `dired-copy-file-recursive'.

* lisp/dired-aux.el (dired-copy-file-recursive): Add new optional
argument `dereference'.

* lisp/dired.el (dired-copy-dereference): New defcustom, defaults to
nil.
2020-08-11 15:16:11 +02:00
Stefan Kangas
170faae31b Add new command apropos-function (Bug#41021)
* lisp/apropos.el (apropos-function): New command.
* etc/NEWS: Announce it.
2020-08-10 15:33:40 +02:00
Stefan Kangas
4fc066a640 ; Add my last change to NEWS. 2020-08-10 15:27:37 +02:00
Charles A. Roelli
4a6dd13fa4 Change 'M-:' to not error out on incomplete expressions
* lisp/simple.el (read--expression-try-read): New function to read
a Lisp expression from the minibuffer (bug#30697).  This will not
(as before) signal an error on incomplete expressions, but allow
users to continue editing it.
(read--expression): Use it (and add a doc string).
2020-08-10 15:18:19 +02:00
Eli Zaretskii
ec323389e7 Fix recently added documentation bits
* lisp/simple.el (async-shell-command-buffer)
(async-shell-command, shell-command, shell-command-on-region):
* lisp/dired-aux.el (dired-do-async-shell-command)
(dired-do-shell-command):
* doc/misc/tramp.texi (Remote processes):
* doc/emacs/misc.texi (Single Shell):
* etc/NEWS: Fix wording and punctuation of recently added
documentation.
2020-08-09 19:13:53 +03:00
Carlos Pita
1a845a672d Improve client/daemon xdg/systemd experience
* Makefile.in: Add emacsclient.desktop generation.
* etc/emacsclient.desktop: Add file, use emacsd as StartupWMClass.
* etc/emacs.service: Run with name emacsd (bug#37847).
2020-08-09 15:57:51 +02:00
Damien Cassou
8e82baf5a7 Add the new library hierarchy.el
* lisp/emacs-lisp/hierarchy.el: New file.
2020-08-09 14:48:22 +02:00
Andrii Kolomoiets
d586bae501 vc-hg: use 'hg summary' to populate vc-dir headers
* lisp/vc/vc-hg.el (vc-hg-dir-extra-headers): Use 'hg summary' command.
(vc-hg-dir-extra-header): Remove unused function.
* etc/NEWS: Mention changes to vc-hg.el (bug#38387).
2020-08-09 14:35:26 +02:00
Andrii Kolomoiets
c789c3aac6 vc-hg-create-tag: Possibility to create a branch
* lisp/vc/vc-hg.el (vc-hg-create-bookmark): New user option.
(vc-hg-create-tag): Use it (bug#38425).
2020-08-09 14:30:55 +02:00
Tino Calancha
2ed502d2a7 Add constants for shell command output buffer names
Buffers `*Shell Command Output*' and `*Async Shell Command*'
have been around since a long time; used across several libraries,
they are de facto output buffers for shell commands.

* lisp/simple.el (shell-command-buffer-name)
(shell-command-buffer-name-async): New variables.
* lisp/dired-aux.el
* lisp/gnus/gnus-sum.el
* lisp/gnus/gnus-win.el
* lisp/ibuf-ext.el
* lisp/net/tramp.el: Use them.

* etc/NEWS (Changes in Emacs 28.1): Announce this change.

* doc/emacs/misc.texi (Single Shell)
* doc/misc/tramp.texi (Remote processes):
Update manual (bug#39138).
2020-08-09 14:18:09 +02:00
Jorge P. de Morais Neto
db77e9a0da TUTORIAL: "buffer" vs "file" consistency; capitalize Dired
* etc/tutorials/TUTORIAL: For consistency with C-x s ("save some
buffers") and for accuracy, describe C-x C-s as "Save buffer to
file"), and then C-x s as "Save some buffers to their files"
(bug#39359).  Also capitalize "Dired".

Copyright-paperwork-exempt: yes
2020-08-09 13:47:13 +02:00
Lars Ingebrigtsen
54770707ad Add a command line (and MIME handler) function to start eww
* lisp/net/eww.el (eww-browse): New command (bug#42768) to be used
from the command line.

* doc/misc/eww.texi (Command Line): Document it.
2020-08-09 13:05:37 +02:00
Lars Ingebrigtsen
3c728d4c69 Add a variable to allow displaying numeric time zones
* lisp/calendar/calendar.el (calendar-use-numeric-time-zones): New
variable.

* doc/emacs/calendar.texi (Sunrise/Sunset): Document it (bug#33149).

* lisp/calendar/cal-dst.el (calendar-standard-time-zone-name): Use it.
(calendar-daylight-time-zone-name): Ditto.

* lisp/calendar/solar.el (sunrise-sunset): Adjust usage.
(solar-equinoxes-solstices): Ditto.
2020-08-09 12:34:23 +02:00
Basil L. Contovounesios
444e404325 ; Fix typos in recent message.el changes
* doc/misc/message.texi (OpenPGP Header):
* etc/NEWS:
* lisp/gnus/message.el (message-add-openpgp-header): Fix spelling of
function name.
2020-08-08 23:56:30 +01:00
Lars Ingebrigtsen
ed943db794 Document the OpenPGP header
* doc/misc/message.texi (Using the OpenPGP Header): Document the
OpenPGP header (bug#39964).
2020-08-08 15:49:48 +02:00
Philip K
b799cc271d Add support for the OpenPGP header to Emacs
* lisp/gnus/message.el (message-openpgp-header): New variable
(bug#39964).
(messasge-add-openpgp-header): New function to use it.
2020-08-08 15:40:32 +02:00
Eli Zaretskii
2e669305fc ; * etc/NEWS: Rearrange some entries and add entry for recentf change. 2020-08-08 16:07:16 +03:00
Fabrice Niessen
99f8a1c917 Update Leuven-theme
* etc/themes/leuven-theme.el (class): Update theme (bug#40759).
2020-08-08 14:21:38 +02:00
Matthias Meulien
1b8f9081b9 lisp/bookmark.el: Customize choice to show bookmark list in a new tab
* lisp/bookmark.el (bookmark-bmenu-get-buffer): Add as a choice
for new-tab targets (bug#41225).
2020-08-08 13:45:23 +02:00
Lars Ingebrigtsen
c3a6bcac86 Add new utility function custom-add-choice
* lisp/custom.el (custom-add-choice): New function (bug#41225).
2020-08-08 13:42:48 +02:00
Lars Ingebrigtsen
44b31c1ed7 Make the name column in 'list-buffers' have a dynamic width
* lisp/buff-menu.el (Buffer-menu--dynamic-name-width): New
function (bug#30692).
(Buffer-menu-name-width): Default to using it.
(list-buffers--refresh): Call it.

* lisp/emacs-lisp/seq.el (seq-max): Add autoload cookie.
2020-08-08 11:37:43 +02:00
Stefan Kangas
3e39aa6cfa Remove support for Mosaic from browse-url
* lisp/net/browse-url.el (browse-url-mosaic-program)
(browse-url-mosaic-arguments, browse-url-mosaic-pidfile)
(browse-url-CCI-port, browse-url-CCI-host)
(browse-url-default-browser, browse-url-mosaic, browse-url-cci):
Remove support for the Mosaic browser, which saw its last release in
1997, or 23 years ago.

* etc/NEWS: Announce its removal.
2020-08-07 14:52:21 +02:00
Lars Ingebrigtsen
1545f28a98 Add some documentation for widget-describe and button-describe
* doc/emacs/help.texi (Key Help): Document button-describe and
widget-describe.

* lisp/button.el (push-button): Mention button-describe.

* lisp/cus-edit.el (Custom-newline): Mention widget-describe (bug#139).
2020-08-07 13:36:56 +02:00
Mauro Aranda
95b60c84b3 Add new commands to describe buttons and widgets
* lisp/help-fns.el (describe-widget-functions): New variable, used by
describe-widget.
(describe-widget): New command, to display information about a widget.
* lisp/button.el (button-describe): New command, for describing a button.
(button--describe): Helper function for button-describe.
* lisp/wid-edit.el (widget-describe): New command, for describing a
widget.
(widget--resolve-parent-action): Helper function, to allow
widget-describe to display more useful information (bug#139).
2020-08-07 13:36:55 +02:00
Eli Zaretskii
c32d6b21b8 Fix documentation of 'missing-newline-at-eof'
* doc/emacs/display.texi (Useless Whitespace):
* etc/NEWS (missing-newline-at-eof): Improve wording and
punctuation.
2020-08-07 14:03:24 +03:00
Lars Ingebrigtsen
9c34b50fa1 Add a new command to copy a file from zip files
* lisp/arc-mode.el (archive-copy-file): New command, keystroke and
menu bar entry (bug#26192).
(archive-extract): Refactored out code from here...
(archive--extract-file): ... to here for use in archive-copy-file.
2020-08-07 11:59:25 +02:00
Lars Ingebrigtsen
b83f274869 Add missing "this is documented" marker to previous checkin 2020-08-07 09:30:07 +02:00
Lars Ingebrigtsen
2a35e54bd5 Make whitespace-mode highlight missing newlines at the end of buffers
* lisp/whitespace.el (whitespace-missing-newline-at-eof): New face
(bug#34952).
(whitespace-report-region): Add a test for
end-of-buffer-without-newline.
(whitespace-color-on): Ditto.

* doc/emacs/display.texi (Useless Whitespace): Document it.
2020-08-07 09:28:14 +02:00
Kévin Le Gouguec
0aede2d8bf Fix the mailto: examples in the manual and in NEWS
* doc/misc/message.texi (System Mailer Setup): Fix mailto: examples.
2020-08-06 18:33:54 +02:00
Lars Ingebrigtsen
c8b0005bad Fix broken desktop file
Looks like I pasted in the data twice...
2020-08-06 17:45:09 +02:00
Lars Ingebrigtsen
d3fabff99d Change how Mail-Copies-To: never is handled in Message
* lisp/gnus/message.el (message-get-reply-headers): Change how
Mail-Copies-To: never is handled (bug#37591).  When that header is
present, put all the remaining recipients in the To header,
instead of picking an arbitrary recipient to have in the To
header, and the rest in the Cc header.
2020-08-06 15:53:24 +02:00
Lars Ingebrigtsen
51d063e484 Add a new HTML skeleton for relative (file) URLs
* lisp/textmodes/sgml-mode.el (html-href-anchor-file): New
skeleton and keystroke (bug#37644).
2020-08-06 15:11:48 +02:00
Lars Ingebrigtsen
b5ea24cb44 Make it possible to use Message as a mailto: desktop handler
* doc/misc/message.texi (System Mailer Setup): Document the usage.

* lisp/gnus/gnus-art.el (gnus-url-mailto): Move most of the code
here to 'message-mailto-1' (bug#38314).

* lisp/gnus/message.el (message-parse-mailto-url): Mark as obsolete.
(message-parse-mailto-url): Rewritten slightly from the above.
(message-mailto): New command.
(message-mailto-1): New function.
2020-08-06 14:50:40 +02:00
Lars Ingebrigtsen
361baa451a Make 'n'/'p' in image mode buffers respect dired sorting
The commands now also now work on archive and tar mode parent buffers.

* doc/emacs/files.texi (Image Mode): Document it.

* lisp/arc-mode.el (archive-goto-file): New function (bug#38647).
(archive-next-file-displayer): Ditto.

* lisp/image-mode.el (image-next-file): Reimplement to work on
displayed dired buffers and the like.  This means that `n' and `p'
now works on the displayed ordering in the dired buffer, so if
you've reversed the sorting, `n' picks the right "next" file.
(image-mode--directory-buffers): New function.
(image-mode--next-file): Ditto.

* lisp/tar-mode.el (tar-goto-file): New function.
(tar-next-file-displayer): Ditto.
2020-08-06 11:51:22 +02:00
Paul Eggert
155b2c8a8d Simplify Solaris port
This should avoid some configuration confusion as exemplified
by Jeffrey Walton’s recent bug report (Bug#42675).
* configure.ac (opsys): Simplify Solaris configuration by
not worrying about Solaris 9 and earlier, as they are no
longer supported by the Solaris developers.  This should
support Walton’s ‘./configure --build=x86_64-sun-solaris’.
Instead of bothering with ‘opsys=sol2-6’ and ‘opsys=sol2-10’,
just use ‘opsys=solaris’.  All uses changed.
(emacs_check_sunpro_c): Remove unused var.
* doc/misc/tramp.texi (Remote programs):
* etc/MACHINES, etc/PROBLEMS:
Modernize PATH for Oracle Developer Studio.
* etc/PROBLEMS: Move Solaris-related problems to legacy area,
except those that are still relevant.
2020-08-05 17:38:41 -07:00
Lars Ingebrigtsen
a06f41ad2c Implement a screenshot command for Message mode
* doc/misc/message.texi (MIME): Document it.

* lisp/gnus/message.el (message-screenshot-command): New variable.
(message-mode-map): New keystroke and menu item.  Also add
mml-attach-file to the menu.
(message-insert-screenshot): New command.

* lisp/gnus/mml.el (mml-parse-1): Allow having
content-transfer-encoding already in the part, so that we can have
inline base64-encoded binaries in the Message buffers.
2020-08-05 12:21:35 +02:00
Lars Ingebrigtsen
a59296d998 Make the erc /ignore command prompt for a timeout
* lisp/erc/erc.el (erc--unignore-user): Separate into own function
(bug#40137).
(erc-cmd-IGNORE): Ask if the user wants a timeout.
(erc--read-time-period): New function.
2020-08-05 10:27:40 +02:00
Lars Ingebrigtsen
1f3e2ac4b6 Add new function decoded-time-period
* lisp/calendar/time-date.el (decoded-time-period): New function.
2020-08-05 10:07:13 +02:00
Paul Eggert
fe2649528b Drop support for -fcheck-pointer-bounds
GCC has removed the -fcheck-pointer bounds option, and the Linux
kernel has also removed support for Intel MPX, so there’s no point
to keeping this debugging option within Emacs.
* src/bytecode.c (BYTE_CODE_THREADED):
* src/lisp.h (DEFINE_LISP_SYMBOL, XSYMBOL, make_lisp_symbol):
Assume __CHKP__ is not defined.
* src/ptr-bounds.h: Remove.  All uses of ptr_bounds_clip,
ptr_bounds_copy, ptr_bounds_init, ptr_bounds_set removed.
2020-08-04 11:15:16 -07:00
Michael Albinus
3da0d38529 * etc/NEWS: Add Tramp support of direct asynchronous process invocation. 2020-08-04 14:20:16 +02:00
Lars Ingebrigtsen
2ad38b4745 If gnus-visual is nil, don't fontify patches and the like
* doc/misc/emacs-mime.texi (Display Customization): Document it.

* lisp/gnus/gnus-art.el (gnus-mime-display-single): Bind it.

* lisp/gnus/mm-view.el (mm-inline-font-lock): New variable (bug#38421).
(mm-display-inline-fontify): Use it.
2020-08-02 19:44:30 +02:00
Philipp Stephani
d8ab98843e Avoid duplicate Edebug symbols when using ‘cl-flet’ (Bug#41989)
* lisp/emacs-lisp/edebug.el (edebug-match-:unique): Add a new
‘:unique’ specifier to generate unique names.

* lisp/emacs-lisp/cl-macs.el (cl-flet): Use it.  This requires
inlining the ‘cl-defun’ specification.

* test/lisp/emacs-lisp/edebug-tests.el (edebug-tests-cl-flet): New
unit test.

* doc/lispref/edebug.texi (Specification List): Document new ‘:unique’
construct.
2020-08-02 17:39:24 +02:00
Lars Ingebrigtsen
99d1a66646 Make the "All" setting for large-newsgroup-initial in Gnus work
* lisp/gnus/gnus-sum.el (gnus-articles-to-read): Use it.
(gnus-summary-insert-old-articles): Ditto.

* lisp/gnus/gnus.el (large-newsgroup-initial): Make the "All"
setting work by using a special symbol, instead of nil which is
indistinguishable from not being present (bug#38466).
2020-08-02 14:32:19 +02:00
Lars Ingebrigtsen
ef7f569cbd Add the new function dns-query-asynchronous
* lisp/net/dns.el (dns-query-asynchronous): New function.
(dns--lookup, dns--filter): New internal functions.
(dns-query): Reimplement on top of dns-query-asynchronous.
2020-07-30 05:32:16 +02:00
Glenn Morris
3b0cb1c4f5 Merge from origin/emacs-27
d024fc141b (origin/emacs-27) * doc/lispref/symbols.texi (Definitions)...
d78e0f3cd5 ; lisp/ldefs-boot.el: Update.
27877e7bcf (tag: emacs-27.1-rc1) * etc/HISTORY: Add Emacs 27.1 releas...
2020-07-29 08:39:28 -07:00