Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 531047
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T09:15:37+00:00 2026-05-13T09:15:37+00:00

I use the Python-mode (not the default one comes with emacs 23). I could

  • 0

I use the Python-mode (not the default one comes with emacs 23).

I could not execute the python program currently loaded in emacs.

I am getting “Symbol’s function definition is void: smart-operator-mode-on” error.

Any clue or any tips makes a python program and it can be run on emacs and show the result output window?

Here the emacs error report.

Debugger entered--Lisp error: (void-function smart-operator-mode-on)
     (smart-operator-mode-on)
     (lambda nil (set-variable (quote py-indent-offset) 4) 
      (set-variable (quote indent-tabs-mode) nil) (define-key py-mode-map (kbd "RET")  (quote newline-and-indent)) (smart-operator-mode-on))()
      run-hooks(python-mode-hook)
     (if python-mode-hook (run-hooks (quote python-mode-hook)) (run-hooks (quote py-mode-hook)))   python-mode()

My init_python.el script

 (autoload 'python-mode "python-mode" "Python Mode." t)
 (add-to-list 'auto-mode-alist '("\\.py\\'" . python-mode))
 (add-to-list 'interpreter-mode-alist '("python" . python-mode))

  (require 'python-mode)
  (add-hook 'python-mode-hook
    (lambda ()
(set-variable 'py-indent-offset 4)
;(set-variable 'py-smart-indentation nil)
(set-variable 'indent-tabs-mode nil)
(define-key py-mode-map (kbd "RET") 'newline-and-indent)
;(define-key py-mode-map [tab] 'yas/expand)
;(setq yas/after-exit-snippet-hook 'indent-according-to-mode)
(smart-operator-mode-on)
))
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T09:15:37+00:00Added an answer on May 13, 2026 at 9:15 am

    It works after turning it off (smart-operator-mode-on)
    I need to see how to solve smart-operator-mode-on

    (setq debug-on-error t) helps me to spot the error. Thanks Noufal.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 342k
  • Answers 342k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer If it is possible, you would be much better off… May 14, 2026 at 5:06 am
  • Editorial Team
    Editorial Team added an answer Your question is very unclear and your code does not… May 14, 2026 at 5:06 am
  • Editorial Team
    Editorial Team added an answer Your web.xml and <form> are all perfectly fine. The servlet… May 14, 2026 at 5:06 am

Related Questions

It's likely that this is just a general Python Tkinter question, not necessarily a
I want my Python script to be able to read Unicode command line arguments
The official documentation for TemporaryFile reads: The mode parameter defaults to 'w+b' so that
I'd like to put my cmd.com window into a mode where Control-C does not
So, I've got an application that uses Twisted + Stomper as a STOMP client

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.