unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Strange keymapp behavior: What am I missing?
@ 2022-07-25 23:47 T.V Raman
  2022-07-26  0:31 ` Phil Sainty
  0 siblings, 1 reply; 3+ messages in thread
From: T.V Raman @ 2022-07-25 23:47 UTC (permalink / raw)
  To: emacs-devel

(keymapp outline-mode-prefix-map) evals to T
however, evaluating the following forms --- mapcar and cl-loop 
both show (keymapp map) where map is the loop variable returns nil!
 
(cl-loop
 for map in '(outline-navigation-repeat-map outline-mode-prefix-map)
 collect
 (format "%s: %s" map (keymapp map)))
returns: ("outline-navigation-repeat-map: nil" "outline-mode-prefix-map: nil")


(keymapp outline-mode-prefix-map) T

(mapcar
 #'(lambda (map)
     (message "%s: %s" map (keymapp map)))
 '(outline-navigation-repeat-map outline-mode-prefix-map))
Returns 
("outline-navigation-repeat-map: nil" "outline-mode-prefix-map: nil")
("outline-navigation-repeat-map: nil" "outline-mode-prefix-map: nil")


-- 

Thanks,

--Raman(I Search, I Find, I Misplace, I Research)
♉ Id: kg:/m/0285kf1  🦮

-- 

Thanks,

--Raman(I Search, I Find, I Misplace, I Research)
♉ Id: kg:/m/0285kf1  🦮



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Strange keymapp behavior: What am I missing?
  2022-07-25 23:47 Strange keymapp behavior: What am I missing? T.V Raman
@ 2022-07-26  0:31 ` Phil Sainty
  2022-07-26  2:59   ` T.V Raman
  0 siblings, 1 reply; 3+ messages in thread
From: Phil Sainty @ 2022-07-26  0:31 UTC (permalink / raw)
  To: T.V Raman; +Cc: emacs-devel

In your loops you're passing a symbol to keymapp, not
an evaluated value.

> (keymapp outline-mode-prefix-map) T

whereas:

(keymapp 'outline-mode-prefix-map)
=> nil




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Strange keymapp behavior: What am I missing?
  2022-07-26  0:31 ` Phil Sainty
@ 2022-07-26  2:59   ` T.V Raman
  0 siblings, 0 replies; 3+ messages in thread
From: T.V Raman @ 2022-07-26  2:59 UTC (permalink / raw)
  To: psainty; +Cc: raman, emacs-devel


Thanks for that -- using symbol-value fixed it:-)



Phil Sainty writes:
 > In your loops you're passing a symbol to keymapp, not
 > an evaluated value.
 > 
 > > (keymapp outline-mode-prefix-map) T
 > 
 > whereas:
 > 
 > (keymapp 'outline-mode-prefix-map)
 > => nil

-- 

Thanks,

--Raman(I Search, I Find, I Misplace, I Research)
♉ Id: kg:/m/0285kf1  🦮

--

Thanks,

--Raman(I Search, I Find, I Misplace, I Research)
♉ Id: kg:/m/0285kf1  🦮



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-07-26  2:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-25 23:47 Strange keymapp behavior: What am I missing? T.V Raman
2022-07-26  0:31 ` Phil Sainty
2022-07-26  2:59   ` T.V Raman

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).