Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:20
erlang
0839-erlang.el-add-emacs-function-to-open-doc-f...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0839-erlang.el-add-emacs-function-to-open-doc-for-functio.patch of Package erlang
From 91851e286082b271299fb8d332492430cf084902 Mon Sep 17 00:00:00 2001 From: Kjell Winblad <kjellwinblad@gmail.com> Date: Mon, 30 Sep 2019 10:33:28 +0200 Subject: [PATCH] erlang.el add emacs function to open doc for function without prompting the user --- lib/tools/emacs/erlang.el | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/lib/tools/emacs/erlang.el b/lib/tools/emacs/erlang.el index 40899dc872..6d07c68545 100644 --- a/lib/tools/emacs/erlang.el +++ b/lib/tools/emacs/erlang.el @@ -2105,6 +2105,22 @@ This function is aware of imported functions." (erlang-man-find-function (current-buffer) funcname)))))) +(defun erlang-man-function-no-prompt () + "Find manual page for the function under the cursor. +The man entry for `function' is displayed. This function +provides the same functionality as erlang-man-function except for +that it does not ask the user to confirm the function name before +opening the man page for the function." + (interactive) + (progn + (erlang-man-function (erlang-default-function-or-module)) + (sleep-for 0 800) ; A hack to make sure that the function scrolls + ; to the description of the function when it is + ; the first time that the man page for a module + ; is opened + (erlang-man-function (erlang-default-function-or-module)) + )) + ;; Should the defadvice be at the top level, the package `advice' would ;; be required. Now it is only required when this functionality ;; is used. (Emacs 19 specific.) -- 2.16.4
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor