Emacs Lisp: (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
- Emacs Lisp: Batch Transform HTML to HTML5 “figure” Tag
- Emacs Lisp: Transform HTML Tags from “span” to “b”
- Emacs Lisp: Command to Extract URL
- Emacs Lisp Text Processing: find-file vs with-temp-buffer
- Emacs Lisp: Write grep
- Emacs Lisp: Find String Inside HTML Tag
- Emacs Lisp: HTML Link to Dead Link
- Emacs Lisp: Generate Web Links Report
- Emacs Lisp: Refactoring, Move Code to Files 🚀
- Process HTML with Emacs Lisp: Transform FAQ Tags
- Emacs Lisp: Process File line-by-line
- Emacs Lisp: Find Replace Multiple String Pairs
- Emacs Lisp: Multi-Pair String Replacement with Report
- Emacs Lisp: Batch Find Replace
- Emacs Lisp Power: Text-Soup Automation
- Emacs Lisp: Text Processing, Transforming Page Tag
- Emacs Lisp: HTML Processing: Split Annotation
- Emacs Lisp: Process HTML, span, code, Key, Title, Markups
- Emacs Lisp: HTML, Update Title
- Emacs Lisp: Command to Update RSS/Atom Webfeed
- Emacs Lisp: Batch Script to Validate Matching Brackets
- Emacs: Check Parenthesis/Brackets Balance
- Emacs: Open File Path Under Cursor 🚀