Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes recently identified glitches, eliminates some code duplication, removes inessential STREAMHINT back references #1702

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rmkaplan
Copy link
Contributor

@rmkaplan rmkaplan commented May 8, 2024

This replaces PR #1673, which should be closed and deleted when this is merged.

BOUT (printing) should work better (but see issues in #1701), Move should be properly undoable (and undo-undoable), offscreen scrolling on the left should not garble the display.

The STREAMHINT xpointer field is still present but now only for its essential uses in line formatting and display. Those still need to be examined.

Remnants of an old strategy for screen updating were removed, hopefully will make it easier to fix lingering bugs.

Note that typing at the bottom of the screen still scrolls to the top rather than going up just a big to reveal the new caret line--next time.

With respect to undoing Move, undoing where the source and target are in the same document puts that document back to its previous state.
But if the source was taken from, and deleted in, a different Tedit document, undo doesn't undo the source deletion. If that document had been changed after the move, the deleted material would be inserted at some arbitrary place.
(It would be easy to detect whether the source document is in its original state so that the deletion could be sensibly undone. But that would require back-pointers between separate documents, causing either a circularity (using pointers) or the possibility of smashing a previously collected and perhaps reallocated structure (with xpointers).)

This replaces PR #1673, which should be closed and deleted when this is merged.
fghalasz added a commit that referenced this pull request May 10, 2024
masinter pushed a commit that referenced this pull request May 10, 2024
* Make medley.sh and its associated scripts POSIX compliant - i.e., debashify them

* Added config file for medley script, medley now reads from config file and prepends arguemnts from file to the copmmand line arguments

* WIP. Updates to medley.sh scripts.

* WIP.  More on medley.sh and friends update.

* WIP. Medley redo

* WIP.  Debugging new medley scripts

* Renamed medley.sh/medley.command to be medley_main.sh.  Added code to compile single medley.sh/medley.command script by inlining all of the source'd medley_*.sh files.

* Add temp fix for cygwin Issue #1685

* Minor fixup to medley_utils.sh; take debug code out out of run_medley

* Add README to medley directory to explain how to compile medley.sh (medley.command).

* Ooops. This time really adding the README file to the medley directory explaining how to compile medley.sh (medley.command)

* Update loadup- scripts to use updated medley scripts rather than run-medley

* Fix default setting of $config_file in medley_configfile.sh

* Redo medley compile to pick up last commikt

* Fixing how maiko exe is found and sysout argument error processing - both issues discovered testing on MAcOS

* In medley_configfile, replace echo with printf %s because echo - does not work in zsh

* Supress config file on loadups calls to Medley

* Add oldschool support (use original run-medley) to loadup scripts; improve FAILURE detection so loadup-all won't proceed once one of the components fails

* Add in medley_args.sh add -prog as synonym to --maikoprog to aid in loadup scripts; in medley_run.sh script try to get a good exit code for call to maiko, especially useful for loadup scripts

* Run loadup scripts thru shellcheck and update as necessary to make Posix compliant

* Get rid of -nt comparisons in loadup-setup.sh because they are not posix-complaint.  They were not really needed anyway.

* Removing (for now) use of lde exit codes to decide FAILURE case in loadup-setup.sh since exit codes from lde apperar to be inverted on MacOS.

* Update medley man page.  Add - functionality to more args is medley_args.sh

* Compile medley.sh with changes from last commit

* Ooops.  Left medley_args.sh changes out of last commit.  Rectifying here.

* Added support for LDEKEYBOARDTYPE to medley_run to match run-medley

* Add to medley.sh: auto numbered id's and titles with id's inserted

* Cleanup some shellcheck issues in medley_main.sh

* fix maiko args -nh-xxx.  were -nethub-xxxx. In medley_run.sh

* Overhaul handling of pass-on args to manage the quoting issues prevelant in the previous implementation

* Cleanup minor shellcheck issues in medley_*.sh scripts

* Add underscore as character allowed in ids - makes things clearer when id used with +

* Add a self-numbering id to medley calls in loadup scripts

* Put workaround in medley_run.sh for Issue #1702 - issues with sysout arg processing in Maiko

* Oops.  messed up LDESRCSYSOUT in last commit.  should be LDESOURCESYSOUT

* compile medley.sh
@masinter masinter marked this pull request as draft May 13, 2024 22:29
@masinter masinter closed this Jun 24, 2024
@masinter
Copy link
Member

closed by mistake

@masinter masinter reopened this Jun 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants