ELisp: (goto-char 1) vs (goto-char (point-min))
change all
(goto-char 1)
to
(goto-char (point-min))
on my site and all emacs lisp code.
it was a bug. When narrow-to-region
is in effect, the minimal position is not 1.
But at some point i thought it is, so started to use
(goto-char 1)
instead of
(goto-char (point-min))
.
The error does not manifest itself, because if you goto-char
before point min, it just move to point min anyway without error.
changed files:
- Xah Emacs Blog Archive 2012-12
- ELisp: Batch Transform HTML to HTML5 “figure” Tag
- ELisp: Transform HTML Tags from “span” to “b”
- Emacs: HTML, Extract URL 🚀
- Emacs Lisp Text Processing: find-file vs with-temp-buffer
- ELisp: Write grep
- ELisp: Find String Inside HTML Tag
- ELisp: HTML Link to Dead Link
- ELisp: Generate Web Links Report
- ELisp: Refactoring, Move Code to Files 🚀
- Process HTML with Emacs Lisp: Transform FAQ Tags
- ELisp: Process File line-by-line
- ELisp: Find Replace Multiple String Pairs
- ELisp: Multi-Pair String Replacement with Report
- ELisp: Batch Find Replace
- Emacs Lisp Power: Text-Soup Automation
- ELisp: Text Processing, Transforming Page Tag
- ELisp: HTML Processing: Split Annotation
- ELisp: Process HTML, span, code, Key, Title, Markups
- ELisp: HTML, Update Title
- ELisp: Command to Update RSS/Atom Webfeed
- ELisp: Batch Script to Validate Matching Brackets
- Emacs: Check Parenthesis/Brackets Balance
- Emacs: Open File Path Under Cursor 🚀