How to use the Emacs RPN calculator (M-x calc) in your browser
Published:
🧮

A quick guide to the browser rebuild of M-x calc, the Emacs RPN stack calculator. (Background on all three “almost Emacs” tools in the original post.)
Steps
- Open https://www.clearevo.com/calc/ - you get the
--- Emacs Calculator Mode ---buffer with a live Calc Trail pane beside it recording every operation. - It’s RPN: enter numbers first, then the operator. Type a number and press RET to push it on the stack, type another, then press an operator key like
+-*/. - The bindings your fingers remember are there (buttons exist too):
RET- push / duplicate the top of stackTAB- swap the top two entriesn- negate&- 1/xQ- square rootU- undoDEL- drop the top of stack
Pure client-side, nothing leaves your machine (Google Analytics for visit stats only). If your Emacs muscle memory catches a binding behaving wrong, comment on the original post.
This tool is free software and open source: ykasidit/clearevo_online_tools - issues and pull requests welcome.
คู่มือฉบับย่อสำหรับ M-x calc เครื่องคิดเลขแบบ RPN stack ของ Emacs ที่ถูกสร้างเลียนแบบขึ้นใหม่ให้ใช้ในเบราว์เซอร์ (อ่านที่มาของเครื่องมือ “almost Emacs” ทั้งสามตัวได้ในโพสต์ต้นฉบับ)
วิธีใช้
- เปิด https://www.clearevo.com/calc/ — จะพบ buffer
--- Emacs Calculator Mode ---พร้อมช่อง Calc Trail อยู่ข้าง ๆ คอยบันทึกทุกการคำนวณแบบสด ๆ - มันเป็น RPN: ป้อนตัวเลขก่อน แล้วค่อยตามด้วยเครื่องหมาย พิมพ์ตัวเลขแล้วกด RET เพื่อ push ลง stack พิมพ์ตัวเลขถัดไป แล้วกดปุ่มเครื่องหมายอย่าง
+-*/ - key binding ที่นิ้วคุ้นเคยมีครบ (มีปุ่มกดให้ด้วย):
RET— push / ทำสำเนาค่าบนสุดของ stackTAB— สลับสองค่าบนสุดn— กลับเครื่องหมาย (negate)&— 1/xQ— รากที่สองU— undoDEL— ทิ้งค่าบนสุดของ stack
ทำงานฝั่ง client ล้วน ๆ ไม่มีข้อมูลถูกส่งออกจากเครื่องของคุณ (มีเพียง Google Analytics สำหรับนับสถิติผู้เข้าชมเท่านั้น) ถ้ากล้ามเนื้อนิ้วสาย Emacs ของคุณจับได้ว่า binding ไหนทำงานเพี้ยน แจ้งได้ในคอมเมนต์ของโพสต์ต้นฉบับ
เครื่องมือนี้เป็นซอฟต์แวร์เสรีและโอเพนซอร์ส: ykasidit/clearevo_online_tools — ยินดีรับ issue และ pull request ครับ
คำแปลภาษาไทยนี้มี AI ช่วยเรียบเรียง — หากพบจุดที่อ่านแล้วขัด แจ้งได้ในคอมเมนต์ครับ
Full disclosure: this post - and any code or tool it describes - was co-authored with Claude (Anthropic’s AI, via Claude Code). I directed, guided and reviewed. I don’t want to pretend otherwise.
Leave a Comment