File 2633-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/src/shell.erl b/lib/stdlib/src/shell.erl
index da605d522c..1ef20ca155 100644
--- a/lib/stdlib/doc/src/shell.xml
+++ b/lib/stdlib/doc/src/shell.xml
@@ -1074,7 +1074,7 @@ multiline_prompt_func(PromptFunc) ->
<desc>
<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-R by default). You
+ formatting hotkey is pressed while editing an expression (Alt+R by default). You
can specify a <c>Mod:Func/1</c> that expects the whole expression as a string and
returns a formatted expressions as a string.
See <seeapp marker="STDLIB_app#format_shell_func"><c>stdlib app config</c></seeapp>
--
2.43.0