File 2615-Consistently-use-for-key-combinations-in-source-code.patch of Package erlang
From ea381d01429b08e4426ef10d168788112d9193d4 Mon Sep 17 00:00:00 2001
From: Richard Carlsson <carlsson.richard@gmail.com>
Date: Thu, 13 Jun 2024 15:46:54 +0200
Subject: [PATCH 2/2] Consistently use `+` for key combinations in source code
and UI
Ensure that the UI is consistent (help messages, menus, etc.) and that
it's easy to grep in the code. Note that the documentation has a
different style and uses `-` to describe key combinations.
---
erts/emulator/beam/break.c | 2 +-
erts/emulator/beam/erl_init.c | 4 +-
erts/emulator/sys/unix/erl_child_setup.c | 2 +-
erts/emulator/sys/unix/sys.c | 12 +++---
erts/emulator/sys/win32/sys_interrupt.c | 2 +-
lib/debugger/test/dbg_ui_SUITE.erl | 8 ++--
.../valid_keymap.config | 8 ++--
lib/observer/src/observer_port_wx.erl | 4 +-
lib/observer/src/observer_pro_wx.erl | 2 +-
lib/observer/src/observer_procinfo.erl | 2 +-
lib/observer/src/observer_sock_wx.erl | 4 +-
lib/observer/src/observer_sys_wx.erl | 2 +-
lib/observer/src/observer_trace_wx.erl | 4 +-
lib/observer/src/observer_tv_table.erl | 8 ++--
lib/observer/src/observer_tv_wx.erl | 4 +-
lib/reltool/test/reltool_manual_gui_SUITE.erl | 2 +-
lib/ssh/src/ssh_connect.hrl | 4 +-
lib/ssl/test/dtls_api_SUITE.erl | 2 +-
lib/stdlib/doc/stdlib_app.md | 2 +-
lib/stdlib/src/edlin_key.erl | 8 ++--
lib/stdlib/src/erl_scan.erl | 2 +-
lib/stdlib/src/shell.erl | 2 +-
lib/wx/examples/simple/menu.erl | 42 +++++++++----------
lib/wx/src/gen/wxKeyEvent.erl | 8 ++--
lib/wx/src/gen/wxMenuBar.erl | 2 +-
lib/wx/src/gen/wxNavigationKeyEvent.erl | 2 +-
26 files changed, 72 insertions(+), 72 deletions(-)
diff --git a/lib/stdlib/doc/src/stdlib_app.xml b/lib/stdlib/doc/src/stdlib_app.xml
index 257159c93a..01184b36cb 100644
--- a/lib/stdlib/doc/src/stdlib_app.xml
+++ b/lib/stdlib/doc/src/stdlib_app.xml
@@ -76,7 +76,7 @@ For more information about configuration parameters, see the
<item>
<p>Can be used to set the formatting of the Erlang shell output. This has an effect
on commands that have been submitted and how it is saved in history or if the
- formatting hotkey is pressed while editing an expression (Alt-F by default). You can specify a Mod:Func/1 that
+ formatting hotkey is pressed while editing an expression (Alt+F by default). You can specify a Mod:Func/1 that
expects the whole expression as a string and returns a formatted expressions as a string.
See <seemfa marker="shell#format_shell_func/1"><c>shell:format_shell_func/1</c></seemfa>
for how to set it from inside the shell.</p>
--
2.43.0