• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

kostafey / ejc-sql / 34000840626
38%

Build:
DEFAULT BRANCH: master
Ran 06 Sep 2026 12:17AM UTC
Jobs 2
Files 11
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

05 Sep 2026 11:55PM UTC coverage: 40.371% (-0.3%) from 40.664%
34000840626

push

github

kostafey
Stop calling interactive-only commands from Lisp

`replace-regexp', `goto-line', `beginning-of-buffer' and `end-of-buffer'
are all declared `interactive-only': besides doing the work, they push the
mark, deactivate it, widen the buffer and report counts, which is noise
when they are called from a program.

Replace the buffer motion with plain `goto-char', and add `ejc-goto-line'
and `ejc-replace-regexp' as the non-interactive counterparts of the other
two.  `ejc-replace-regexp' keeps the parts `ejc-format-sql' relies on: the
end boundary is a marker, so it survives replacements that change the text
length, and point is left after the last replacement, which is where the
boundaries of the next pattern are computed from.

The buffer contents and the resulting point position are unchanged.  Two
side effects are gone, both of them unwanted:

- `ejc-format-sql', `ejc-dress-sql-at-point' and `ejc-show-last-result' no
  longer push entries onto the mark ring.  The region still gets
  deactivated after the command, since modifying the buffer sets
  `deactivate-mark' anyway.

- `ejc-dress-sql-at-point' no longer widens a narrowed buffer.  `goto-line'
  counts lines in the whole buffer, while the line numbers passed to it
  come from `line-number-at-pos', which counts within the accessible
  portion, so in a narrowed buffer it used to quote the wrong lines.

3 of 12 new or added lines in 2 files covered. (25.0%)

392 of 971 relevant lines covered (40.37%)

4.71 hits per line

Uncovered Changes

Lines Coverage ∆ File
8
41.8
-2.54% ejc-format.el
1
50.0
0.0% ejc-result-buffer.el
Jobs
ID Job ID Ran Files Coverage
1 emacs-snapshot - 34000840626.1 06 Sep 2026 12:17AM UTC 11
40.37
GitHub Action Run
2 emacs-30.2 - 34000840626.2 06 Sep 2026 12:18AM UTC 11
40.37
GitHub Action Run
Source Files on build 34000840626
  • Tree
  • List 11
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 9a036045 on github
  • Prev Build on master (#33995303634)
  • Next Build on master (#34001372698)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc