Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 260755
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T22:22:29+00:00 2026-05-11T22:22:29+00:00

The line is function info() { emacs -eval (progn (setq Man-notify-method ‘bully) (info \$1\))

  • 0

The line is

function info() { 
    emacs -eval "(progn (setq Man-notify-method 'bully) (info \"$1\"))" 
}

I know from manuals that

Progn

progn is a special form in `C source
code’.

Setq

setq is a special form in `C source
code’. (setq SYM VAL SYM VAL …)

Set each SYM to the value of its VAL.
The symbols SYM are variables; they
are literal (not evaluated). The
values VAL are expressions; they are
evaluated. Thus, (setq x (1+ y)) sets
x' to the value of(1+ y)’. The
second VAL is not computed until after
the first SYM is set, and so on; each
VAL can use the new value of variables
set earlier in the setq'. The return
value of the
setq’ form is the value
of the last VAL.

$1 seems to a reference to the first parameter after the command man which the user gives.

‘bully seems to be a random variable.

Man-notify-method seems to be an action function which is run when man command is executed.

-eval seems to be an evalutian statemant which tells Emacs to run the statement which follows it.

However, I am not completely sure about the function.

I need to understand the function, since I want to bind a bash code of mine to the action function of man. Man-notify-method seems to be that action function, at least in Emacs.

How do you understand the line of Emacs Lisp?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-11T22:22:29+00:00Added an answer on May 11, 2026 at 10:22 pm

    PROGN simply evaluates the expressions in order, returning the return value of the last one.

    SETQ is the basic assignment operator.

    INFO enters the emacs info browser.

    So, what this does is first assign the symbol 'bully to the variable Man-notify-method, then enter the info browser. 'bully is likely the name of a function, and Man-notify-method a place where the info browser looks up a function to call for some notification (Warning: I am just guessing here).

    I guess that you will have to define your own function that calls your shell command like this:

    (defun my-cmd ()
      (call-process   ; Look up the syntax in the emacs lisp manual
      ))
    

    Then assign its symbol to Man-notify-method:

    (setq Man-notify-method 'my-cmd)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 157k
  • Answers 157k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Use two case clauses: case 'car': case 'ferrari': print("car or… May 12, 2026 at 11:02 am
  • Editorial Team
    Editorial Team added an answer Another way, maybe a bit easier (you don't have to… May 12, 2026 at 11:02 am
  • Editorial Team
    Editorial Team added an answer Got it. Forget about the RyanFait Solution, this one works… May 12, 2026 at 11:02 am

Related Questions

The line is function info() { emacs -eval (progn (setq Man-notify-method 'bully) (info \$1\))
The problem I've got a programm that uses storm 0.14 and it gives me
In my code segment, when I script the file name, it gives me a
I need to add localization to the exceptions thrown by my application as a
I'm new to python programming. I have this problem: I have a list of

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.