all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Boolean setting let bound numeric variables
@ 2024-05-09 19:30 Heime
  2024-05-09 20:41 ` [External] : " Drew Adams
  0 siblings, 1 reply; 2+ messages in thread
From: Heime @ 2024-05-09 19:30 UTC (permalink / raw)
  To: Heime via Users list for the GNU Emacs text editor

I have the following construct using an "if letboundvar".  Does this test
whether letboundvar is t or nil and then set scroll-bar-option to 0 or -1
accordingly ?

      (let ( (letboundvar t)
	      (scroll-bar-option (if letboundvar 0 -1)) )
         (horizontal-scroll-bar-mode scroll-bar-option))




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

* RE: [External] : Boolean setting let bound numeric variables
  2024-05-09 19:30 Boolean setting let bound numeric variables Heime
@ 2024-05-09 20:41 ` Drew Adams
  0 siblings, 0 replies; 2+ messages in thread
From: Drew Adams @ 2024-05-09 20:41 UTC (permalink / raw)
  To: Heime, Heime via Users list for the GNU Emacs text editor

>   (let ((letboundvar t)
> 	     (scroll-bar-option (if letboundvar 0 -1)))
>     (horizontal-scroll-bar-mode scroll-bar-option))

It would, if you used `let*' instead of `let'.

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

end of thread, other threads:[~2024-05-09 20:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-09 19:30 Boolean setting let bound numeric variables Heime
2024-05-09 20:41 ` [External] : " Drew Adams

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.