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: Update HTML Title 🚀
- Elisp: Command to Update RSS/Atom Webfeed
- Elisp: Validate Matching Brackets 🚀
- Emacs: Check Parenthesis/Brackets Balance
- Emacs: Open File Path Under Cursor 🚀