Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Cyborg)
  • No Skin
Collapse
Brand Logo

CIRCLE WITH A DOT

  1. Home
  2. Uncategorized
  3. @screwlisp is having some site connectivity problems so asked me to remind everyone that we'll be on the anonradio forum at the top of the hour (a bit less than ten minutes hence) for those who like that kind of thing:

@screwlisp is having some site connectivity problems so asked me to remind everyone that we'll be on the anonradio forum at the top of the hour (a bit less than ten minutes hence) for those who like that kind of thing:

Scheduled Pinned Locked Moved Uncategorized
lispygophergopherlispcommonlisp
120 Posts 14 Posters 163 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • wrog@mastodon.murkworks.netW wrog@mastodon.murkworks.net

    @kentpitman @dougmerritt @ramin_hal9001 @screwlisp @cdegroot

    Yeah, I don't know. Maybe '~' was prevalant in Emacs source, or I'm conflating TECO with Something Else.

    By my era VT-52s were gone, you'd occasionally see a VT100 in a server room for not wanting to waste $$ there, the terminal of choice at Stanford CS was the Heathkit-19 + if you were in one of the well-financed research groups, you got a Sun-1 or a Sun-2. At DEC(WSL) where I interned, it was all personal VAXstations.

    I do recall Emacs ^S and ^Q being problematic due to terminal mode occasionally getting set badly (and then the underlying hardware would wake up, "Oh, flow control! I know how to do that!", ^S would freeze everything and you had to Just Know to do ^Q...)

    dougmerritt@mathstodon.xyzD This user is from outside of this forum
    dougmerritt@mathstodon.xyzD This user is from outside of this forum
    dougmerritt@mathstodon.xyz
    wrote last edited by
    #83

    @wrog
    This seems familiar, but I'm not wholly sure why.

    It is binary 01111110 and as such really did show up in some line noise contexts that favored such a thing (it's similar to 11111111).

    It's also used by vi to mark nonexistent lines at the end of the file; Bill wanted it to be something other than just nothing on that screen line, for specificity of feedback to the user.

    @kentpitman @ramin_hal9001 @screwlisp @cdegroot

    1 Reply Last reply
    0
    • wrog@mastodon.murkworks.netW wrog@mastodon.murkworks.net

      @kentpitman @dougmerritt @ramin_hal9001 @screwlisp @cdegroot

      Yeah, I don't know. Maybe '~' was prevalant in Emacs source, or I'm conflating TECO with Something Else.

      By my era VT-52s were gone, you'd occasionally see a VT100 in a server room for not wanting to waste $$ there, the terminal of choice at Stanford CS was the Heathkit-19 + if you were in one of the well-financed research groups, you got a Sun-1 or a Sun-2. At DEC(WSL) where I interned, it was all personal VAXstations.

      I do recall Emacs ^S and ^Q being problematic due to terminal mode occasionally getting set badly (and then the underlying hardware would wake up, "Oh, flow control! I know how to do that!", ^S would freeze everything and you had to Just Know to do ^Q...)

      wrog@mastodon.murkworks.netW This user is from outside of this forum
      wrog@mastodon.murkworks.netW This user is from outside of this forum
      wrog@mastodon.murkworks.net
      wrote last edited by
      #84

      @kentpitman @dougmerritt @ramin_hal9001 @screwlisp @cdegroot

      > I also recall '~' being an important character

      ok, I seem to be out-to-lunch on this
      (or at least, remembering Something Else; but I can't imagine what...):

      https://www.ibiblio.org/pub/academic/computer-science/history/pdp-11/teco/emacs11/emacs11.tec

      (admittedly, this is VAX/PDP-11 TECO source for Emacs and maybe Fred had to do a complete rewrite of some sort and the actual TOPS20/PDP-10 source is completely different -- given that there *is* significant dependence on wordsize and other architectural issues, it would have to be *somewhat* different -- but I'd still expect a lot of common code [unless there were copyright issues]).

      It *does* definitely look like line noise, though.

      ramin_hal9001@fe.disroot.orgR 1 Reply Last reply
      0
      • dougmerritt@mathstodon.xyzD dougmerritt@mathstodon.xyz

        @screwlisp
        Well there you go. So wrog just needs to find a list of such clients to choose the most suitable one -- if any.

        @wrog @kentpitman @ramin_hal9001 @cdegroot

        wrog@mastodon.murkworks.netW This user is from outside of this forum
        wrog@mastodon.murkworks.netW This user is from outside of this forum
        wrog@mastodon.murkworks.net
        wrote last edited by
        #85

        @dougmerritt @screwlisp @kentpitman @ramin_hal9001 @cdegroot

        what I *currently* do is compose inside Emacs (the *only* non-painful alternative for long posts),

        then manually decide how I'm going to break it up -- which actually has some literary content to it, because in some cases, you *do* want to arrange the breaks for maximal dramatic effect
        (generalized How to Use Paragraphs)

        Problem 1 being that emacs doesn't count characters the same way as mastodon does, and I don't find out until I've cut&pasted part n, which doesn't happen until I've already posted parts 1..n−1

        Problem 2 being having to cut&paste in the first place when I should just be able to hit SEND (which then has to be from within emacs).

        wrog@mastodon.murkworks.netW 1 Reply Last reply
        0
        • wrog@mastodon.murkworks.netW wrog@mastodon.murkworks.net

          @dougmerritt @screwlisp @kentpitman @ramin_hal9001 @cdegroot

          what I *currently* do is compose inside Emacs (the *only* non-painful alternative for long posts),

          then manually decide how I'm going to break it up -- which actually has some literary content to it, because in some cases, you *do* want to arrange the breaks for maximal dramatic effect
          (generalized How to Use Paragraphs)

          Problem 1 being that emacs doesn't count characters the same way as mastodon does, and I don't find out until I've cut&pasted part n, which doesn't happen until I've already posted parts 1..n−1

          Problem 2 being having to cut&paste in the first place when I should just be able to hit SEND (which then has to be from within emacs).

          wrog@mastodon.murkworks.netW This user is from outside of this forum
          wrog@mastodon.murkworks.netW This user is from outside of this forum
          wrog@mastodon.murkworks.net
          wrote last edited by
          #86

          @dougmerritt @screwlisp @kentpitman @ramin_hal9001 @cdegroot

          given that I once-upon-a-time wrote a MAPI client for the sake of being able to post to Microsoft Exchange forums in rich text using courier font, in theory, I should be able to do this.

          ... but that would mean I'd have to Learn Fediverse. crap.

          hmm. Anyone have experience with

          Link Preview Image
          mastodon.el

          mastodon.el - Emacs client for fediverse servers that implement the Mastodon API.

          favicon

          Codeberg.org (codeberg.org)

          i.e., is the best one or if this just Guy Who Grabbed the Name first and did the best SEO twigging? (I hate that google search has gotten so enshittified)

          (also, thanks, LazyWeb!)

          screwlisp@gamerplus.orgS 1 Reply Last reply
          0
          • wrog@mastodon.murkworks.netW wrog@mastodon.murkworks.net

            @dougmerritt @kentpitman @ramin_hal9001 @screwlisp @cdegroot

            (I'm guessing a mastodon UI that actually respects the use of surreal numbers to number multipost components and rearranges threads accordingly will be implemented approximately never.

            … though I suppose it could turn out to be one of the more creative ways to get kicked off of the Fediverse … )

            Link Preview Image
            Surreal number - Wikipedia

            favicon

            (en.wikipedia.org)

            (𝜔/2)/11

            dougmerritt@mathstodon.xyzD This user is from outside of this forum
            dougmerritt@mathstodon.xyzD This user is from outside of this forum
            dougmerritt@mathstodon.xyz
            wrote last edited by
            #87

            @wrog
            I support your right to free expression. 🙂

            @kentpitman @ramin_hal9001 @screwlisp @cdegroot

            1 Reply Last reply
            0
            • djl@mastodon.mit.eduD djl@mastodon.mit.edu

              @kentpitman @dougmerritt @wrog @ramin_hal9001 @screwlisp @cdegroot

              Yes, right. To all that. One minor point is that the PDP-6/10 had a byte-addressing instruction that was pretty weird (overkill in flexibility, like every PDP-6/10 instruction). So that data packing wasn't all that unreasonable.

              I showed up to the TECO world in Jan. 1973 with a gofer programming gig in the Macsyma group. The Datapoint terminals were already there, so I missed the pre-(almost)WYSIWYG days.

              dougmerritt@mathstodon.xyzD This user is from outside of this forum
              dougmerritt@mathstodon.xyzD This user is from outside of this forum
              dougmerritt@mathstodon.xyz
              wrote last edited by
              #88

              @djl
              Lucky you; I went through teletypes, and then glass terminals lacking cursor control, before finally being in an environment with cursor control terminals capable of WYSIWYG -- and at that, it was pretty random back then who had heard the pro-WYSIWYG arguments and who had not, so...

              @kentpitman @wrog @ramin_hal9001 @screwlisp @cdegroot

              kentpitman@climatejustice.socialK djl@mastodon.mit.eduD 3 Replies Last reply
              0
              • dougmerritt@mathstodon.xyzD dougmerritt@mathstodon.xyz

                @djl
                Lucky you; I went through teletypes, and then glass terminals lacking cursor control, before finally being in an environment with cursor control terminals capable of WYSIWYG -- and at that, it was pretty random back then who had heard the pro-WYSIWYG arguments and who had not, so...

                @kentpitman @wrog @ramin_hal9001 @screwlisp @cdegroot

                kentpitman@climatejustice.socialK This user is from outside of this forum
                kentpitman@climatejustice.socialK This user is from outside of this forum
                kentpitman@climatejustice.social
                wrote last edited by
                #89

                @dougmerritt @djl @wrog @ramin_hal9001 @screwlisp @cdegroot

                For those looking on who might not know these terms, teletypes had paper feeding through and mostly did only output that was left-to-right and then fed that line and then did not back up ever to a previous line. They were also loud and clunky, mostly, and had keyboards that had keys you had to press way down in order to get them to take.

                Glass terminals were displays that could only do output to the bottom line of the screen, kind of like a paper terminal but without the paper. Once it scrolled up, you couldn't generally scroll back down. But that's why it might sound like it would have cursor control but did not yet.

                dougmerritt@mathstodon.xyzD djl@mastodon.mit.eduD 2 Replies Last reply
                0
                • dougmerritt@mathstodon.xyzD dougmerritt@mathstodon.xyz

                  @djl
                  Lucky you; I went through teletypes, and then glass terminals lacking cursor control, before finally being in an environment with cursor control terminals capable of WYSIWYG -- and at that, it was pretty random back then who had heard the pro-WYSIWYG arguments and who had not, so...

                  @kentpitman @wrog @ramin_hal9001 @screwlisp @cdegroot

                  djl@mastodon.mit.eduD This user is from outside of this forum
                  djl@mastodon.mit.eduD This user is from outside of this forum
                  djl@mastodon.mit.edu
                  wrote last edited by
                  #90

                  @dougmerritt @kentpitman @wrog @ramin_hal9001 @screwlisp @cdegroot

                  Yes. I missed the teletype round. Sort of. Father was site engineer for one of the early LINC 8 installations, and later a PDP-7 installation, and they had teletypes. They.Were.Horrid.

                  Peter Belmont (later Ada developer) tried to persuade me to do programming, but I was busy doing other things. The IBM card puches had really sweet keyboards, though.

                  1 Reply Last reply
                  0
                  • kentpitman@climatejustice.socialK kentpitman@climatejustice.social

                    @dougmerritt @djl @wrog @ramin_hal9001 @screwlisp @cdegroot

                    For those looking on who might not know these terms, teletypes had paper feeding through and mostly did only output that was left-to-right and then fed that line and then did not back up ever to a previous line. They were also loud and clunky, mostly, and had keyboards that had keys you had to press way down in order to get them to take.

                    Glass terminals were displays that could only do output to the bottom line of the screen, kind of like a paper terminal but without the paper. Once it scrolled up, you couldn't generally scroll back down. But that's why it might sound like it would have cursor control but did not yet.

                    dougmerritt@mathstodon.xyzD This user is from outside of this forum
                    dougmerritt@mathstodon.xyzD This user is from outside of this forum
                    dougmerritt@mathstodon.xyz
                    wrote last edited by
                    #91

                    @kentpitman
                    Yes, and to clarify your final two sentences, the *display* scrolled up with each additional line emitted -- the *cursor* could never scroll up.

                    In my environment at Berkeley, these were Lear Siegler ADM 3 terminals. The slightly later ADM 3a terminals finally allowed the cursor to be moved around at will (although they didn't have any fancier abilities, unlike still later devices).

                    Thanks for thinking to explain what I did not.

                    @djl @wrog @ramin_hal9001 @screwlisp @cdegroot

                    1 Reply Last reply
                    0
                    • kentpitman@climatejustice.socialK kentpitman@climatejustice.social

                      @dougmerritt @djl @wrog @ramin_hal9001 @screwlisp @cdegroot

                      For those looking on who might not know these terms, teletypes had paper feeding through and mostly did only output that was left-to-right and then fed that line and then did not back up ever to a previous line. They were also loud and clunky, mostly, and had keyboards that had keys you had to press way down in order to get them to take.

                      Glass terminals were displays that could only do output to the bottom line of the screen, kind of like a paper terminal but without the paper. Once it scrolled up, you couldn't generally scroll back down. But that's why it might sound like it would have cursor control but did not yet.

                      djl@mastodon.mit.eduD This user is from outside of this forum
                      djl@mastodon.mit.eduD This user is from outside of this forum
                      djl@mastodon.mit.edu
                      wrote last edited by
                      #92

                      @kentpitman @dougmerritt @wrog @ramin_hal9001 @screwlisp @cdegroot

                      The datapoint terminals were _almost_ wysiwyg: they didn't have a cursor, so the TECO of the time inserted "/\" in the text displayed, and you could insert text there, delete the next character and the like.

                      But TECO allowed you to change the "/\" to whatever you liked, so if you left your terminal, someone would change that to "/\Foo is loser" and Foo wouldn't be able to delete that text from Foo's file...

                      1 Reply Last reply
                      0
                      • dougmerritt@mathstodon.xyzD dougmerritt@mathstodon.xyz

                        @djl
                        Lucky you; I went through teletypes, and then glass terminals lacking cursor control, before finally being in an environment with cursor control terminals capable of WYSIWYG -- and at that, it was pretty random back then who had heard the pro-WYSIWYG arguments and who had not, so...

                        @kentpitman @wrog @ramin_hal9001 @screwlisp @cdegroot

                        djl@mastodon.mit.eduD This user is from outside of this forum
                        djl@mastodon.mit.eduD This user is from outside of this forum
                        djl@mastodon.mit.edu
                        wrote last edited by
                        #93

                        @dougmerritt @kentpitman @wrog @ramin_hal9001 @screwlisp @cdegroot

                        I've been through 17 or so environments, and I was always able to find an editor that could be persuaded to act the way I wanted: CCA, NEC, AT&T and even Word for MS-DOS.

                        Hilariously, Word for Windows defeated me. There was no way to persuade it to act as a civilized text editor, so I acquired the source code to WordPad and implemented my usual TECO macros in C++, and used that for 20 years or so.

                        dougmerritt@mathstodon.xyzD 1 Reply Last reply
                        0
                        • djl@mastodon.mit.eduD djl@mastodon.mit.edu

                          @dougmerritt @kentpitman @wrog @ramin_hal9001 @screwlisp @cdegroot

                          I've been through 17 or so environments, and I was always able to find an editor that could be persuaded to act the way I wanted: CCA, NEC, AT&T and even Word for MS-DOS.

                          Hilariously, Word for Windows defeated me. There was no way to persuade it to act as a civilized text editor, so I acquired the source code to WordPad and implemented my usual TECO macros in C++, and used that for 20 years or so.

                          dougmerritt@mathstodon.xyzD This user is from outside of this forum
                          dougmerritt@mathstodon.xyzD This user is from outside of this forum
                          dougmerritt@mathstodon.xyz
                          wrote last edited by
                          #94

                          @djl
                          Hey, you want what you want.

                          Also: spoken like a true hacker. "I will bend the universe (of computing) to my will!"

                          @kentpitman @wrog @ramin_hal9001 @screwlisp @cdegroot

                          1 Reply Last reply
                          0
                          • wrog@mastodon.murkworks.netW wrog@mastodon.murkworks.net

                            @dougmerritt @screwlisp @kentpitman @ramin_hal9001 @cdegroot

                            given that I once-upon-a-time wrote a MAPI client for the sake of being able to post to Microsoft Exchange forums in rich text using courier font, in theory, I should be able to do this.

                            ... but that would mean I'd have to Learn Fediverse. crap.

                            hmm. Anyone have experience with

                            Link Preview Image
                            mastodon.el

                            mastodon.el - Emacs client for fediverse servers that implement the Mastodon API.

                            favicon

                            Codeberg.org (codeberg.org)

                            i.e., is the best one or if this just Guy Who Grabbed the Name first and did the best SEO twigging? (I hate that google search has gotten so enshittified)

                            (also, thanks, LazyWeb!)

                            screwlisp@gamerplus.orgS This user is from outside of this forum
                            screwlisp@gamerplus.orgS This user is from outside of this forum
                            screwlisp@gamerplus.org
                            wrote last edited by
                            #95

                            @wrog
                            @mousebot is a good friend of mine! I switch between it (mastodon as an emacs mode) and web-clients-that-I-imagine-most-other-people-are-seeing when I toot.

                            @dougmerritt @kentpitman @ramin_hal9001 @cdegroot

                            wrog@mastodon.murkworks.netW 1 Reply Last reply
                            0
                            • screwlisp@gamerplus.orgS screwlisp@gamerplus.org

                              @wrog
                              @mousebot is a good friend of mine! I switch between it (mastodon as an emacs mode) and web-clients-that-I-imagine-most-other-people-are-seeing when I toot.

                              @dougmerritt @kentpitman @ramin_hal9001 @cdegroot

                              wrog@mastodon.murkworks.netW This user is from outside of this forum
                              wrog@mastodon.murkworks.netW This user is from outside of this forum
                              wrog@mastodon.murkworks.net
                              wrote last edited by
                              #96

                              @screwlisp @mousebot @dougmerritt @kentpitman @ramin_hal9001 @cdegroot

                              yay, actual experience, actual review.
                              thanks.

                              mousebot@todon.nlM 1 Reply Last reply
                              0
                              • wrog@mastodon.murkworks.netW wrog@mastodon.murkworks.net

                                @screwlisp @mousebot @dougmerritt @kentpitman @ramin_hal9001 @cdegroot

                                yay, actual experience, actual review.
                                thanks.

                                mousebot@todon.nlM This user is from outside of this forum
                                mousebot@todon.nlM This user is from outside of this forum
                                mousebot@todon.nl
                                wrote last edited by
                                #97

                                @wrog @cdegroot @ramin_hal9001 @kentpitman @dougmerritt @screwlisp unforch mastodon.el hasn't yet implemented chaining of new toots. if someone wants to add it though, by all means. (the issue has been raised before, but as usual no one was willing to get their hands dirty.)

                                edit: https://codeberg.org/martianh/mastodon.el/issues/340

                                screwlisp@gamerplus.orgS 1 Reply Last reply
                                0
                                • mousebot@todon.nlM mousebot@todon.nl

                                  @wrog @cdegroot @ramin_hal9001 @kentpitman @dougmerritt @screwlisp unforch mastodon.el hasn't yet implemented chaining of new toots. if someone wants to add it though, by all means. (the issue has been raised before, but as usual no one was willing to get their hands dirty.)

                                  edit: https://codeberg.org/martianh/mastodon.el/issues/340

                                  screwlisp@gamerplus.orgS This user is from outside of this forum
                                  screwlisp@gamerplus.orgS This user is from outside of this forum
                                  screwlisp@gamerplus.org
                                  wrote last edited by
                                  #98

                                  @mousebot
                                  So sorry for the mistake T_T
                                  @wrog @cdegroot @ramin_hal9001 @kentpitman @dougmerritt

                                  dougmerritt@mathstodon.xyzD 1 Reply Last reply
                                  0
                                  • screwlisp@gamerplus.orgS screwlisp@gamerplus.org

                                    @mousebot
                                    So sorry for the mistake T_T
                                    @wrog @cdegroot @ramin_hal9001 @kentpitman @dougmerritt

                                    dougmerritt@mathstodon.xyzD This user is from outside of this forum
                                    dougmerritt@mathstodon.xyzD This user is from outside of this forum
                                    dougmerritt@mathstodon.xyz
                                    wrote last edited by
                                    #99

                                    @screwlisp
                                    Seems like the universe is calling on you to fix it!

                                    @mousebot @wrog @cdegroot @ramin_hal9001 @kentpitman

                                    screwlisp@gamerplus.orgS 1 Reply Last reply
                                    0
                                    • wrog@mastodon.murkworks.netW wrog@mastodon.murkworks.net

                                      @kentpitman @dougmerritt @ramin_hal9001 @screwlisp @cdegroot

                                      > I also recall '~' being an important character

                                      ok, I seem to be out-to-lunch on this
                                      (or at least, remembering Something Else; but I can't imagine what...):

                                      https://www.ibiblio.org/pub/academic/computer-science/history/pdp-11/teco/emacs11/emacs11.tec

                                      (admittedly, this is VAX/PDP-11 TECO source for Emacs and maybe Fred had to do a complete rewrite of some sort and the actual TOPS20/PDP-10 source is completely different -- given that there *is* significant dependence on wordsize and other architectural issues, it would have to be *somewhat* different -- but I'd still expect a lot of common code [unless there were copyright issues]).

                                      It *does* definitely look like line noise, though.

                                      ramin_hal9001@fe.disroot.orgR This user is from outside of this forum
                                      ramin_hal9001@fe.disroot.orgR This user is from outside of this forum
                                      ramin_hal9001@fe.disroot.org
                                      wrote last edited by
                                      #100

                                      "I do recall Emacs ^S and ^Q being problematic due to terminal mode occasionally getting set badly (and then the underlying hardware would wake up, "Oh, flow control! I know how to do that!", ^S would freeze everything and you had to Just Know to do ^Q...)"

                                      @wrog@mastodon.murkworks.net this is still a problem in modern terminal emulators. On my Linux Mint installation the all of the terminal emulator software emulates the DEC VT-220 hardware pretty closely, so it does actually send the ASCII DC1 and DC3 characters for C-s and C-q, and the virtual TTY device responds accordingly by blocking all further characters except for DC1 and DC3. You have to execute the command stty -ixon to disable soft flow control for a given TTY device after it has been initialized by the operating system. I think there is a way configure the pseudoterminal manager system control to create virtual TTY devices that ignore DC1 and DC3 characters, but I don't know how, and for whatever reason (probably for backward compatibility with older Unix systems) Debian-based Linux doesn't configure it this way by default.

                                      @kentpitman@climatejustice.social @dougmerritt@mathstodon.xyz @screwlisp@gamerplus.org @cdegroot@mstdn.ca

                                      ewhac@mastodon.socialE 1 Reply Last reply
                                      0
                                      • dougmerritt@mathstodon.xyzD dougmerritt@mathstodon.xyz

                                        @screwlisp
                                        Seems like the universe is calling on you to fix it!

                                        @mousebot @wrog @cdegroot @ramin_hal9001 @kentpitman

                                        screwlisp@gamerplus.orgS This user is from outside of this forum
                                        screwlisp@gamerplus.orgS This user is from outside of this forum
                                        screwlisp@gamerplus.org
                                        wrote last edited by
                                        #101

                                        With some apologies to legends:

                                        (defun chained-toot
                                        (lim str)
                                        (let ((space (- lim 8))
                                        (End (length str))
                                        (span (+ 1 (ceiling (/ (length str) (- lim 8))))))
                                        (cl-loop
                                        for idx from 1 to span
                                        for start from 0 by space
                                        for end from space by space
                                        for piece = (cl-subseq str start (min end End))
                                        for addy = (format "%s\n%d/%d" piece idx span)
                                        collect addy)))

                                        @dougmerritt @mousebot @wrog @cdegroot @ramin_hal9001 @kentpitman
                                        #elisp

                                        dougmerritt@mathstodon.xyzD 1 Reply Last reply
                                        0
                                        • screwlisp@gamerplus.orgS screwlisp@gamerplus.org

                                          With some apologies to legends:

                                          (defun chained-toot
                                          (lim str)
                                          (let ((space (- lim 8))
                                          (End (length str))
                                          (span (+ 1 (ceiling (/ (length str) (- lim 8))))))
                                          (cl-loop
                                          for idx from 1 to span
                                          for start from 0 by space
                                          for end from space by space
                                          for piece = (cl-subseq str start (min end End))
                                          for addy = (format "%s\n%d/%d" piece idx span)
                                          collect addy)))

                                          @dougmerritt @mousebot @wrog @cdegroot @ramin_hal9001 @kentpitman
                                          #elisp

                                          dougmerritt@mathstodon.xyzD This user is from outside of this forum
                                          dougmerritt@mathstodon.xyzD This user is from outside of this forum
                                          dougmerritt@mathstodon.xyz
                                          wrote last edited by
                                          #102

                                          @screwlisp
                                          You forgot to change 'space' in a complex inscrutable way at each step.

                                          @mousebot @wrog @cdegroot @ramin_hal9001 @kentpitman

                                          screwlisp@gamerplus.orgS 1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups